ben7am1n/dsh-mcp-proxy1

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 消耗并提高响应速度的用户。

패키지
dsh-mcp-proxy
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 13.

설치

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

Configuration

- 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}`
FieldDefaultMeaning
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
catalogTtlMs86400000 (1 day)Age at which a cached catalog is refetched on the next discovery
idleDisconnectMs300000 (5 min)Idle period after which a warm connection closes
connectTimeoutMs30000Bound on one MCP handshake
callTimeoutMs60000Bound on one callTool request
discoverLimitDefault15Hits returned when the model omits limit
discoverLimitMax50Hard cap, whatever the model asks for