- Início
- Plugins
- Ferramentas e funções
- dsh-mcp-pro
dsh-mcp-pro
maxisoft-git/dsh-mcp-pro
MCP client that loads server tools on demand through search-first meta tools, adds MCP skills to the skill catalog and maps MCP tasks to background jobs.
Instalar
dsh plugin --profile web add github:maxisoft-git/dsh-mcp-proREADME
MCP Pro
An MCP client for DeepSeek Harness that keeps server tool schemas out of the prompt until they are needed. It adds one plugin row, mcp-pro; the five meta tools (mcp_search, mcp_load, mcp_tools, mcp_task, mcp_read) appear in the tool list of every session that mounts the row, and a server's own tools appear there only after a search or an explicit load. It has no page, panel, command or settings screen of its own, and it does not expose MCP prompts, MCP Apps, resource subscriptions or an OAuth flow.
What it adds
| Row | Effect |
|---|---|
mcp-pro (plugin row) | Mounts the MCP client. With an empty servers list it connects nothing and registers no tool. |
mcp_search | Loads the schemas that match a short description of the task; they are callable in the next step. |
mcp_load | Loads exact names (server/tool, mcp__server__tool, or a bare name that only one server offers). |
mcp_tools | Lists the configured servers, their connection state, tool counts, the tools loaded in this session, and server instructions. |
mcp_task | Reads, waits for, or cancels an MCP task handle. |
mcp_read | Reads one MCP resource from a URI the server advertised. |
mcp__<server>__<tool> | A server tool registered after a search or load, with its own schema. |
| Server skills | A server that declares io.modelcontextprotocol/skills adds entries to the DSH skill catalog; the model loads them on demand. |
| MCP tasks | A task handle becomes a DSH background job when the jobs service is mounted; otherwise mcp_task polls it. |
| Elicitation | A server's question appears in the chat's question card; a URL-mode request shows the link and the host and waits for confirmation. |
Install
DSH 0.2.2-rc.1 or newer.
In DSH. Plugins → Add plugin with the installation spec github:maxisoft-git/dsh-mcp-pro. The plugin manager installs it for the whole profile; a new session picks it up.
From a checkout. git clone https://github.com/maxisoft-git/dsh-mcp-pro.git, then install that absolute directory with Plugins → Add plugin.
The installed row ships with servers: [], so nothing is connected and no meta tool is registered. Add at least one server to the row's config (see Configuration).
Use
The meta tools exist only when at least one server is configured. Start a new session after changing the row.
-
List the servers:
mcp_tools {}example — ready; 3 tools, 0 loaded instructions: Example server. Start with list_items. catalog: list_items, build_report, delete_item -
Search before calling a server tool:
mcp_search { "query": "list items", "limit": 3 }Loaded 1 tool for "list items" — call them directly in your next step: mcp__example__list_items — Lists items with their ids and titles.The loaded tool is now in the tool list with its own schema; call it directly instead of searching again.
-
Call it by its public name:
mcp__example__list_items {} -
Load a tool whose name you already know:
mcp_load { "names": ["example/build_report"] }Loaded: mcp__example__build_report -
Read a resource:
mcp_read { "server": "example", "uri": "docs://handbook/intro.md" }mcp_readaccepts only a URI the server advertised inresources/listor matched with one of its resource templates; any other URI is refused. -
Inspect a long-running call that returned a task:
mcp_task { "server": "example", "taskId": "task-7f3a", "wait_ms": 30000 }When the DSH jobs service is mounted, the tool result already names a background job: read it with
job_outputand stop it withjob_kill. -
Server skills need no extra step: they are listed in the session's skill catalog and the model loads them with the skill tool. A skill's other files are MCP resources on that server.
-
Elicitation arrives as an ordinary question in the chat. Form fields become select or text questions; a URL-mode request names the host, shows the link, and asks you to confirm after you finish there. Without the user-question service the server receives
decline.
Configuration
The row is mcp-pro with a config block in the profile patch ($DSH_HOME/profiles/<profile>/cordis.patch.yml); every key below lives there.
| Key | Default | Meaning | Where it is stored |
|---|---|---|---|
servers | [] | Servers to connect. Empty: no connection and no meta tools. | mcp-pro row config |
servers[].serverName | required | Namespace of mcp__<server>__<tool>; [A-Za-z0-9_-]{1,32}, unique. | same |
servers[].transport | stdio | stdio or streamable-http. | same |
servers[].command | required for stdio | Executable to spawn. | same |
servers[].args | [] | Arguments for the command. | same |
servers[].env | none | Extra environment variables for the child process. | same |
servers[].cwd | DSH working directory | Working directory of the child process. | same |
servers[].url | required for streamable-http | Endpoint URL. | same |
servers[].headers | none | Request headers, for example an authorization token. | same |
servers[].allowInsecure | false | A streamable-http URL must use https://; true allows a cleartext http:// URL. | same |
servers[].mode | search | search keeps schemas out of the prompt; always publishes the names in alwaysTools when the server connects. | same |
servers[].alwaysTools | [] | Tool names published at connect when mode: always. | same |
servers[].maxLoaded | no per-server limit | Cap on loaded schemas for that server; the least recently used is dropped first. | same |
servers[].toolCallTimeoutMs | requestTimeoutMs (60000) | Timeout for one tools/call. | same |
servers[].skills | true | List the server's skills in the skill catalog. | same |
servers[].tasks | true | Bridge task handles into background jobs. | same |
servers[].elicitation | true | Let the server ask the user questions. | same |
maxResults | 8 | Tools loaded by one mcp_search; its limit argument caps a call at 20. | same |
maxLoadedTotal | 24 | Total loaded schemas across all servers; the least recently used is dropped first. | same |
requestTimeoutMs | 60000 | Default request timeout; the connect handshake uses at most 15 s. | same |
promptSection | true | Adds the prompt paragraph that explains the search-first workflow. | same |
searchToolName, loadToolName, statusToolName, taskToolName, readToolName | mcp_search, mcp_load, mcp_tools, mcp_task, mcp_read | Rename the meta tools, for example to avoid a clash with another MCP client. | same |
- id: mcp-pro
name: 'dsh-mcp-pro'
config:
servers:
- serverName: example
transport: stdio
command: node
args: ['/Users/me/MCP/example-mcp/dist/index.js']
cwd: !!js process.cwd()
toolCallTimeoutMs: 120000
- serverName: docs
transport: streamable-http
url: https://mcp.example.com/mcp
headers:
Authorization: !!js '`Bearer ${process.env.DOCS_TOKEN ?? ""}`'
maxResults: 8
maxLoadedTotal: 24
A stdio server inherits the DSH process environment except variables whose names contain KEY, PASSWORD, PASS, SECRET, TOKEN, CRED, AUTH, COOKIE, SESSION, DATABASE_URL, SSH_AUTH_SOCK, NODE_OPTIONS or KUBECONFIG, and except names starting with DSH_; env adds entries on top. Scrubbing is best effort: the child still runs with your filesystem rights.
Data and network
- HTTP servers. For every
streamable-httpentry the plugin sends JSON-RPC requests to exactly the configuredurl, with the configuredheaders, when the row activates and whenever a connection is needed. The server receives tool names and arguments you invoke, resource URIs you read, task ids you inspect, and your elicitation answers. - stdio servers are child processes. For every
stdioentry the plugin runscommandwithargsas a child process of DSH: it runs with your user's rights, the environment described above, and stays alive while the connection is open. DSH does not sandbox it. - Server output enters the model context. Tool descriptions and schemas, tool results, resources, skill files and server instructions are text from a third party; everything the model calls or reads through this plugin is placed in the conversation and sent to the configured model provider on the next step. Long text is clipped (30,000 characters per tool result, 40,000 per resource read).
- MCP servers are third-party code. A stdio server can do anything your user account can do; an HTTP server is operated by someone else and receives your headers. Configure only servers you trust.
- HTTP requests are guarded. The transport refuses a 3xx response instead of following it (a followed redirect would replay the configured headers to another host), refuses a cleartext
http://URL unless that server setsallowInsecure: true, discards credentials embedded in the URL, and aborts a response body that grows past 16 MiB. - Resources are allowlisted.
mcp_readrefuses a URI the server did not advertise inresources/listor match with a resource template; a miss refetches the list once before refusing, and the list is cached for 30 seconds. - Nothing else leaves the machine. The plugin has no telemetry, no plugin-owned service, and makes no network request other than to the servers you configure.
- Turning it off.
servers: []removes every connection and every meta tool. Removing one server closes its child process and unregisters its tools.skills: false,tasks: falseandelicitation: falsedisable one extension for one server;promptSection: falseremoves the prompt paragraph. - On disk. The plugin writes no files. The configuration is the row in the profile patch; MCP task output is held by the DSH jobs service, not by this plugin.
Security
The full record is in SECURITY.md and SECURITY-AUDIT.md; report vulnerabilities through GitHub Security Advisories.
- A stdio MCP server is arbitrary code executed with your rights. Install servers the way you install any other program.
- Server text is untrusted. Tool descriptions, results and skill files can contain instructions aimed at the model; treat a hidden instruction as a finding, not as a task.
- Keep tokens out of committed YAML where you can: reference them with
!!jsexpressions over the environment, as in the example above. The child environment drops common credential names (andDSH_*), but the scrub is best effort: a server sees whatever you pass it and can read what your user can, and an HTTP server sees every configured header. - Elicitation that needs a secret or a payment should use URL mode: the value is entered on the server's own page, never in the chat card.
mcp_read's allowlist and the refusal to follow redirects limit what a misbehaving server can pull into the session, but they do not make a server trusted.
Requirements
- DSH 0.2.2-rc.1 or newer; the plugin's Host process runs on the Node.js version DSH ships (22.19.0 or newer).
- At least one MCP server. Modern
2026-07-28servers are used directly;2025-11-25servers are supported through the legacy handshake. - Optional:
@deepseek-ai/dsh-tool-ask-userfor elicitation (otherwise the server receivesdecline), and@deepseek-ai/dsh-jobsplus@deepseek-ai/dsh-tool-jobsfor tasks as background jobs (otherwise poll withmcp_task). - No external tools, and no build step: the package has one runtime dependency,
@modelcontextprotocol/client.
Development
npm install
npm test # node test/protocol.mjs && node test/hub.mjs
npm run verify # node scripts/verify-bundle.mjs
test/protocol.mjs drives the plugin's own client against the fake server in test/fake-server.mjs (modern discovery, tool calls, a task, multi-round-trip elicitation, the skills extension); test/hub.mjs covers search-first loading, the task-to-job bridge, elicitation, the skill provider and disposal. Both run offline.
Layout: index.js is the Host entry; src/ holds configuration parsing, the connection and hub, the meta tools, search, rendering, skills and elicitation; cordis.patch.yml is the bundle patch; locale/ holds meta.title and meta.description; docs/ holds a longer protocol and design note.
License
MIT © 2026 maxisoft-git
Plugins relacionados
archify (deepseek-harness)
tt-a1i/archify
WeKnora (dsh-weknora)
tencent/weknora
next-ai-draw-io (dsh-plugin)
dayuanjiang/next-ai-draw-io
AiToEarn (dsh-plugin-aitoearn)
yikart/aitoearn