Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DSH_HOMENoDSH home directory. Credentials are also looked up in `$DSH_HOME/.env`, and the Desktop companion's local bearer token is stored under `$DSH_HOME/plugins/dsh-codex-bridge/`. Passed through to the DSH child process.
DSH_MCP_DEBUGNoWhen set, include truncated DSH stderr diagnostics in tool results on failure. Raw DSH stderr is omitted from tool results by default.
DSH_MCP_PATCHNoPath to the overlay that registers a third-party provider when using OPENCODE_GO_API_KEY. The same overlay is applied to headless tasks and ACP session continuations.
DEEPSEEK_API_KEYNoDeepSeek API key (create one at https://platform.deepseek.com under API Keys). Recommended to pass it through the environment that launches Codex, e.g. `$env:DEEPSEEK_API_KEY = "sk-..."` then `codex` from the same shell. Setting it in another shell after Codex is already running will not update its environment. Alternatively it may be placed in `<task cwd>/.env` or `$DSH_HOME/.env` (stored in plain text).
OPENCODE_GO_API_KEYNoCredential for a third-party model route; point this at a third-party route instead of using a DeepSeek API key, and also set DSH_MCP_PATCH to the overlay that registers that provider.

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 connects you to the DeepSeek Harness (DSH) agent installed on this machine. Use dsh_task to hand one self-contained task to DSH and read its final answer back. DSH starts a fresh session each call: restate everything the task needs, including paths and constraints. Use the returned session id with dsh_continue for follow-ups in the same session. Call dsh_doctor when a delegation fails, before retrying.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
dsh_list_workspacesA

List the project workspaces registered by DSH, including each workspace id, folder path, and session count. Use a returned workspace_id with dsh_task to start work in that folder or with dsh_list_sessions to choose a session.

dsh_list_sessionsA

List session ids and saved titles registered under one DSH workspace. This returns title metadata only, never conversation contents. Use the selected session_id together with the same workspace_id in dsh_continue.

dsh_taskA

Delegate one task to the DeepSeek Harness (DSH) agent installed on this machine and return its final answer. DSH runs as a separate coding agent with its own tools, model route, workspace, and sandbox; this call blocks until it finishes. Use it to offload research, a scoped implementation, a test run, or a second opinion, and to reach tools or skills that exist only in DSH. Each call opens a fresh DSH session unless session_id is supplied; call dsh_continue to keep working in the same session. Call dsh_list_workspaces first to choose a registered project folder.

dsh_continueA

Continue an existing DSH session with another instruction. The session keeps its conversation, working directory, and file changes from earlier calls. Default transport "auto" sends only through the DSH Desktop companion, so the message appears in the UI. If the companion or target session is unavailable, it stops without trying ACP. Set transport to "acp" only when you know the session is closed in DSH Desktop; set "desktop" to require visible delivery. Desktop reports can be read with dsh_get_result if the wait limit expires. Resume requires the same working directory the session recorded. Select a project session with dsh_list_sessions and pass the matching workspace_id and session_id. ACP permission requests are rejected because this tool has no interactive approval UI; saved permissions remain in effect.

dsh_get_resultA

Read the latest status and completion report for a request sent to an open DSH Desktop session. Use the request_id returned by dsh_continue when its polling period expires. Results are stored locally and expire after 30 minutes.

dsh_doctorA

Diagnose the local DeepSeek Harness installation used by this MCP server: which dsh entry was found, the DSH home, and whether a model credential is reachable. Call it when a delegation fails or before the first delegation on a new machine.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 6 tools

Disambiguation4/5

Most tools have clearly distinct roles: listing workspaces, listing sessions, delegating, continuing, reading results, and diagnosing. The main overlap is dsh_task versus dsh_continue, since dsh_task can accept a session_id while dsh_continue is the dedicated continuation tool; descriptions clarify the intended split, but the boundary is not perfectly sharp.

Naming Consistency3/5

All names share the dsh_ prefix and snake_case, which aids recognition. However, the set is not consistently verb_noun: dsh_task and dsh_doctor are noun-like, while dsh_continue is verb-only, so the pattern is mixed but still readable.

Tool Count5/5

Six tools is well-scoped for a DSH integration. Each tool covers a distinct lifecycle step: workspace discovery, session discovery, delegation, continuation, result retrieval, and diagnostics.

Completeness4/5

Core delegation lifecycle is covered: discovering workspaces and sessions, submitting tasks, continuing sessions, retrieving results, and diagnosing the installation. Minor gaps exist around cancellation, session cleanup, or explicit task-status listing, but agents can work around them.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues