dsh-deepseek-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DSH_BIN | No | Path to @deepseek-ai/dsh/lib/bin.js. Default is ~/nodejs/node_modules/@deepseek-ai/dsh/lib/bin.js. | |
| DSH_NODE | No | Path to the Node.js binary used to spawn dsh. Default is process.execPath. | |
| POOL_MAX | No | Maximum warm sessions retained in the LRU pool. Default is max(4, PARALLEL_MAX). | |
| MAX_TURNS | No | Maximum turns per session before automatic recycle. Default is 40. | 40 |
| POOL_TTL_MS | No | Idle session TTL before automatic eviction. Default is 1800000 (30 min). | 1800000 |
| PARALLEL_MAX | No | Default concurrency for delegate_parallel (1–16). Default is 4. | 4 |
| DELEGATE_WARN_MS | No | Tier-1 gentle convergence reminder threshold. Default is 900000 (15 min). | 900000 |
| DELEGATE_FORCE_MS | No | Tier-2 forced wrap-up threshold. Default is 1500000 (25 min). | 1500000 |
| DSH_WORKER_PROFILE | No | DSH profile name. Default is sdk. | sdk |
| DELEGATE_TIMEOUT_MS | No | Tier-3 hard kill timeout threshold. Default is 1800000 (30 min). | 1800000 |
| DEFAULT_WORKSPACE_CWD | No | Safe fallback workspace when cwd is omitted. Default is d:\agy or process.cwd(). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| echoA | 连通性自检:回显输入文本。 |
| worker_infoA | 返回 worker 配置、难度档、三级计时与会话池状态(排障用)。 |
| delegate_taskA | 把可独立完成的子任务交给 DeepSeek worker(同步返回,附带实时 Token 消耗与人民币费用估算)。同轮任务/同批子任务传相同 sessionKey 复用会话;无关新任务换新 key 或省略(每次全新、不污染)。纯文本/代码生成任务可传 pureText:true 禁用工具调用以大幅提速省 Token。 |
| delegate_parallelA | 一次把"一个任务拆出的多条子任务"并发外包给 DeepSeek worker(服务端并发 + 并发上限,统一返回全文及汇总 Token 账单)。每条可单独配 sessionKey/tier/cwd/pureText/reasoningEffort/超时;共享同一 sessionKey 的条目会自动排队串行并共享上下文,不同 key 才是真并行。 |
| pool_statusA | 查看会话池(哪些 key 常驻、多少轮、空闲多久、累计消耗多少 Token 与费用)。 |
| reset_sessionA | 丢弃会话池会话并清理进程树。传 sessionKey 只清该 key;不传清全部。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
delegate_task vs delegate_parallel, reset_session, and echo are clearly distinct, but worker_info and pool_status overlap since worker_info also claims to return 会话池状态. The descriptions hint at a troubleshooting vs detailed-view split, yet an agent could easily pick the wrong one when it just wants pool state.
Names mix three styles: verb_noun (reset_session, delegate_task, delegate_parallel), noun_status/info (worker_info, pool_status), and a bare verb (echo). All are readable and snake_case, but there is no single predictable pattern for an agent to extrapolate from.
Six tools is well-scoped for a delegation server: two task-execution tools, two status/introspection tools, a reset, and a health check. Each tool has a distinct role and none feels padded or missing.
The delegation lifecycle (single task, parallel batch, session reuse, pool inspection, reset, connectivity check) is covered, with cost/token reporting folded into returns. The main gap is no explicit cancel/abort for an in-flight delegation, forcing reliance on timeouts.