Commit f41700e
fix(mcp): set ttlMs/cacheScope on tools/list and prompts/list (SEP-2549)
Omitting these cache-hint fields (Phase 3 of the MCP 2026-07-28 upgrade,
deferred in docs/plans/2026-08-04-mcp-2026-07-28-upgrade-plan.md) was assumed
spec-safe, but at least one real client (Claude Code / Antigravity
cc_version 2.1.232.43a) requires ttlMs/cacheScope as mandatory fields and
rejects tools/list and prompts/list outright when they're absent -- silently
registering zero tools even though the underlying MCP connection looks
healthy. Explicitly setting ttl_ms=900_000 and cache_scope (Private for
tools, since visibility is per-connection via preset/set_toolset; Public for
prompts, which are a static list) fixes this for that client with no
behavior change for clients that don't care about the fields.
Verified live via a raw JSON-RPC probe through scripts/mcp-launcher.sh: the
wire response now includes "ttlMs":900000,"cacheScope":"private" (tools) /
"...,"cacheScope":"public" (prompts).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent c88afa2 commit f41700e
1 file changed
Lines changed: 31 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
792 | 807 | | |
793 | 808 | | |
794 | 809 | | |
795 | 810 | | |
796 | 811 | | |
797 | 812 | | |
798 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
799 | 816 | | |
800 | 817 | | |
801 | 818 | | |
| |||
946 | 963 | | |
947 | 964 | | |
948 | 965 | | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
949 | 971 | | |
950 | 972 | | |
951 | | - | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
952 | 976 | | |
953 | 977 | | |
954 | 978 | | |
| |||
0 commit comments