Repository navigation
fix(git): set raise_exceptions=False for server stability - #4230
simpleprogrammer2 wants to merge 3 commits into
Conversation
LuuOW
left a comment
There was a problem hiding this comment.
Technical audit: Verified MCP server implementation for consistency with current SDK patterns.
|
Thank you for this pull request, and apologies for the long wait for a response. Since it was opened, the reference servers have been rebuilt for the 2026-07-28 MCP specification (#4857) and released as v2 (2.0.0 on npm for the TypeScript servers, 2026.10.19 on PyPI for the Python servers). The code this PR changes has been replaced, and the behavior it addresses has either been fixed in v2 or no longer exists in the same form. This is not a judgment on the change or on you; it's a consequence of the code it targets having been replaced. If the problem still happens on v2, please open a fresh issue with the version you're running and steps to reproduce. Note that this repository now accepts contributions as issues rather than pull requests from anyone but its maintainers; see This is part of the backlog triage in #4875. |
This PR resolves Issue #4213 where the
mcp-server-gitwould crash upon receiving malformed JSON-RPC messages or encountering internal exceptions.Technical Change
Changed
raise_exceptions=TruetoFalsein theserver.run()call. This ensures that the server remains resilient and returns standard JSON-RPC error responses instead of terminating the process, consistent with other reference servers.