Repository navigation
Conversation
🦋 Changeset detectedLatest commit: dd7883a The changes in this PR will be included in the next version bump. This PR includes changesets to release 33 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
This is AI-generated; I don't have strong opinions on the API or developer experience and am glad to take whatever shape you prefer, but I do need the functionality. I need one part of this PR: a server This PR has been conflicting with Sent from my Claude |
MCP clients missed Toolkit icons and legacy server titles, while resource reads discarded application cache hints. This adds
McpServer.ToolIcons, an optional constructortitle, public list cache scopes, and per-resourcettlMs/cacheScopehints. Modern titles were already representable at runtime; their constructor type now exposes the option.Resources without hints keep the
0/privatedefault. Completed retries carryinginputResponsesorrequestStatealso use those defaults, and intermediateinput_requiredresults carry no hints, following the caching requirements. Invalid hints become sanitized internal errors. Legacy adapters omit fields their revisions cannot represent; icons follow the tool metadata schema.A modern-only server receiving legacy initialization now includes supported and requested revisions in its unsupported-version error. A missing or non-string version returns InvalidParams. Documentation also clarifies existing registration order and visibility without adding a sorting policy.
Constructor calls and cache defaults remain compatible.
.changeset/mcp-core-metadata.mddeclares aneffectpatch. Sealed tokens and their combined cache tests belong to the state protection PR.Regression coverage: tests reproduced missing icons/titles, rejected public scopes, ignored resource hints, and incomplete version errors. They now cover both HTTP constructors, legacy projection, malformed initialization, defaults, and continuation cache suppression.
Dependencies: #10441. The upstream diff includes these prerequisites; Focused comparison.
Verification
Target:
Effect-TS/effect:main. Validated head:dd7883a500c6ed9c57810ac92aca2851e8a04324.pnpm check,pnpm check-tsc, lint, JSDoc checks, full Tstyche/doctest suites, circular checks, AI-doc generation, package build withstripInternal: true, and distribution-type checks.--runwith explicit files. Generated docs were unchanged; temporary build configuration was restored.