Skip to main content
Glama

doubao-mcp

把豆包桌面客户端变成持久子代理,通过 stdio MCP 供 Codex、Claude Code、Cursor 等 Agent 客户端调用。任务在豆包的「工作 / 本地电脑」模式执行,支持异步派发、提问回传和原会话续接。

An MCP server that drives the Doubao desktop client over CDP, exposing it to any MCP client as persistent, resumable child agents.

接入

需要 Node.js ≥ 22 和已登录的豆包 Windows 桌面客户端。挂载到支持 stdio MCP 的客户端,把 args 换成克隆后的实际路径:

{
  "mcpServers": {
    "doubao": {
      "command": "node",
      "args": ["C:/path/to/doubao-mcp/server.mjs"]
    }
  }
}

Related MCP server: cs-agent-mcp

快速开始

git clone https://github.com/musdrop/doubao-mcp.git
cd doubao-mcp
node cli.mjs doctor

项目没有运行时依赖,只需要 Node.js ≥ 22;npm install 仅用于可选的本地工具链。

可运行 node cli.mjs doctor 检查环境。首次使用先调用 status;如需通过 connect 重启豆包开启调试端口,必须先取得用户许可。

使用流程

  1. 用 spawn 派发,传入完整指令、已存在的绝对工作目录 cwd 和项目标识 owner。长任务建议 async: true。

  2. 保存 agentId 和 turnId,用 wait_for_agent 或 agent_status 跟进。

  3. 从 text 读取结果;状态为 needs_input 时读取 lastQuestion,用 send_message 回答并续接。

后续调用始终使用相同的 owner。每个任务都必须跟踪到结果、提问或明确异常;单次等待超时后继续跟进,不提供取消工具。

共 9 个工具:spawn、send_message、wait_for_agent、agent_status、list_agents、status、connect、get_config、configure。

文档

  • 使用指南:工具参数、返回字段、完整示例及 Agent 接入约定。

  • 实现说明:模块职责、生命周期、状态存储及完成判定。

  • 开发与验证:开发约定、测试命令和验证范围。

项目结构

server.mjs        stdio MCP 入口与 9 个工具
cli.mjs           doctor / 配置命令行
run-turn.mjs      单轮执行器
src/              CDP 驱动、状态库、配置与结果日志
test/             13 套离线与在线验证
docs/             使用、实现与开发文档

许可

MIT © 2026 Mussy Hu

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A zero-friction stdio MCP bridge connecting Cursor Desktop to a local Hermes Agent, enabling natural language task delegation with session continuity and profile awareness.
      4
      2
      Apache 2.0
    • F
      license
      B
      quality
      D
      maintenance
      Enables AI agents to create and control persistent terminal sessions, run and monitor asynchronous jobs, page through ordered event history, and resolve registered device connection details without exposing stored secrets. Exposes 15 MCP tools over stdio that mirror a REST API, keeping session state alive independently of the agent that started it.
      15
      -