dong-victor/dsh-mcphub0

@dong-victor/dsh-mcphub

MCPHub 桥接插件(DSH Web GUI):把本地 MCPHub(http://localhost:3000,@samanhappy/mcphub)聚合暴露的全部 MCP server 工具桥接进 DSH。宿主侧以 MCP Streamable HTTP 客户端连接 MCPHub 聚合端点 /mcp(或 /mcp/<group> 分组端点),把发现到的工具以 mcp__mcphub__<server>-<tool> 形式注册为 agent 原生工具;提供 mcphub_status / mcphub_resync 两个 agent 工具,/api/dsh-mcphub/status 环回路由与侧边栏「MCPHub」面板(连接状态、server/工具清单、一键打开 MCPHub Dashboard)。断线自动指数退避重连、工具集热同步(tools/list_changed),无需改 dsh 源码。

包名
@dong-victor/dsh-mcphub
版本
0.1.0
许可证
MIT
最近更新
2026年8月19日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dong-victor/dsh-mcphub

配置(可选)

在 profile 的 cordis.patch.yml 中按需覆盖:

- id: mcphub
  name: '@dong-victor/dsh-mcphub'
  config:
    baseUrl: http://localhost:3000   # MCPHub 地址
    group: ''                        # 留空=全局聚合 /mcp;填分组名= /mcp/
    serverName: mcphub               # 工具命名空间(mcp____…)
    headers: {}                      # 附加 HTTP 头,如 { Authorization: 'Bearer xxx' }(MCPHub 开启 bearer 认证时)
    announceToAgent: true            # 是否向 agent 公告本插件
    toolCallTimeoutMs: 60000         # 单次 tools/call 超时
    reconnect:
      enabled: true
      initialDelayMs: 500
      maxDelayMs: 30000
      maxAttempts: 10