YaLei Li让Claude Code使用MCP时减少令牌消耗 中发帖

Claude Code 在会话开始时会提前加载所有工具定义,这会消耗大量上下文 token - 特别是对于配置了多个 MCP 服务器、插件和代理的用户。Anthropic 已发布专门为此设计的测试功能:工具搜索工具和程序化工具调用。 
相关文档请查看:https://www.anthropic.com/engineering/advanced-tool-use
通过搜索GitHub - anthropics/claude-code: Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and han...