Skip to content

Keep the MCP stdio server alive after malformed request frames - #81

Open
rudycelekli wants to merge 1 commit into
tigerless-labs:mainfrom
rudycelekli:codex/am-mcp-invalid-framing
Open

rudycelekli wants to merge 1 commit into
tigerless-labs:mainfrom
rudycelekli:codex/am-mcp-invalid-framing

Conversation

@rudycelekli

@rudycelekli rudycelekli commented Oct 9, 2026 •

Copy link
Copy Markdown

The stdio adapter returns JSON-RPC parse or invalid-request errors for malformed frames and continues reading subsequent requests. An explicit null request ID receives a response, while requests without an ID retain notification behavior. Error codes and envelope rules follow https://www.jsonrpc.org/specification.

Validation: added regressions fail on upstream and pass with this change. The complete isolated suite and Ruff pass. Mypy retains the pre-existing OpenRouter assignment error at openrouter.py:327.

Python3.13 macOS with temporary fixtures; no live provider or host calls; no models installed.

@rudycelekli
rudycelekli force-pushed the codex/am-mcp-invalid-framing branch from 12e445b to d098f57 Compare October 9, 2026 21:38
@rudycelekli
rudycelekli marked this pull request as ready for review October 9, 2026 22:45
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.

1 participant