插件目录 / Developer / dsh-mcp-center
dsh-mcp-center
已验证 · 实测可装 drfccv
✓ 持续维护 基于 1 个官方 DSH 包 纯 TypeScript
1Stars
0Forks
0未关闭 issue
TypeScript语言
2026-08-15最近推送
跨平台平台
功能简介
连接任意MCP服务器到DeepSeek Harness——点击即用
我们的评价
可用 — 实测通过,早期项目
可用 — 实测通过,早期项目
连接任意MCP服务器到DeepSeek Harness——点击即用 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
MCP Center
English | [中文](README.zh.md) **Connect any MCP server to your DeepSeek Harness — point, click, done.** MCP Center is a settings-driven MCP server manager. Register servers (Streamable HTTP or local stdio processes) on the dedicated **Settings → MCP Center** page; save and they connect immediately, their tools becoming first-class, model-callable tools in every session. Why use it
- **No code, no config files** — everything happens in the Settings UI. - **Both MCP server types supported**: - **Streamable HTTP** — remote MCP endpoints, with optional auth (none / static Bearer token / custom headers). - **stdio** — local processes (npx, uvx, python, …).
- **Tools are instantly usable** — each connected server's tools appear as mcp__<name>__<tool> and can be called by the model in all sessions.
- **Zero-dependency install** — the client transport is implemented in the plugin itself (no external MCP SDK), so the plugin adds no peer-dependency chain to your profile.
- **Per-server on/off** — disable a server to unregister its tools and drop the connection; the config is kept.
Requirements
- DeepSeek Harness with theweb profile
- Node.js ^22.19 or >=24
Quick start
1. Install the plugin
The package is published on npm as **dsh-mcp-center**:
``sh
install from the npm registry
dsh plugin --profile web add dsh-mcp-center
`
Prefer installing from source? See [Development](#development).
2. Restart and open the settings page
Restart dsh web, open **Settings → MCP Center**, and click **+ Add MCP server**:
- **Streamable HTTP**: name (the mcp__<name>__* prefix), URL, and auth mode (none / Bearer token / custom headers).
- **stdio**: name, command (e.g. npx), args (space-separated; quote args containing spaces), optional env (JSON object) and working directory.
3. Save — and it's connected
The server connects as soon as you save. Status badges show Connected (N tools) / Connecting / Error / Disabled. Per server you can enable/disable, delete, and (for Bearer servers) re-token.
The model can use it right away
Tools from connected servers are first-class to the model. For a server named web:
`
mcp__web__ping mcp__web__shout
`
Tool results are rendered as native text; isError results surface through the registry's error path.
> The plugin depends only on @deepseek-ai/cordis (peer) and React (client half). No MCP SDK, no settings-service coupling, no fallback-tree resolution of MCP peer packages.
Configuration storage
Server configs live in ~/.dsh/mcp-center.json:
`json
{
"servers": [
{ "id": "…", "name": "web", "type": "http", "url": "http://localhost:3000/mcp", "authMode": "none" },
{ "id": "…", "name": "fs", "type": "stdio", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"] }
]
}
`
> ⚠️ Bearer tokens are stored here in plain text — treat this file as a secret.
How it works
| Piece | Mechanism |
|---|---|
| Settings page | settings.section slot entry (MCP Center tab) |
| API | Same-origin JSON under /mcp-center/api/* (ping, servers CRUD, connect, enabled) |
| HTTP transport | Streamable HTTP: JSON-RPC over POST, Mcp-Session-Id, JSON or SSE responses |
| stdio transport | child_process.spawn a local command, JSON-RPC over stdin/stdout (newline-delimited); reconnect reaps the old process first |
| Tool schema | Server JSON Schemas sanitized to the registry's supported raw subset (unsupported vocabulary degrades to unconstrained) |
| State | ~/.dsh/mcp-center.json |
Current limitations
- Only tools are bridged; resources and prompts MCP capabilities are not.
- Bearer tokens live in a plain JSON file under ~/.dsh — treat it as a secret.
- stdio servers run as long-lived child processes tied to the plugin lifecycle; args are whitespace-tokenized (quotes protect args with spaces) with no shell expansion — write absolute paths or env vars yourself for ~, $VAR, pipes, etc.
- No automatic reconnect after a crash in this version; re-enable or restart the server to reconnect.
Development
`sh
pnpm install
pnpm build # tsdown: lib/index.js (node) + lib/client.js (browser)
pnpm typecheck
``
安装
🧩 让 Agent 自动装(推荐)
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-mcp-center」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
Web profile:
dsh plugin --profile web add dsh-mcp-center Headless(CLI)profile:
dsh plugin --profile headless add dsh-mcp-center 包信息
npm:dsh-mcp-center · 版本 — · 实测环境 dsh 0.1.0-rc.6
实测报告
端到端验证通过:dsh 0.1.0-rc.6 上 L1 安装 + L2 加载 + L3 运行问答。
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。