Repository navigation
agent: the grant sets how many .mcp.json servers a session may add - #480
Merged
Merged
Conversation
The 16-server cap on a hosted session's .mcp.json was a constant in the agent, but the number is policy. The grant's limits now carry max_mcp_json_servers (omitted from the wire when absent, so existing grants and vectors are byte-identical). The agent keeps only a hard ceiling of 64, applied when the claim is absent or larger. Grant connectors stay uncounted; the summary warning names which limit applied. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JimHGjsfk2Ktm5GxyZJKKk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A hosted session's .mcp.json servers were capped by a hard-coded 16 in the agent, but how many a tenant may add is policy.
The grant's
limitsgains optionalmax_mcp_json_servers(omitted from the wire when absent; vectors and old grants are byte-identical). The agent enforces it, keeping only a hard ceiling of 64 that applies when the claim is absent or larger. Grant-sourced connectors stay uncounted; the single summary warning names which limit applied. test-support minter andbeyond-ai-demo mint-grant --limits-max-mcp-json-serversset it; ARCHITECTURE.md updated.Failing first: the three new mcp_json tests (limit below ceiling, no limit over 64 entries, limit above 64) failed on the old fixed cap; the grant round-trip test covers the new claim.
🤖 Generated with Claude Code
https://claude.ai/code/session_01JimHGjsfk2Ktm5GxyZJKKk