Skip to content

New Client (all-versions, low-level + high-level) #2894

Description

@maxisbey

The reworked Client that speaks every version: a connect sequence that probes server/discover and falls back to initialize, stamps the _meta envelope on modern requests, and exposes both a low-level interface (raw requests, handle MRTR yourself) and a high-level one (negotiation/MRTR/etc. handled). Relationship to ClientSession is part of this design.

What's in it

  • Low-level + high-level interface; relationship to ClientSession (replaces? wraps? grows 2026 under the hood?).
  • Connect sequence: probe server/discover → fall back to legacy initialize; cache era per origin.
  • Stamp the _meta envelope on every modern request.
  • Emit Mcp-Method / Mcp-Name / Mcp-Param-* on modern HTTP (consumes the helpers from HTTP standard headers + x-mcp-header #2900).
  • Own the client-side wiring of the MRTR loop (MRTR (multi-round-trip requests)), listen stream (subscriptions/listen), and caching parse (Caching hints (ttlMs / cacheScope)) — those issues supply the helpers.
  • Never send session-id / open GET / DELETE against modern servers.

Conformance

Dependencies

References

Metadata

Metadata

Assignees

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