Under the hood
Useful2 Signal0
MCP tools now get built the same way whether they come fresh from a server or from cache.
What's wrong with this entry?
Anonymous. No account, no email.
What
Turning a tools/list response into Claude Code tool objects is now one shared function, which also serves servers rebuilt from a persisted cache.
Details
- The extracted function covers schema normalization, skipping API-incompatible schemas, degraded-mode telemetry, permission wrappers and auto-background.
- It takes a source mode; the live listing path passes "live".
- A second caller builds the same tools from a cache entry carrying a saved-at timestamp.
- The zero-tools degraded event is now emitted only on the live path.
Evidence
cacheSavedAt
Strings lifted out of the shipped bundle, so the claim above can be checked against them.