Skip to content

Test foundations (safety nets) #2905

Description

@maxisbey

The safety net the core reworks rely on: pin today's behaviour so nothing can silently break it, and give every other ticket a way to write tests against the modern path. Zero dependencies — anyone can start today.

What's in it

  • Legacy wire-protection golden tests: pin the 2025 stateful and stateless_http=True paths byte-for-byte (session lifecycle, GET stream, resumability, the literal HTTP 400 error bodies the current transport returns, and the behaviour when no MCP-Protocol-Version header is sent), plus negative checks that no 2026 vocabulary leaks onto a 2025 wire.
  • In-memory / DirectDispatcher 2026 parity so other tickets can write end-to-end tests without HTTP.
  • Add the modern sessionless path as a tests/interaction connect-fixture leg, so every existing transport-agnostic test re-proves over the 2026 wire mode.
  • Optional: a public-API snapshot test (so accidental surface breaks are loud).

Conformance

  • (test infrastructure — proven by the suite itself staying green through the core reworks)

Dependencies

  • Depends on: none

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    spec-2026-07-282026-07-28 MCP spec release workv2Ideas, requests and plans for v2 of the SDK which will incorporate major changes and fixes

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions