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

image.png

参考

https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server

广而告之,我的新作品《语音助手》上架Google Play了,欢迎下载体验