Repository navigation
Releases
v0.2.0
dsh-mcp-hub 0.2.0
新增:远程 MCP 的 OAuth 登录
- 支持需要 OAuth 的远程 MCP 服务:PRM / AS 元数据发现、动态客户端注册(DCR)、PKCE S256、本机回环回调。
- 授权后访问令牌写入 DSH 凭证服务,配置里只保留
${credential:MCPHUB_<SERVER>_ACCESS_TOKEN}引用;连接随引用变化自动重建。 - 重启 DSH 后从授权记录恢复;到期前自动刷新;删除服务时清理授权记录与凭证引用。
- 编辑页可选「访问令牌」或「OAuth 登录」;授权状态显示在对应服务行内,「继续授权 / 重新授权 / 取消授权」都在行内,可同时授权多个服务。
- 授权页由宿主进程调用系统默认浏览器打开(macOS
open、Linuxxdg-open、Windowsrundll32)。
其他
- Windows:按
PATHEXT探测可执行命令(npx、uvx等.cmd),Windows CI 真机跑绿并改为阻塞。 - 连接:
bad port、ENOTFOUND等永久性错误快速结算为失败,不再耗尽重试预算。 - 测试:
test:oauth、test:registry、tarball / 真实远程 / 真实来源验收;单测 159 项,打包 28 个文件。 - 文档:README 中英双语,新增使用文档、测试说明与桌面验收清单。
安装:DSH 插件市场搜索 dsh-mcp-hub,或从 Release 下载 dsh-mcp-hub.tgz 添加插件。
dsh-mcp-hub 0.2.0 (English)
New: OAuth login for remote MCP servers
- Supports remote MCP servers that require OAuth: PRM / AS metadata discovery, Dynamic Client Registration (DCR), PKCE S256, and a loopback callback.
- Access tokens are stored in the DSH credential service; the config keeps only a
${credential:MCPHUB_<SERVER>_ACCESS_TOKEN}reference, and the connection is rebuilt when the reference changes. - Authorization is restored from the stored grant after a DSH restart, refreshed before expiry, and cleaned up together with the credential reference when the server is removed.
- The editor offers "access token" or "OAuth login". Authorization state is shown inline in the server row, with "continue / retry / cancel" actions; multiple servers can authorize at the same time.
- The authorization page is opened in the system default browser by the host process (
openon macOS,xdg-openon Linux,rundll32on Windows).
Other changes
- Windows: executable lookup now honors
PATHEXT(npx,uvx, and other.cmdshims). Windows CI runs green on a real runner and is now blocking. - Connections: permanent errors such as
bad portandENOTFOUNDsettle as failed immediately instead of exhausting the retry budget. - Tests:
test:oauth,test:registry, tarball / real remote / real local-source checks; 159 unit tests, 28 files in the package. - Docs: bilingual README, plus usage, testing, and desktop acceptance documentation.
Install: search for dsh-mcp-hub in the DSH plugin market, or download dsh-mcp-hub.tgz from this Release and add it as a plugin.
v0.1.0
English
First public release of dsh-mcp-hub, a DSH plugin that manages MCP servers from Settings → MCP Hub.
Highlights
- Manage MCP servers in place — list, add, edit, enable/disable, delete and re-verify servers without editing the profile by hand.
- Import existing local configs — scans Claude Code, Claude Desktop, Codex, Gemini CLI, VS Code / Copilot, Copilot CLI, Windsurf, Cursor and OpenCode (TOML / JSON / JSONC, desktop and CLI variants), plus project-level configs.
- Search the official MCP Registry — search, inspect details and pre-fill a new server directly from the registry.
- Verify before saving — connection and tool discovery run first; the panel shows connected / disabled / needs-attention states per server.
- Secrets go to the DSH credential service — saved as
${credential:MCPHUB_…}references instead of plain text; when the credential service is unavailable, plaintext secrets are refused. - Coexists with the official Manager — servers owned by the official Manager are shown read-only and are never overwritten.
Install
Requires DSH >=0.2.2-0 <0.3.0-0 (tested on 0.2.2-rc.5) and Node ^22.19.0 || >=24 for building. Transports: stdio and streamable-http (sse is not supported).
- Desktop app (recommended): Plugins → Add plugin → select
dsh-mcp-hub.tgz→ make sure MCP Hub is enabled → Settings → MCP Hub. - CLI profile:
dsh plugin --profile hub-dev add /path/to/dsh-mcp-hub.tgz dsh --profile hub-dev web
npm publication is intentionally skipped for now; install from this release asset or the marketplace listing.
Verification
- 147 unit tests
- 37-step web-profile end-to-end suite, 23-step UI suite, layout screenshots
- 9-client simulated-home suite and packaged-tarball install test (26 files)
- Opt-in checks against a real public MCP server and real local client configs
Asset: dsh-mcp-hub.tgz (26 files, includes built lib/client.js)
SHA-256: 16befbbc2972bb7c669996ecbce792d2f8d4ea907670bdc6f94d6209be090b31
中文
dsh-mcp-hub 首个公开版本:在 设置 → MCP Hub 里管理 DSH 的 MCP 服务。
主要功能
- 就地管理 MCP 服务:查看、添加、编辑、启停、删除、重新验证,不用手改 profile 配置。
- 导入本机已有配置:扫描 Claude Code、Claude Desktop、Codex、Gemini CLI、VS Code / Copilot、Copilot CLI、Windsurf、Cursor、OpenCode(TOML / JSON / JSONC,桌面端与 CLI 变体),并支持项目级配置。
- 搜索官方 MCP Registry:直接搜索、查看详情并预填新服务。
- 保存前先验证:先测试连接与工具发现,列表按服务展示已连接 / 已停用 / 需要处理。
- 密钥写入 DSH 凭证服务:保存为
${credential:MCPHUB_…}引用而不是明文;凭证服务不可用时拒绝保存明文密钥。 - 与官方 Manager 共存:官方 Manager 管理的服务只读展示,不会被覆盖。
安装
要求 DSH >=0.2.2-0 <0.3.0-0(已在 0.2.2-rc.5 验证),构建需要 Node ^22.19.0 || >=24。支持 stdio 与 streamable-http(不支持 sse)。
- 桌面应用(推荐):插件 → 添加插件 → 选择
dsh-mcp-hub.tgz→ 确认 MCP Hub 已启用 → 设置 → MCP Hub。 - CLI profile:
dsh plugin --profile hub-dev add /path/to/dsh-mcp-hub.tgz dsh --profile hub-dev web
暂不发布 npm 包,请从本 Release 附件或插件市场安装。
验证
- 147 项单元测试
- 37 步 web-profile 端到端、23 步页面端到端、布局截图
- 九客户端模拟 HOME 套件、打包 tarball 安装测试(26 个文件)
- 可选的公共 MCP 服务与真实本机配置检查
附件: dsh-mcp-hub.tgz(26 个文件,含构建后的 lib/client.js)
SHA-256: 16befbbc2972bb7c669996ecbce792d2f8d4ea907670bdc6f94d6209be090b31