Skip to content

Caching hints (ttlMs / cacheScope) #2899

Description

@maxisbey

Tracks: #2802

Emit ttlMs/cacheScope on the six cacheable results with a server-wide default and per-handler override; client just parses/exposes.

What's in it

  • Server-wide default + per-handler override for ttlMs/cacheScope on tools/prompts/resources/templates list, resources/read, and discover.
  • tools/list deterministic ordering (the SHOULD).
  • Client parse/expose helper (wired in by New Client (all-versions, low-level + high-level) #2894).

Conformance

Dependencies

  • Depends on: none

References

Activity

  1. added
    v2Affects the v2 line (2.x on main)
    spec-2026-07-28Concerns the SDK's implementation of the 2026-07-28 MCP spec revision
    on Jun 17, 2026
  2. maxisbey commented on Jul 1, 2026

    @maxisbey
    ContributorAuthor

    Shipped in v2.0.0b1: server-wide default + per-handler ttlMs/cacheScope on all six cacheable results (#3015), deterministic tools/list ordering, and the client-side response cache honoring the hints (#3023). The caching conformance scenario passes.

    AI Disclaimer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    spec-2026-07-28Concerns the SDK's implementation of the 2026-07-28 MCP spec revisionv2Affects the v2 line (2.x on main)

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions