Chhlafiu4312/dsh-mcp-bridge0

dsh-mcp-connect

Zero-dependency MCP client bridge for DeepSeek Harness: connects stdio/HTTP MCP servers and auto-registers their tools for the agent.

包名
dsh-mcp-connect
版本
0.6.2
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Chhlafiu4312/dsh-mcp-bridge

🔧 Configuration

Servers are a JSON array. Each entry is either stdio or url:

{
  "id": "my-server",                // tool prefix: mcp__
  "command": "npx",                 // executable (stdio only)
  "args": ["-y", "server-pkg"],     // argv after the executable
  "cwd": "/abs/path",               // optional working directory
  "env": { "KEY": "value" },        // optional environment
  "url": "https://x.example/mcp",   // or: remote HTTP/SSE via mcp-remote
  "disabled": false,                // keep configured but inactive
  "allowTools": ["search_*"],       // optional: register only these tools
  "denyTools": ["delete_*"],        // optional: hide these tools
  "timeoutMs": 120000               // optional per-server call timeout
}
FieldTypeMeaning
idstring, requiredtool prefix — tools become mcp__
command + argsstring + string[]stdio server executable and its argv
urlstringremote server (HTTP/SSE, bridged through mcp-remote)
cwdstringworking directory (default: the process cwd)
envobjectextra environment variables
disabledbooleanlisted in mcp_status but never connected or validated
allowTools / denyToolsstring[]exact-name filters, combinable — hide destructive tools
timeoutMsnumberper-server call timeout in ms (default 120000)

Set the array through DSH_MCP_SERVERS (JSON), or edit the defaults in resolveServers() inside plugin.js. Ready-made examples: examples/servers.json — filesystem, GitHub, fetch, memory, Postgres, remote.

🔧 配置

server 配置是一个 JSON 数组,每项支持 id / command / args / cwd / env(stdio)或 url(HTTP,经 mcp-remote 桥接)。通过 DSH_MCP_SERVERS 环境变量或编辑 plugin.js 里的 DEFAULT_SERVERS 传入。示例见 examples/servers.json