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
Address review feedback and consolidate 2026-07-28 interaction tests
Review-response changes:
- Merge the duplicate _pinned_version guard in ClientSession.send_request
- Use is_version_at_least() instead of a raw string compare for the
per-message-headers gate
- Base64-wrap Mcp-Name values with leading/trailing spaces (RFC 7230
forbids them; h11 rejects on real transports)
- Add a TODO at the Mcp-Name gate naming prompts/get and resources/read
- Type the protocol_version pin as Literal["2026-07-28"] via
StatelessProtocolVersion so 2025-era values are a type error
- Reword the _related_request_id TODO in ServerSession to point at the
per-request Outbound shape (not at widening the Protocol)
Interaction-suite consolidation:
- Drop test_lifecycle_stateless.py and test_client_transport_http_modern.py;
their assertions are now proven by the capstone in
test_hosting_http_modern.py (envelope, headers, no-initialize) or moved
to tests/client/ (initialize-raises, session-id-ignore against a
misbehaving peer)
- Extend the capstone to capture ctx.meta server-side and assert the
caller-supplied _meta key survives the envelope merge
- Reconcile _requirements.py: stack request-envelope and
caller-meta-preserved on the capstone; defer no-initialize and
stateless-ignores-session-id to tests/client/; drop the duplicate
unpinned-legacy-wire and body-derived-headers entries
0 commit comments