-
Notifications
You must be signed in to change notification settings - Fork 141
[Server][Schema] SEP-2549: ttlMs and cacheScope on list/read results #354
Copy link
Copy link
Open
Labels
2026-07-28All issues and PRs related to the spec release 2026-07-28All issues and PRs related to the spec release 2026-07-28SchemaIssues & PRs related to the Schema componentIssues & PRs related to the Schema componentServerIssues & PRs related to the Server componentIssues & PRs related to the Server componentenhancementRequest for a new feature that's not currently supportedRequest for a new feature that's not currently supportedimproves spec complianceImproves consistency with other SDKs such as TyepScriptImproves consistency with other SDKs such as TyepScript
Metadata
Metadata
Assignees
Labels
2026-07-28All issues and PRs related to the spec release 2026-07-28All issues and PRs related to the spec release 2026-07-28SchemaIssues & PRs related to the Schema componentIssues & PRs related to the Schema componentServerIssues & PRs related to the Server componentIssues & PRs related to the Server componentenhancementRequest for a new feature that's not currently supportedRequest for a new feature that's not currently supportedimproves spec complianceImproves consistency with other SDKs such as TyepScriptImproves consistency with other SDKs such as TyepScript
Type
Fields
Give feedbackNo fields configured for issues without a type.
Implements SEP-2549 for the MCP Spec 2026-07-28 release.
Tracked by umbrella #336. Fully additive, non-breaking.
Spec summary
PHP SDK changes
src/Schema/Result/ListToolsResult.php,ListPromptsResult.php,ListResourcesResult.php,ListResourceTemplatesResult.php,ReadResourceResult.php— add optionalttlMs: ?intandcacheScope: ?stringfields.CacheScopeenum undersrc/Schema/Enum/.src/Capability/Registry/Registry.phpand list handlers (src/Server/Handler/Request/List*Handler.php) — accept TTL/scope config (viaBuilderor per-capability attributes).src/Server/Builder.php— add global defaults likesetListTtlMs(int),setListCacheScope(CacheScope).#[Cacheable(ttlMs: ..., scope: ...)]attribute undersrc/Capability/Attribute/.Related