问题
使用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/...