Skip to content

fix(git): keep stdio server alive on JSON-RPC parse errors#4248

Open
kgarg2468 wants to merge 1 commit into
modelcontextprotocol:mainfrom
kgarg2468:kgarg/git-stdio-jsonrpc-errors
Open

fix(git): keep stdio server alive on JSON-RPC parse errors#4248
kgarg2468 wants to merge 1 commit into
modelcontextprotocol:mainfrom
kgarg2468:kgarg/git-stdio-jsonrpc-errors

Conversation

@kgarg2468
Copy link
Copy Markdown

Summary

  • align mcp-server-git's stdio run mode with fetch/time/sqlite by disabling exception re-raise from malformed input
  • prevents deeply malformed JSON-RPC frames from tearing down the git server process

Fixes #4213

Test Report

  • cd src/git && uv run pytest tests/test_server.py (41 passed)

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.

[git] raise_exceptions=True

1 participant