VS Code MCP server listing and the 128 tool limit
How MCP servers reach users in VS Code, where the 128 tools per request limit is documented, how it counts your tools, and how to stay under it.
Short answer: VS Code's docs say a chat request cannot have more than 128 tools, and that limit is attached to the older "Local harness" agent. The limit is shared by every tool from every enabled server plus built-in tools, so a server with 60 or more tools can already crowd out others. VS Code has no application-style approval portal for a bare MCP server. Users add a server by endpoint or command, or find it through the preview Customization Marketplace. Keep your server well under 128 tools, and ideally under 64.
Sources, fetched 2026-12-04: MCP servers in VS Code and agent tools.
What the docs say about the limit
The agent tools page says: "Cannot have more than 128 tools per request." It gives the fix as selecting Configure Tools and deselecting tools or MCP servers you do not need. Two details matter:
- The number appears under the deprecated Local harness. The page does not say whether the newer Copilot harness has the same cap. Unverified.
- The MCP servers page does not mention a limit at all, and says nothing about tool sets. Our rule page count.vscode-limit still describes the figure as not on VS Code's MCP page. That is true of the MCP page, but the number is on the agent tools page, so the rule text is out of date.
Separately, the agent tools page documents an experimental setting, github.copilot.chat.virtualTools.threshold, described as controlling "when to group tools for on-demand discovery". Setting it to 0 turns grouping off. The page gives no default threshold. Community reports say grouping may still start at 128, which we could not confirm, so do not design around it.
Community reports also say built-in and extension tools count toward the limit. One report puts a language extension at about 20 tools. That is unverified, but the arithmetic is the point: your tools are not the only ones in the request.
How users get your server into VS Code
From the MCP servers page:
| Route | How it works |
|---|---|
| Manual add | Run Chat: Open Customizations, choose MCP Servers, then Add Server and pick HTTP or Command (stdio). Or run MCP: Add Server from the Command Palette |
| Browse | MCP: Browse MCP Servers from the Command Palette |
| Marketplace (Preview) | The Customization Marketplace lists a GitHub Feed. Search by name or @type:mcp. Experimental, depends on organization policy |
| Team file | A workspace-root .mcp.json can share setup with teammates |
| Plugin | Install a plugin that bundles MCP servers |
The page's example remote endpoint is a plain HTTPS URL on the publisher's own domain, such as https://mcp.acme.example/mcp. The page does not describe a submission process for the Marketplace or the registry it links to. How to get into those feeds is unverified; if you want a registry listing, our guide on publishing to the official MCP registry covers the registry side, and where to list your MCP server compares venues.
VS Code also warns users about trust: "Local MCP servers can run code on your machine, and tools can access services using your permissions." Expect users to review your publisher, endpoint and requested access before they start a server, and to review sign-in and tool approval prompts. Say clearly in your README what each tool can do.
OAuth is not described on the MCP page. For client registration, VS Code users hit the same problem as other IDE clients when a server has neither DCR nor CIMD. See auth.client-registration-claude.
Count your tools
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 nextCursor and add the pages. Some transports return event-stream framing; strip the data: prefix before piping to jq.
Staying under the limit
| Tool count | What happens | What to do |
|---|---|---|
| 1 to 30 | Fine for most users | Keep as is |
| 31 to 64 | Competes with other servers | Merge near-duplicates |
| 65 to 128 | Scanner warns | Split into read and admin servers, or reduce |
| Over 128 | Scanner fails | The server alone exceeds the documented cap |
Practical fixes:
- Merge variants into one tool with filters:
search_orderswith astatusargument, not three status tools. - Remove tools that your logs show nobody calls.
- Split by audience: a read-only server and a separate admin server, so users enable only the one they need.
- Do not collapse everything into one executor to hit a number. That trades this problem for catchall.generic-executor, which Claude and ChatGPT reviews reject.
- Return
title, accurate annotations and short descriptions so the tools you keep are cheap to load. See MCP tool annotations explained.
What users can do when they hit it
Tell them in your README: open Configure Tools (Local harness) or the Tools section of the Agent Customizations editor (Copilot harness), and clear tool groups or servers they do not use. This is the documented remedy, and it means your tools may be switched off by default for users who already run many servers. A short, honest description of which tools matter most helps them choose.
Checklist
| Done | Item |
|---|---|
| [ ] | tools/list count recorded, paging followed |
| [ ] | Count under 64, or a read and admin split |
| [ ] | No generic executor tool |
| [ ] | README explains each tool and the sign-in flow |
| [ ] | Server works with a plain HTTP entry via MCP: Add Server |
| [ ] | .mcp.json snippet published for teams |
| [ ] | Marketplace or registry listing route confirmed (unverified in this guide) |
Scan your live URL for free at https://mcpshipyard.com/scan
Check your server against these rules
Scan runs the checks from this guide against a live URL and lists each failing rule with its fix.