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

add script to pretty print server log#146

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 intomainfromjuruen/pretty-print-log
Apr 7, 2025
Merged

Conversation

juruen
Copy link
Collaborator

@juruenjuruen commentedApr 7, 2025
edited
Loading

Context

This PR adds a script to pretty print the output of the github-mcp-server log. This is useful for developers working on tools that want to see the full interaction between host and server.

This was already possible by running the server with:

--enable-command-logging --log-file server.log

However, with the introductionscript/prettyprint-log, you can do:

tail -f server.log |  script/prettyprint-log

and get a nice, pretty-printed output of all the server<->host interactions:

Screenshot 2025-04-07 at 11 24 59

This new script can take a file as an argument, or read from stdin by default if none is passed. It also detect whether it's outputting to an actual terminal to enable/disable the use of colors.

As an aside note, if we end up changing the log's output format, or we want to drop the use of colors, the script can be even more simple.

Closes:#145

@CopilotCopilotAI review requested due to automatic review settingsApril 7, 2025 09:25
Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • script/prettyprint-log: Language not supported

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused.Learn more

@tobytoby self-assigned thisApr 7, 2025
@juruenjuruen merged commit8a9f0b0 intomainApr 7, 2025
16 checks passed
@juruenjuruen deleted the juruen/pretty-print-log branchApril 7, 2025 15:32
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull requestApr 12, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@tobytobytoby approved these changes

Assignees

@tobytoby

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

add ability to pretty print log
2 participants
@juruen@toby

[8]ページ先頭

©2009-2025 Movatter.jp