File tree Expand file tree Collapse file tree
examples/stories/legacy_routing Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments