Codex DSH MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DSH_COMMAND | No | dsh, or an absolute DSH JavaScript launcher module passed safely to the controller | dsh |
| DSH_AUTO_RETRY | No | Whether to auto-retry on transient failures | true |
| DSH_STATS_FILE | No | Path to stats file; absolute or relative to workspace | .codex-deepseek/stats.json |
| DSH_TIMEOUT_MS | No | Default timeout for delegated tasks; clamped 10 s – 2 h | 1800000 |
| DSH_MAX_RETRIES | No | Max retries (beyond initial attempt, so 1 = 2 attempts total) | 1 |
| DSH_TOKEN_STATS | No | Enable token usage tracking | true |
| DSH_STATS_ENABLED | No | Enable stats persistence | true |
| DSH_BATCH_CONTROLLER | Yes | Absolute path to the isolated-worktree controller | |
| DSH_MAX_OUTPUT_CHARS | No | Max chars returned to Codex context | 6000 |
| DEEPSEEK_ALLOWED_ROOT | No | Optional root; restricts which directories DeepSeek can access |
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 |
|---|---|
| deepseek_taskA | Delegate a normal implementation/refactor/debug task to DeepSeek Harness in an isolated Git worktree. The main workspace is never modified automatically; Codex must review the report and patch before applying anything. Returns compact structured JSON with status, task_id, retry information, usage, and artifact paths. |
| deepseek_fixA | Delegate a bug-fix or failing-test loop to DeepSeek Harness in an isolated Git worktree. The main workspace is never modified automatically. Returns compact structured JSON. |
| deepseek_exploreA | Delegate repository exploration, code search, dependency tracing, or implementation-location discovery to DeepSeek Harness. Read-only: DeepSeek is instructed not to modify files. Returns compact structured JSON. |
| deepseek_reviewA | Delegate a focused code review to DeepSeek Harness. Read-only: DeepSeek is instructed not to modify files. Returns only material findings. Returns compact structured JSON. |
| deepseek_statsA | Read-only bridge statistics. Returns concise totals, tool counts, success rate, average duration, and last 10 task metadata. Results are drawn from the project-level stats file (.codex-deepseek/stats.json). |
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 5 tools
Each tool has a clearly distinct purpose: task delegation, bug fixing, exploration, review, and statistics. The descriptions explicitly differentiate read-only operations and the action types, leaving no ambiguity.
All tools follow the identical `deepseek_` prefix with a verb indicating the action (task, fix, explore, review, stats). This consistent pattern makes the API predictable and easy to navigate.
With only 5 tools, the set is tightly scoped to the core operations of the DeepSeek Harness bridge. Each tool serves a distinct necessary function without redundancy or bloat.
The tools cover the primary workflows (delegation, fixing, exploration, review, and stats). A minor gap is the lack of explicit task status or cancellation tools, though the stats tool implicitly provides an overview. The surface is otherwise well-rounded.