dsh-mcp-lens
通过两个面向模型的工具、延迟发现和精确 Schema 调用,减少 DeepSeek Harness 中的 MCP 上下文和 API 成本。
AI 分析
核心用途是优化 MCP(Model Context Protocol)的上下文占用与 API 开销。适合频繁使用 MCP 工具、希望降低 Token 消耗和费用的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:labmimors/dsh-mcp-lens说明文档
阅读完整 README ↗Configuration reference
Most users only need servers, cachePath, allowTools, and denyTools. The remaining fields already have bounded defaults:
Show all bounded defaults
| Field | Default | Purpose |
|---|---|---|
catalogTtlMs | 86400000 | Refresh a catalog after 24 hours |
idleDisconnectMs | 300000 | Close an idle server after 5 minutes |
connectTimeoutMs | 30000 | Connection deadline |
callTimeoutMs | 60000 | Tool-call deadline |
discoveryTimeoutMs | 30000 | Whole paginated discovery deadline |
maxDiscoveryPages | 1000 | Maximum pages per discovery |
maxToolsPerServer | 10000 | Maximum tools accepted from one server |
maxBytesPerTool | 1048576 | Maximum projected metadata bytes per tool |
maxTotalCatalogBytes | 67108864 | Maximum total catalog/cache bytes |
maxHttpResponseBytes | 16777216 | Maximum streamed HTTP response bytes |
maxCursorBytes | 4096 | Maximum UTF-8 pagination cursor bytes |
searchLimitDefault | 5 | Default search results |
searchLimitMax | 10 | Maximum search results |
See the shipped cordis.patch.yml for the canonical defaults.