Skip to content

MCP: friendly 405 on a non-POST /mcp (browser GET explains itself) - #139

Merged
WebTigers merged 1 commit into
mainfrom
fix/mcp-friendly-get
Aug 17, 2026
Merged

MCP: friendly 405 on a non-POST /mcp (browser GET explains itself)#139
WebTigers merged 1 commit into
mainfrom
fix/mcp-friendly-get

Conversation

@WebTigers

Copy link
Copy Markdown
Owner

Hitting /mcp in a browser returned a cryptic -32700 Parse error. A non-POST isn't a JSON-RPC call; per the Streamable HTTP transport, GET is for an SSE stream we don't offer in v1 → respond 405 (Allow: POST) with a human-readable body (name, version, protocolVersion, and how to use it: POST JSON-RPC / MCP Inspector / curl). POST behavior is unchanged.

Verified on dev — a browser GET now returns the info message instead of a parse error. Test: GET → 405 + info body.

🤖 Generated with Claude Code

Hitting /mcp in a browser returned a cryptic JSON-RPC parse error (-32700). A
non-POST is not a JSON-RPC call; per Streamable HTTP, GET is for an SSE stream we
don't offer in v1 → respond 405 (Allow: POST) with a human-readable body — name,
version, protocolVersion, and how to use it (POST JSON-RPC / MCP Inspector / curl).
POST behavior is unchanged. Test: GET → 405 + the info body.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@WebTigers
WebTigers merged commit 389759d into main Aug 17, 2026
13 checks passed
@WebTigers
WebTigers deleted the fix/mcp-friendly-get branch August 17, 2026 19:43
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