-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/debug-info #1
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds debug logging capabilities to the ast-grep MCP server, enabling verbose debugging output when diagnosing issues with command execution and tool calls.
Key changes include:
- Introduction of a debug logging system using TaskLocal for thread-safe context propagation
- Implementation of thread-safe output buffering using async readabilityHandler for process pipes
- Addition of a
--debugflag to enable verbose logging to stderr
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| Sources/ast-grep-mcp-swift/ast_grep_mcp_swift.swift | Adds DebugContext, OutputBuffer class for thread-safe pipe reading, debug logging throughout command execution and tool handling, and --debug flag configuration |
| README.md | Documents the new --debug flag usage example |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.