dsh-cc/dsh-cc--packages-mcp-mcp-client ↗★ 1

@dsh-cc/mcp-client

连接 MCP 服务器并将其工具注册到上下文中,每个服务器一个实例。 适合需要接入 MCP 工具的用户;需在配置中为每个服务器单独设置。

套件
@dsh-cc/mcp-client
相容性
待驗證
Harness 依賴範圍
>=0.1.5-rc.1
Cordis 依賴範圍
>=0.1.5-rc.1
版本
0.7.1
授權
Apache-2.0
最近更新
2026年9月16日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

Usage

One plugin instance per MCP server in cordis.yml:

- id: mcp-github
  name: '@dsh-cc/mcp-client'
  config:
    serverName: github
    transport: stdio
    command: npx
    args: ['-y', '@modelcontextprotocol/server-github']
    env:
      GITHUB_TOKEN: !!js process.env.GITHUB_TOKEN

- id: mcp-web
  name: '@dsh-cc/mcp-client'
  config:
    serverName: web
    transport: streamable-http
    url: http://localhost:3000/mcp
    headers:
      Authorization: !!js '`Bearer ${process.env.MCP_TOKEN}`'

- id: mcp-feed
  name: '@dsh-cc/mcp-client'
  config:
    serverName: feed
    transport: sse
    url: http://localhost:3001/sse
    oauth:
      redirectUrl: http://localhost:8787/callback

The model sees mcp__github__create_issue, mcp__web__search, … — the same server-qualified shape Claude Code and Codex use. HMR hot-swaps: editing the entry triggers disconnect + reconnect without process restart; an unchanged serverName reproduces identical tool names.