You may not include more than 128 tools in your request.
编辑于 2025-08-13 23:04:46 阅读 87
问题
使用VS Code
Agent 模式时,它会自动发现其他 MCP 客户端中定义的 MCP 服务器,(例如 Claude Desktop、Cursor、Windsurf)。这样 MCP 工具数量很容易超过 128 个,如何禁用自动发现呢?
解决办法
- 将
chat.mcp.discovery.enabled
设置为false
设置中搜索“chat.mcp.discovery.enabled”,或编辑文件 ~/Library/Application\ Support/Code/User/settings.json
参考
https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server