dsh-codex-web-search-mcp

by dhicoc

0 模型与账号接入github 检测到 manifest package.json#dsh收录于 08-16

把 codex-web-search-mcp(模型无关的 OpenAI Codex / Grok 联网搜索与深度研究 MCP server,Rust 独立二进制)接进 DeepSeek Harness (dsh) 的 一键插件 。

dsh plugin: register codex-web-search-mcp (model-independent OpenAI Codex / Grok web search & deep research MCP server) as a native dsh MCP tool set (mcp__codex-web-search__*).

安装

dsh plugin --profile web add github:dhicoc/dsh-codex-web-search-mcp

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

把 codex-web-search-mcp(模型无关的 OpenAI Codex / Grok 联网搜索与深度研究 MCP server,Rust 独立二进制)接进 DeepSeek Harness (dsh) 的 一键插件。

安装并重启 dsh web 后,3 个工具会以 dsh 原生 MCP 工具形式出现:

工具 dsh 内名称
单步搜索 mcp__codex-web-search__codex_web_search
多步深度研究 mcp__codex-web-search__codex_web_research
抓正文 mcp__codex-web-search__web_fetch

与普通 Claude Code / Cursor 的 MCP 接入不同——本插件不依赖任何模型厂商, 搜索走 Codex 独立搜索端点,换 Gemini / OpenRouter / 本地模型都不受影响。


前置条件(重要)

本插件依赖以下已发布到 npm 的包来分发跨平台二进制:

  • @dhicoc/dsh-codex-web-search-mcp:本 dsh 插件;
  • codex-web-search-mcp:跨平台命令及其平台二进制依赖;
  • @dhicoc/codex-web-search-mcp-*:各平台的预编译二进制包。

正常使用时不需要手动安装这些依赖,dsh plugin 会自动解析并安装它们。 二进制分发包源码在 dhicoc/codex-web-search-mcp, 发布维护流程见下方「发布二进制包」。


安装

npm 发布版(推荐)

# 安装已发布的 npm 版本,并注册到 web profile
dsh plugin --profile web add @dhicoc/dsh-codex-web-search-mcp

# 重启 dsh web 生效(Web bundle 无 HMR,必须重启进程)
dsh web

安装后验证:

dsh --profile web --dump-config

输出中应出现 mcp-codex-web-search,并包含 serverName: codex-web-search 和 command: codex-web-search-mcp。在会话中即可让 agent 调用 codex_web_search / codex_web_research / web_fetch。

如果默认 npm 镜像提示 404 Not Found,通常表示镜像尚未同步新包。可临时指定 npm 官方 registry 重试:

dsh plugin --profile web add @dhicoc/dsh-codex-web-search-mcp --registry=https://registry.npmjs.org

从 GitHub 安装(开发/预发布)

只有在测试仓库中尚未发布的提交时才使用 GitHub 源:

dsh plugin --profile web add github:dhicoc/dsh-codex-web-search-mcp
dsh web

凭证(二选一)

  1. 推荐:先 codex login(OAuth 写 ~/.codex/auth.json),server 自动读取,无需任何配置。
  2. 免 auth.json:设环境变量 CODEX_ACCESS_TOKEN(可选 CODEX_ACCOUNT_ID)。 在 cordis.patch.yml 里取消 env: 注释,用 dsh 的 !!js process.env.* 引用, 密钥不落盘。

没有有效凭证时,3 个工具会返回清晰的中文报错,而不是崩溃。


本地测试(未发布 npm 包时)

如果需要测试本地源码,可在 web profile 内使用 link: 指向本插件仓库的绝对路径:

dsh plugin --profile web add link:<本插件仓库绝对路径>
dsh web

如果本插件依赖的 codex-web-search-mcp 也尚未发布,可先在其仓库执行 npm link,再在本插件仓库执行 npm link codex-web-search-mcp,最后安装本插件的 link: 版本。普通用户不需要这些步骤,应使用上面的 npm 发布版安装方式。


卸载与还原

dsh plugin --profile web remove @dhicoc/dsh-codex-web-search-mcp

