dsh-tool-index:用工具索引压缩 MCP 定义,降低 DSH 每轮 token
dsh-tool-index 是 GunjanPatel359 维护的 DSH 社区插件,将 MCP 工具以紧凑索引(名称、参数与摘要)发送,通过 tool_details 与 call_tool 按需加载完整 schema,会话内工具列表保持稳定以利于 prompt cache。README 基准显示多 MCP 场景下单任务 token 可降约 15%–56%。安装使用 dsh plugin --profile tui add dsh-tool-index;可通过 match、minTools、exclude 等配置控制延迟范围。插件 MIT 许可,面向 DSH 0.2.x 与 native tool calls。
阅读全文