dsh-mcp-proxy
Context-cheap MCP access for DeepSeek Harness: two proxy tools instead of every server's full schema set, with lazy connections, an on-disk tool catalog, and idle disconnect
AI 분석
核心用途是降低 MCP 服务器占用的大量 Prompt 上下文。适合配置了多个 MCP 服务、希望节省 Token 消耗并提高响应速度的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ben7am1n/dsh-mcp-proxyConfiguration
- id: mcp-proxy
name: dsh-mcp-proxy
config:
cachePath: !!js dshHomePath('mcp-proxy/catalog.json')
catalogTtlMs: 86400000
idleDisconnectMs: 300000
connectTimeoutMs: 30000
callTimeoutMs: 60000
discoverLimitDefault: 15
discoverLimitMax: 50
servers:
- name: github
transport: stdio
command: npx
args: ['-y', '@modelcontextprotocol/server-github']
env:
GITHUB_TOKEN: !!js process.env.GITHUB_TOKEN
- name: internal
transport: streamable-http
url: http://localhost:3000/mcp
headers:
Authorization: !!js `Bearer ${process.env.MCP_TOKEN}`
| Field | Default | Meaning |
|---|---|---|
servers | [] | The servers this deployment can reach. Names are [A-Za-z0-9_-]{1,32} and must be unique |
cachePath | — (required) | JSON file caching each server's tool list |
catalogTtlMs | 86400000 (1 day) | Age at which a cached catalog is refetched on the next discovery |
idleDisconnectMs | 300000 (5 min) | Idle period after which a warm connection closes |
connectTimeoutMs | 30000 | Bound on one MCP handshake |
callTimeoutMs | 60000 | Bound on one callTool request |
discoverLimitDefault | 15 | Hits returned when the model omits limit |
discoverLimitMax | 50 | Hard cap, whatever the model asks for |