删除插件即移除 mcp-codex-web-search 这一行,dsh 不再加载该 MCP server, 不影响其它能力。


降级:不用插件,直接用 dsh 原生 MCP 配置

dsh 内置 @deepseek-ai/dsh-mcp-client 本就会读 .mcp.json / ~/.dsh/mcp.json。 如果你不想走插件,也可以手动把下面这段写进任一 MCP 配置文件(效果等价):

{
  "mcpServers": {
    "codex-web-search": {
      "command": "codex-web-search-mcp"
    }
  }
}

或在 ~/.dsh/profiles/web/cordis.patch.yml 追加:

- insert:
    - id: mcp-codex-web-search
      name: '@deepseek-ai/dsh-mcp-client'
      config:
        serverName: codex-web-search
        transport: stdio
        command: codex-web-search-mcp

发布二进制包(维护者)

二进制需在 dhicoc/codex-web-search-mcp 仓库根的 npm/platforms/<平台>/bin/ 下就位 (统一名 bin/codex-web-search-mcp[.exe],可从 Releases v2.3.1 下载)。再按依赖顺序发布:

  1. 依次发布 5 个平台子包(在 dhicoc/codex-web-search-mcp 仓库根执行):

    cd npm/platforms/win32-x64 && npm publish --access public
    cd ../win32-arm64 && npm publish --access public
    cd ../darwin-universal && npm publish --access public
    cd ../linux-x64 && npm publish --access public
    cd ../linux-arm64 && npm publish --access public
    
  2. 再发布 umbrella 包(带 bin shim + optionalDependencies):

    cd ../.. && npm publish --access public
    
  3. 最后在本插件仓库发布本插件:

    npm publish --access public
    
  4. 给仓库打 dsh-plugin topic,自动被 社区精选目录s 收录。


工作原理

  • 本仓库是一个配置型 Cordis bundle:cordis.patch.yml 借用 dsh 自带的 @deepseek-ai/dsh-mcp-client,用一行 config 把它实例化成指向 codex-web-search-mcp 二进制的 stdio server(serverName: codex-web-search)。
  • codex-web-search-mcp 依赖通过 optionalDependencies 按当前平台拉取对应 预编译二进制包,并暴露 bin/codex-web-search-mcp 命令(一个轻量 JS shim, 运行时定位已安装的平台二进制并 spawn,无需 postinstall,规避 pnpm allowBuilds 墙)。

许可证

MIT(与上游 codex-web-search-mcp 一致)。

原始 README: https://github.com/dhicoc/dsh-codex-web-search-mcp/blob/master/README.md ↗

同类插件

查看全部 →
模型与账号接入Anionex

agent-vision-toolkit

为纯文本模型"看图“设计更好的视觉工具箱和技能,支持多图理解,图片问答,前端UI还原、GUI 自动化等,并可选无缝接入多个主流agent,直接识别粘贴图片| A vision toolkit and skill designed for text-only llms — image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, with optional seamless integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode

查看详情
928github+08-16
模型与账号接入toby-bridges

api-relay-audit

从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。

查看详情
791github+08-21
模型与账号接入ZJU-LLMs

OpenStory

✨ OpenStory 现已支持 DeepSeek Harness 插件! 现在可以通过 dsh-openstory 将 OpenStory 多智能体推演接入 DeepSeek Harness,让 agent 直接启动模拟、查看角色、下达指令并逐回合推进故事。查看 DSH 插件配置与使用指南。

查看详情
377github+08-17
模型与账号接入pulseaiclub

phi

pi的编码代理 ∞ 提供者、子代理、hashline编辑和权限门

查看详情
89github+08-16
模型与账号接入anysearch-team

anysearch-dsh

DeepSeek Harness(DSH)的 AnySearch 网络搜索提供方与高级搜索工具。

查看详情
79github+08-17
模型与账号接入kuangre123

codex-switch

Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes. For Codex, it keeps Official OpenAI and a custom API provider configured in parallel, registers the custom model in Codex's mod

查看详情
67github+08-16