VS Code Copilot: too many MCP tools (128 tools per request limit)
VS Code Copilot Chat reportedly allows at most 128 tools per request across all servers. Count your tools with jq and cut the list.
Keep your server well under 128 tools, and ideally under 64. The scanner fails count.vscode-limit above 128 tools and warns above 64, because VS Code caps tools per request across all connected servers. VS Code's agent tools page states the 128-tool limit for the Local agent harness; whether the Copilot harness has the same cap is not documented, so treat 128 as the safe ceiling.
What you see
- A scan reports
count.vscode-limit: "N tools" (fail, above 128) or "N tools leaves little room for other servers" (warning, above 64). - In VS Code, users enabling your server alongside others may hit a tool-count error or find tools disabled. The exact message is not verified here.
Why it happens
Servers generated from a large API expose one tool per endpoint. Chat clients load every tool definition into the model's context, so a limit on the client side is common. Because the cap is shared by every enabled server, a 100-tool server leaves little room for anything else.
Check it yourself
curl -s -X POST https://mcp.acme.example/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $TOKEN" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
| jq '.result.tools | length'
If the server pages tools/list, follow the cursor and sum the pages.
Fix
- Merge near-duplicate tools: one
search_orderswith filters instead ofsearch_orders_by_status,search_orders_by_dateandsearch_orders_by_customer. - Remove tools no one calls. Your logs show which.
- Split by audience: a read-only server and a separate admin server, so users enable only what they need.
- Do not collapse everything into one generic executor to hit a number. That trades one rule for catchall.generic-executor.
Smaller tool lists also help models choose correctly.
Verify
Re-run the count and expect a number under 64. Add the server in VS Code next to your usual servers and confirm all tools are available.
Which clients care
VS Code only, per the rule's platform tag.
Source
VS Code MCP servers documentation: https://code.visualstudio.com/docs/agent-customization/mcp-servers and agent tools, which states the 128-tool limit: https://code.visualstudio.com/docs/agents/agent-tools
Run a free scan at https://mcpshipyard.com/scan to check every rule at once.
Check every rule at once
A free scan runs this check and the other 152 against your live URL.