Skip to main content
Glama

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_doctorrelay_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.cmdshell: true,也从不导入 StdioServerTransport

Related MCP server: Claude Code Subagent MCP

配置项

字段

默认值

说明

mcpServerName

dsh-relay

mcpServers 下的键名

mcpConfigPath

未设置

/relay-setup 写入的绝对 JSON 路径

allowedWorkspaceRoots

[]

空值时读取 DSH_MCP_WORKSPACE_ROOTS

credentialsPath

$DSH_HOME/.credentials.yaml

共享凭据文档;也支持 DSH_MCP_CREDENTIALS_PATH

dataDirectory

$DSH_HOME/codex-services

Codex 服务主目录;也支持 DSH_MCP_DATA_DIR

dshPackage

@deepseek-ai/dsh@0.1.0-rc.5

生成的 npx 参数中固定的包名

host

codex

/relay-setup 写入时的默认主机:codexcursorclaude-code

用户可在配置文件 cordis.patch.yml 中覆盖上述字段。无效配置将导致插件加载失败。

设置完成后

将 MCP 主机指向打印的启动块。会话的启动、等待、引导和取消操作均通过 dsh --profile codex 完成,相关文档见 @deepseek-ai/dsh-mcp-codexCodex 指南。附带的 技能 描述了该工作流程。

模型体验

工具模式

模型所见内容

relay_doctor 的参数对象为空。relay_write_mcp_config 要求 hostcodexcursorclaude-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 包含 --profilecodex/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 和两个工具是唯一的配置路径。

A
license - permissive license
-
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
6Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    B
    maintenance
    A 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.
    4
    1
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    Provides a read-only MCP tool to diagnose zoxide installation and shell setup, returning a JSON report with setup and troubleshooting guides.
    316
    MIT

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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