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.