dsh-relay
dsh-relay
English | 中文
Web-profile 辅助工具,用于诊断 Codex MCP 启动路径并写入主机配置,使 Codex、Cursor 或 Claude Code 能够启动 dsh --profile codex。它不会在 Web 进程中运行 MCP stdio 服务器。
安装到配置文件中:
dsh plugin --profile web add github:tonytanglab/deepseek-harness-relay-mcp或者安装 GitHub Release 的压缩包以获取预构建的 lib/。安装后重启 dsh web。然后运行 /relay-setup,或让代理调用 relay_doctor 和 relay_write_mcp_config。
功能说明
apply 在 Web 配置文件中注册了一个斜杠命令和两个工具:
/relay-setup打印诊断摘要和 MCP 启动 JSON。当设置了mcpConfigPath时,还会写入该 JSON。不接受额外输入。relay_doctor检查process.argv[1]是否为绝对路径且存在的 dsh 入口点,process.execPath是否存在,以及凭据路径是否存在,但不读取凭据内容,也不启动 MCP stdio。relay_write_mcp_config根据 Codex 指南 构建 npx 启动块。当path为绝对 JSON 文件路径时,写入该启动块,并通过合并mcpServers保留其他服务器。
生成的命令为 npx --yes --package=@deepseek-ai/dsh@0.1.0-rc.5 -- dsh --profile codex。该辅助工具从不使用 npx.cmd 或 shell: true,也从不导入 StdioServerTransport。
Related MCP server: Claude Code Subagent MCP
配置项
字段 | 默认值 | 说明 |
|
|
|
| 未设置 |
|
|
| 空值时读取 |
|
| 共享凭据文档;也支持 |
|
| Codex 服务主目录;也支持 |
|
| 生成的 npx 参数中固定的包名 |
|
|
|
用户可在配置文件 cordis.patch.yml 中覆盖上述字段。无效配置将导致插件加载失败。
设置完成后
将 MCP 主机指向打印的启动块。会话的启动、等待、引导和取消操作均通过 dsh --profile codex 完成,相关文档见 @deepseek-ai/dsh-mcp-codex 和 Codex 指南。附带的 技能 描述了该工作流程。
模型体验
工具模式
模型所见内容
relay_doctor 的参数对象为空。relay_write_mcp_config 要求 host 为 codex、cursor 或 claude-code,并接受可选的绝对路径 path。
Token 影响
在工具可见的每个请求中,模式定义产生固定的开销。
KV 缓存影响
在定义和可见性不变的情况下,前缀保持稳定。
工具调用历史与结果
模型所见内容
relay_doctor 返回包含 ok、启动器 direct/exists/shell: false、工作区根目录以及凭据 path/exists 的 JSON。它从不包含凭据文件内容。relay_write_mcp_config 返回 { written, path, host, serverName, config },其中 config.args 包含 --profile 和 codex。/relay-setup 的成功文本以 DSH Relay is loaded in this Web profile. It does not run the MCP stdio server here. 开头。额外输入将返回 The /relay-setup command does not accept extra input.
Token 影响
每次调用受限于 JSON 报告和启动块的大小。
KV 缓存影响
与之前的轮次无关。
已知限制与待办事项
无进程内 MCP stdio — 将此包安装到 Web 配置文件中不会暴露十一个 Codex MCP 工具。这些工具仍保留在
dsh --profile codex中。无设置界面 — v0.1.0 中没有
dsh.client表单;/relay-setup和两个工具是唯一的配置路径。
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 Servers
- Alicense-qualityCmaintenanceEnables MCP clients to spawn and control Codex CLI and Claude Code sessions on the host machine, with session management and filesystem access.4MIT
- Alicense-qualityBmaintenanceA stdio MCP server that lets Codex Desktop/CLI delegate implementation tasks to Claude Code CLI with workspace validation, Git status checks, and session resume capabilities.4MIT
- AlicenseAqualityBmaintenanceA project-local MCP bridge that allows Codex Desktop to plan tasks and OpenCode to execute them within the current project directory, with session reuse and native OpenCode background subagents.41MIT
- Alicense-qualityBmaintenanceProvides a read-only MCP tool to diagnose zoxide installation and shell setup, returning a JSON report with setup and troubleshooting guides.316MIT
Related MCP Connectors
Scans MCP servers for tool poisoning, prompt injection and supply chain risks.
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
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/tonytanglab/deepseek-harness-relay-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server