Skip to content

Commit 23b42a3

Browse files
committed
legacy_routing README: name the Mcp-Method header rung
The code demonstrates that both Mcp-Protocol-Version and Mcp-Method must mirror the body; say so in the prose that describes the rejection arm.
1 parent fa9c543 commit 23b42a3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

examples/stories/legacy_routing/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ kill "$SERVER_PID"
4343
your own ingress.
4444
- `server.py` `classify_era` — the tri-state wrapper. `InboundModernRoute`
4545
`"modern"`; rung-1 `INVALID_PARAMS` (no envelope keys) → `"legacy"`; any
46-
other `InboundLadderRejection` (header mismatch, unsupported version) is a
47-
malformed-modern request to **reject**, not route to legacy.
46+
other `InboundLadderRejection` is a malformed-modern request to **reject**,
47+
not route to legacy. When headers are supplied, both `Mcp-Protocol-Version`
48+
and `Mcp-Method` must mirror the body — a disagreement (or an unsupported
49+
version) is what produces that third arm; `client.py` shows both.
4850
- `server.py` `build_app``streamable_http_app()` + `CORSMiddleware`. The
4951
`which_arm` tool reads `ctx.request_context.protocol_version` to prove which
5052
path the built-in router took.

0 commit comments

Comments
 (0)