Skip to content

fix(git): set raise_exceptions=False for server stability#4230

Open
simpleprogrammer2 wants to merge 3 commits into
modelcontextprotocol:mainfrom
simpleprogrammer2:fix/git-server-reliability
Open

fix(git): set raise_exceptions=False for server stability#4230
simpleprogrammer2 wants to merge 3 commits into
modelcontextprotocol:mainfrom
simpleprogrammer2:fix/git-server-reliability

Conversation

@simpleprogrammer2

Copy link
Copy Markdown

This PR resolves Issue #4213 where the mcp-server-git would crash upon receiving malformed JSON-RPC messages or encountering internal exceptions.

Technical Change

Changed raise_exceptions=True to False in the server.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.

@LuuOW LuuOW left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Technical audit: Verified MCP server implementation for consistency with current SDK patterns.

@simpleprogrammer2
simpleprogrammer2 requested a review from LuuOW July 19, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants