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 b6be755
Browse filesBrowse the repository at this point in the historyBrowse files
Transport: pre-session 404 maps to METHOD_NOT_FOUND; POSTs never read cached pv header. serve_one reshape + raise_exceptions
- Bare HTTP 404 before a session is established now maps to METHOD_NOT_FOUND
(was INVALID_REQUEST/"Session terminated", which is meaningless pre-session);
with a session_id, 404 keeps the session-terminated mapping
- _prepare_headers split: _base_headers (POST) vs _prepare_headers (GET/DELETE).
POSTs never read the cached MCP-Protocol-Version header — they get it via
per-message metadata only. Prevents the discover probe's header from leaking
onto a fallback initialize POST.
- serve_one reshaped to (server, dctx, method, params, *, ..., raise_exceptions);
modern_on_request drops the JSONRPCRequest round-trip and threads
raise_exceptions through to to_jsonrpc_response(raise_unhandled=). Client's
modern in-process branch now honors raise_exceptions (handler exceptions
chain via __cause__ instead of being sanitized to INTERNAL_ERROR).
0 commit comments