Repository navigation
Commit 9f94929
committed
fix(fetch): handle malformed input without crashing
mcp-server-fetch crashes on any malformed JSON-RPC input because
server.run() is called with raise_exceptions=True. A single invalid
byte on stdin terminates the server process via unhandled
ExceptionGroup.
Change to raise_exceptions=False to match the behavior of other
reference servers (e.g., mcp-server-time, mcp-server-sqlite) which
handle parse errors gracefully and continue serving.
Fuzz testing showed fetch crashed on 61/65 test cases while other
servers using raise_exceptions=False survived all 65.
Fixes modelcontextprotocol#33591 parent a97aba1 commit 9f94929
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
0 commit comments