跳转到正文
其他

You may not include more than 128 tools in your request.

崔哥1 分钟3,895
文章目录

问题

使用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

最后更新于 2025-08-13