Skip to content

Add cache fields to list and resource results - #290

Open
EhsanAzish80 wants to merge 1 commit into
modelcontextprotocol:mainfrom
EhsanAzish80:feat/cacheable-results
Open

EhsanAzish80 wants to merge 1 commit into
modelcontextprotocol:mainfrom
EhsanAzish80:feat/cacheable-results

Conversation

@EhsanAzish80

Copy link
Copy Markdown

This adds ttlMs and cacheScope to the five results covered by issue #243. Older results still decode without either field, and negative TTL values are treated as immediately stale. This is a wire-model step toward the July protocol, not full 2026 support.

Tests: 556 Swift tests passed locally, including result JSON, legacy decoding, invalid scope and negative TTL checks.

AI assistance was used to write the code and tests. The diff was checked and the tests were run locally.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant