Skip to content

feat: add client-side TTL-honoring response cache (SEP-2549)#1025

Merged
DaleSeo merged 2 commits into
mainfrom
feat/client-response-cache
Jul 22, 2026
Merged

feat: add client-side TTL-honoring response cache (SEP-2549)#1025
DaleSeo merged 2 commits into
mainfrom
feat/client-response-cache

Conversation

@alexhancock

Copy link
Copy Markdown
Contributor

Add a configurable client response cache in the service layer that honors SEP-2549 caching hints (ttlMs / cacheScope) for tools/list, prompts/list, resources/list, resources/templates/list, and resources/read.

Closes #974

Motivation and Context

Needed to support https://modelcontextprotocol.io/specification/draft/server/utilities/caching

How Has This Been Tested?

CI/Tests

Breaking Changes

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Original PR (heavily adapted for this): #975
https://github.com/starsaintf Marked as Co-Author

@alexhancock
alexhancock requested a review from a team as a code owner July 22, 2026 16:30
@github-actions github-actions Bot added T-documentation Documentation improvements T-core Core library changes T-service Service layer changes labels Jul 22, 2026
Comment thread crates/rmcp/src/service/client.rs
Comment thread crates/rmcp/src/service/client.rs Outdated
Comment thread crates/rmcp/src/service/client.rs Outdated
alexhancock and others added 2 commits July 22, 2026 16:17
Add a configurable client response cache in the service layer that honors
SEP-2549 caching hints (ttlMs / cacheScope) for tools/list, prompts/list,
resources/list, resources/templates/list, and resources/read.

Closes #974

Co-Authored-by: John-Francis Nnadi <nnadifrancis23@gmail.com>
@alexhancock
alexhancock force-pushed the feat/client-response-cache branch from 05d65d3 to 4bacc43 Compare July 22, 2026 20:32
@DaleSeo
DaleSeo merged commit 1519707 into main Jul 22, 2026
21 checks passed
@DaleSeo
DaleSeo deleted the feat/client-response-cache branch July 22, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-core Core library changes T-documentation Documentation improvements T-service Service layer changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement client-side TTL-honoring cache (SEP-2549 follow-up)

2 participants