You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 449a7d6
Browse filesBrowse the repository at this point in the historyBrowse files
fix: return HTTP 404 for METHOD_NOT_FOUND in stateless transport (#1072)
The HttpServletStatelessServerTransport was returning HTTP 200 for all
JSON-RPC responses, including METHOD_NOT_FOUND errors. Per the MCP
Streamable HTTP specification (2026-07-28), an unrecognized method must
return HTTP 404 with JSON-RPC error code -32601, not HTTP 500 or 200.
This caused OpenAI's hosted MCP client to receive HTTP 500 (or 200 with
an error body it could not process) when sending server/discover requests,
resulting in HTTP 424 external_connector_error from the Responses API.
The fix maps METHOD_NOT_FOUND (-32601) responses to HTTP 404 at the
transport layer. All other JSON-RPC errors continue to use HTTP 200
per standard JSON-RPC conventions.
0 commit comments