When developing agents or performing complex debugging, DeepSeek Harness (DSH) Web provides excellent session visualization, but local CLI tools (such as Codex) typically cannot interact directly with it. The journ10/codex-dsh-bridge plugin solves this problem. It is an HTTP MCP server that enables Codex, via the MCP protocol, to create tasks, resume sessions, query progress, and retrieve results inside a running DSH Web instance. Sessions are managed by the same DSH Host and are visible within DSH Web.
Core Features¶
The plugin exposes six MCP tools for managing the lifecycle and data of DSH sessions:
dsh_workspaces: List the DSH-registered workspaces to obtainworkspace_id.dsh_sessions: List sessions, with filtering by workspace or directory.dsh_task: Create a new session in a specified workspace or directory and send aprompt.dsh_send: Send a message to an existing session. Supportsqueueandsteermodes.dsh_wait: Wait for session results. Requiresfrom_seqandrequest_idreturned from an asynchronous submission.dsh_status: Query current status, the latest answer, and tool invocations.
Installation¶
Before installation, ensure that the DSH version is 0.2.1-alpha.2, Node version is ^22.19.0 || >=24.0.0, and the Web profile launches correctly.
Use the release from the official repository:
dsh plugin --profile web add github:journ10/codex-dsh-bridge#v0.1.0
Restart DSH Web after installation. The plugin package contains only JavaScript files and requires no compilation.
Connecting Codex¶
Add an MCP server section to your Codex configuration file. By default, the plugin listens on http://127.0.0.1:3080/codex-dsh.
[mcp_servers.dsh]
url = "http://127.0.0.1:3080/codex-dsh"
bearer_token_env_var = "DSH_BRIDGE_TOKEN"
tool_timeout_sec = 3600
The token is read from $DSH_HOME/codex-dsh-bridge.token by default. On first load, the plugin creates this file with exclusive creation semantics (permissions 600). The token exists only on the user’s machine and is never written to the repository. If the terminal environment is not inherited, provide the token manually via an Authorization header in the Codex configuration.
Verify that the server loads tools correctly:
curl --fail 'http://127.0.0.1:3080/codex-dsh?probe=tools'
Workflow with the Tools¶
By default, dsh_task and dsh_send wait for results. To handle requests asynchronously, set wait: false; this returns session_id, accepted, from_seq, and request_id. Pass these three parameters to dsh_wait to obtain the answer for the specific request.
dsh_status is used to query the current or most recent state, defaulting to a tail of the last 200 events. The steer mode shares the current turn’s context and returns the subsequent answer instead of running isolated messages independently.
Use Cases and Caveats¶
This plugin supports the Web profile only; installation and operation on Desktop, TUI, or headless profiles have not been verified. Uninstalling the plugin does not delete existing session data in DSH. Protect the token file permissions strictly to prevent access by other users.
MCP provides JSON POST responses and tool calls, and does not include server-sent event (SSE) push. A timeout ending the wait does not stop the DSH task. Client disconnect or plugin uninstall cancels the wait timer.