dsh-codex-mcp
Provides integration with OpenAI's Codex CLI, allowing DeepSeek Harness to invoke Codex as an agent tool for code generation, agent runs, and multi-turn conversations without handling ChatGPT credentials directly.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dsh-codex-mcpuse Codex to refactor the utils module and explain the changes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dsh-codex-mcp
Codex models in DeepSeek Harness, through OpenAI's official CLI — without giving any third-party code custody of your ChatGPT credentials.
Install
npm i -g @openai/codex # if you don't already have it
codex login # sign in with your ChatGPT account
dsh plugin --profile web add dsh-codex-mcp
dsh webThat's it. Codex appears in the agent's tools as mcp__codex__codex. No API key, no OAuth flow inside the harness, nothing to paste.
Why this exists
Other plugins that put a ChatGPT subscription into the harness run their own OAuth flow, obtain a token scoped to your plan, and store it. To OpenAI those requests appear to come from Codex CLI. In practice a third-party package is holding a credential for something you pay for.
This plugin does not authenticate at all. It locates the Codex executable, launches it as an MCP server, and lets the harness talk to it over stdio. Authentication happens inside OpenAI's own signed binary, against its own ~/.codex/auth.json. There is no token here to leak, and uninstalling leaves nothing behind to revoke.
DeepSeek Harness ──MCP/stdio──▶ codex mcp-server ──HTTPS──▶ OpenAI
(official binary,
own credentials)Why MCP rather than shelling out per call
Measured on the same prompt and model:
Approach | Latency |
MCP server (persistent process) | 11.4s |
| 31.5s |
Every codex exec invocation cold-starts the binary and reloads its skills context before answering. The MCP server pays that once. It also keeps thread state, so codex-reply can continue a conversation.
The cost is a resident process — around 140 MB in observed use.
Configuration
Every option is optional; the defaults are what you want.
Option | Default | Purpose |
| auto-detected | Full path to the Codex executable |
|
| Tool namespace ( |
| harness working directory | Working directory for the Codex process |
|
| Extra environment variables |
|
| Per-call ceiling — Codex turns are agent runs, not completions |
|
| Whether a missing Codex should stop the harness booting |
DSH_CODEX_BINARY overrides detection without editing config.
How the executable is found
An explicit
command, orDSH_CODEX_BINARYThe native binary inside a global
@openai/codexinstall, enumerated from disk rather than hardcoded — a new platform or architecture needs no change hereA
codexexecutable onPATH
On Windows the npm .cmd and .ps1 shims are deliberately skipped: the MCP stdio transport spawns without a shell, and a shim cannot be launched that way.
When Codex is missing
The plugin logs one warning naming the fix and mounts nothing. The harness starts normally with Codex tools absent. Set failOnStartupError: true if you would rather boot loudly than run without it.
Requirements
DeepSeek Harness with
@deepseek-ai/dsh-mcp-client0.1.0-rc.6–0.1.0-rc.8Node
^22.19.0 || >=24Codex CLI, signed in
A ChatGPT plan that includes Codex
Verified against harness 0.1.0-rc.8 and codex-cli 0.144.5.
Uninstall
dsh plugin --profile web remove dsh-codex-mcpNo credentials were stored, so there is nothing else to clean up. Your Codex CLI login is untouched.
Development
npm install
npm testTests build synthetic npm layouts in a temp directory, so the suite passes on machines with no Codex installed. CI runs them on Linux, macOS and Windows across both supported Node versions, and separately verifies that a clean install of the packed tarball works.
Licence
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
A paid remote MCP for OpenAI Codex harness MCP, built to return verdicts, receipts, usage logs, and
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Zbrooklyn/dsh-codex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server