Skip to content

Opportunity: TTL for list results (SEP-2549) #490

Description

@jongalloway

Opportunity: TTL for list results (SEP-2549)

Part of #481.

SDK 2.0 adds optional TimeToLive (TimeSpan?) and CacheScope to tools/list, prompts/list, resources/list, and server/discover results via ICacheableResult. This pairs naturally with the existing caching infrastructure (Caching/CachedResourceManager.cs, CacheMetrics.cs) to reduce client round-trips.

Tasks

  • Evaluate emitting TimeToLive/CacheScope on list results, sourcing TTLs from the existing cache configuration.
  • Ensure values are only emitted under 2026-07-28 (no effect on legacy clients).
  • Add/adjust tests for the new fields.

Acceptance

  • List results expose cache hints aligned with the server's caching layer.

Activity

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

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions