labmimors/dsh-mcp-lens4

dsh-mcp-lens

通过两个面向模型的工具、延迟发现和精确 Schema 调用,减少 DeepSeek Harness 中的 MCP 上下文和 API 成本。

AI 分析

核心用途是优化 MCP(Model Context Protocol)的上下文占用与 API 开销。适合频繁使用 MCP 工具、希望降低 Token 消耗和费用的用户。

包名
dsh-mcp-lens
版本
0.1.0-rc.9
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:labmimors/dsh-mcp-lens

Configuration reference

Most users only need servers, cachePath, allowTools, and denyTools. The remaining fields already have bounded defaults:

Show all bounded defaults

FieldDefaultPurpose
catalogTtlMs86400000Refresh a catalog after 24 hours
idleDisconnectMs300000Close an idle server after 5 minutes
connectTimeoutMs30000Connection deadline
callTimeoutMs60000Tool-call deadline
discoveryTimeoutMs30000Whole paginated discovery deadline
maxDiscoveryPages1000Maximum pages per discovery
maxToolsPerServer10000Maximum tools accepted from one server
maxBytesPerTool1048576Maximum projected metadata bytes per tool
maxTotalCatalogBytes67108864Maximum total catalog/cache bytes
maxHttpResponseBytes16777216Maximum streamed HTTP response bytes
maxCursorBytes4096Maximum UTF-8 pagination cursor bytes
searchLimitDefault5Default search results
searchLimitMax10Maximum search results

See the shipped cordis.patch.yml for the canonical defaults.