본문으로 건너뛰기
M

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.

설치

dsh plugin --profile web add github:maxisoft-git/dsh-mcp-pro

README

MCP Pro

English · Русский · 简体中文

License: MIT DSH >= 0.2.2-rc.1

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

RowEffect
mcp-pro (plugin row)Mounts the MCP client. With an empty servers list it connects nothing and registers no tool.
mcp_searchLoads the schemas that match a short description of the task; they are callable in the next step.
mcp_loadLoads exact names (server/tool, mcp__server__tool, or a bare name that only one server offers).
mcp_toolsLists the configured servers, their connection state, tool counts, the tools loaded in this session, and server instructions.
mcp_taskReads, waits for, or cancels an MCP task handle.
mcp_readReads 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 skillsA server that declares io.modelcontextprotocol/skills adds entries to the DSH skill catalog; the model loads them on demand.
MCP tasksA task handle becomes a DSH background job when the jobs service is mounted; otherwise mcp_task polls it.
ElicitationA 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.

  1. 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
    
  2. 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.

  3. Call it by its public name:

    mcp__example__list_items {}
    
  4. Load a tool whose name you already know:

    mcp_load { "names": ["example/build_report"] }
    
    Loaded: mcp__example__build_report
    
  5. Read a resource:

    mcp_read { "server": "example", "uri": "docs://handbook/intro.md" }
    

    mcp_read accepts only a URI the server advertised in resources/list or matched with one of its resource templates; any other URI is refused.

  6. 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_output and stop it with job_kill.

  7. 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.

  8. 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.

KeyDefaultMeaningWhere it is stored
servers[]Servers to connect. Empty: no connection and no meta tools.mcp-pro row config
servers[].serverNamerequiredNamespace of mcp__<server>__<tool>; [A-Za-z0-9_-]{1,32}, unique.same
servers[].transportstdiostdio or streamable-http.same
servers[].commandrequired for stdioExecutable to spawn.same
servers[].args[]Arguments for the command.same
servers[].envnoneExtra environment variables for the child process.same
servers[].cwdDSH working directoryWorking directory of the child process.same
servers[].urlrequired for streamable-httpEndpoint URL.same
servers[].headersnoneRequest headers, for example an authorization token.same
servers[].allowInsecurefalseA streamable-http URL must use https://; true allows a cleartext http:// URL.same
servers[].modesearchsearch 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[].maxLoadedno per-server limitCap on loaded schemas for that server; the least recently used is dropped first.same
servers[].toolCallTimeoutMsrequestTimeoutMs (60000)Timeout for one tools/call.same
servers[].skillstrueList the server's skills in the skill catalog.same
servers[].taskstrueBridge task handles into background jobs.same
servers[].elicitationtrueLet the server ask the user questions.same
maxResults8Tools loaded by one mcp_search; its limit argument caps a call at 20.same
maxLoadedTotal24Total loaded schemas across all servers; the least recently used is dropped first.same
requestTimeoutMs60000Default request timeout; the connect handshake uses at most 15 s.same
promptSectiontrueAdds the prompt paragraph that explains the search-first workflow.same
searchToolName, loadToolName, statusToolName, taskToolName, readToolNamemcp_search, mcp_load, mcp_tools, mcp_task, mcp_readRename 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-http entry the plugin sends JSON-RPC requests to exactly the configured url, with the configured headers, 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 stdio entry the plugin runs command with args as 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 sets allowInsecure: true, discards credentials embedded in the URL, and aborts a response body that grows past 16 MiB.
  • Resources are allowlisted. mcp_read refuses a URI the server did not advertise in resources/list or 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: false and elicitation: false disable one extension for one server; promptSection: false removes 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 !!js expressions over the environment, as in the example above. The child environment drops common credential names (and DSH_*), 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-28 servers are used directly; 2025-11-25 servers are supported through the legacy handshake.
  • Optional: @deepseek-ai/dsh-tool-ask-user for elicitation (otherwise the server receives decline), and @deepseek-ai/dsh-jobs plus @deepseek-ai/dsh-tool-jobs for tasks as background jobs (otherwise poll with mcp_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

관련 플러그인