GunjanPatel359/dsh-tool-search ↗★ 0
dsh-tool-search
延迟加载MCP工具以保护提示词缓存 适合拥有大量MCP工具的用户,通过先发送索引、按需加载详情来优化缓存效率。
同名包的其他仓库
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GunjanPatel359/dsh-tool-search说明文档
阅读完整 README ↗Configuration
- id: dsh-tool-search
name: dsh-tool-search
config:
match: ['mcp__'] # name prefixes to defer
exclude: [] # ...except these prefixes, e.g. ['mcp__mycore__'] for tools used every turn
alwaysLoad: [] # exact names always sent in full
minTools: 10 # defer only when at least this many match
indexStyle: signature # names | summary | signature (name, parameter names, summary)
maxDetails: 10 # most tools one tool_details call returns
summaryChars: 120 # length of each summary in the index
indexChars: 12000 # past this, remaining tools are listed by name only
detailsToolName: tool_details
callToolName: call_tool
A patch replaces a row's whole config, so restate every key you set.
With fewer than minTools matching tools nothing changes: a handful of definitions costs less than an extra step.
Keep tools the agent uses on most turns out of the index with exclude or alwaysLoad.