Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: pretty-print JSONL text responses inmcpcurl#239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
juruen merged 2 commits intogithub:mainfromsimondanielsson:feat/pretty-print-jsonl
Apr 12, 2025

Conversation

simondanielsson
Copy link
Contributor

@simondanielssonsimondanielsson commentedApr 12, 2025
edited
Loading

This PR adds functionality to pretty-print JSONL text responses.

  • Required to be able to preview response of for instancelist_pull_requests.

Closes:#238

Before change:

$ ./mcpcurl --stdio-server-cmd"./github-mcp-server stdio" tools list_pull_requests --owner github --repo github-mcp-server --page 1 --perPage 1 --prettyerror printing response: failed to parse text content: json: cannot unmarshal array into Go value oftype map[string]interface {}

After change:

$ ./mcpcurl --stdio-server-cmd"./github-mcp-server stdio" tools list_pull_requests --owner github --repo github-mcp-server --page 1 --perPage 1 --pretty[  {"_links": {"comments": {"href":"https://api.github.com/repos/github/github-mcp-server/issues/235/comments"      },"commits": {"href":"https://api.github.com/repos/github/github-mcp-server/pulls/235/commits"      },"html": {"href":"https://github.com/github/github-mcp-server/pull/235"      },"issue": {"href":"https://api.github.com/repos/github/github-mcp-server/issues/235"      },"review_comment": {"href":"https://api.github.com/repos/github/github-mcp-server/pulls/comments{/number}"      },"review_comments": {"href":"https://api.github.com/repos/github/github-mcp-server/pulls/235/comments"      },"self": {"href":"https://api.github.com/repos/github/github-mcp-server/pulls/235"      },"statuses": {"href":"https://api.github.com/repos/github/github-mcp-server/statuses/908e3b05fab6777cf3aae284896a61d3b727c844"      }    },"author_association":"CONTRIBUTOR",    ...

juruen reacted with heart emoji
@simondanielssonsimondanielsson changed the titlePretty-print JSONL text responses inmcpcurlfeat: pretty-print JSONL text responses inmcpcurlApr 12, 2025
Copy link
Collaborator

@juruenjuruen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@simondanielsson thank you so much for your contributions! It's great to see them coming.

This looks great. I just have one stylistic suggestion to have an earlycontinue. But otherwise, this is awesome to see!

@simondanielsson
Copy link
ContributorAuthor

Thanks@juruen, great suggestion :)

Copy link
Collaborator

@juruenjuruen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Awesome! Thank you so much! 🚀

@juruenjuruen merged commitbbba3bb intogithub:mainApr 12, 2025
9 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@juruenjuruenjuruen approved these changes

@SamMorrowDrumsSamMorrowDrumsAwaiting requested review from SamMorrowDrums

@williammartinwilliammartinAwaiting requested review from williammartin

@tobytobyAwaiting requested review from toby

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Pretty-print JSONL with mcpcurl
3 participants
@simondanielsson@juruen@danielssonsimonbcg

[8]ページ先頭

©2009-2025 Movatter.jp