GunjanPatel359/dsh-tool-search ↗★ 0
dsh-tool-search
Deferred tool loading for DSH: send MCP tools as a name index and load details on demand, without breaking the prompt cache. Built on DeepSeek Harness. 适合拥有大量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.