openclaw
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Trae ⇄ OpenClaw Bridge
让 Trae IDE 与 OpenClaw 双向互通的桥接项目:
下行:在 Trae 里直接列出 OpenClaw agent、查/触发定时任务、与 agent 对话
上行:OpenClaw 的任务完成事件主动回流到 Trae(cron 结束、agent 主动推送通知)
架构
┌─────────────────────────┐ ┌──────────────────────────┐
│ Trae IDE │ │ OpenClaw │
│ │ │ │
│ openclaw (MCP server) │ HTTP + Bearer │ Gateway :18789 │
│ 6 个工具 ─────────────┼───────────────────▶│ ├ /api/v1/admin/rpc │
│ │◀───────────────────┼── ├ /v1/chat/completions │
│ openclaw (skill) │ 事件增量拉取 │ └ /api/trae/events │
│ (调用时机说明) │ │ │
│ │ │ trae plugin │
│ │ │ ├ cron 钩子 │
│ │ │ └ trae_notify 工具 │
└─────────────────────────┘ └──────────────────────────┘Related MCP server: AgentGo
前置条件
依赖 | 版本 | 说明 |
Windows | — | 安装脚本为 PowerShell |
Node.js | ≥ 18 | MCP server 运行时 |
OpenClaw | 已安装并运行 | 需要 Gateway 在监听 |
Trae IDE / Trae CN | 3.4.x+ | MCP 与技能支持 |
安装
git clone https://github.com/rookiebug1216/trae-openclaw-bridge.git trae-openclaw
cd trae-openclaw
npm run deploy:openclaw # 部署 OpenClaw 侧插件
npm run deploy:trae # 部署 Trae 侧插件 + 技能 + MCP然后重启 Trae IDE(MCP 配置变更需重启生效)。
deploy:openclaw 会做什么
复制插件到
~/.openclaw/extensions/trae/备份
~/.openclaw/openclaw.json(形如openclaw.json.bak-trae-bridge-<时间戳>)开启
trae/admin-http-rpc插件把
trae追加进plugins.allow(先读取你现有列表再追加,不会覆盖其它插件;该字段未配置时跳过)开启
gateway.http.endpoints.chatCompletions重启 Gateway 并等待就绪
跑一次
scripts/probe4.mjs自检
任何一步失败都会中断且不继续,已备份的 openclaw.json 可手工还原。
deploy:trae 会做什么
目标 | 路径 |
插件包 |
|
技能 |
|
MCP server |
|
技能目录是 Trae 真实扫描的本地通道;MCP 采用显式挂载,因为本地安装的插件不会被市场 registry 登记。
验证
node scripts/probe4.mjs预期输出:
OpenClaw Gateway probe
url: https://127.0.0.1:18789
token: present (48 chars)
[OK] plane 3 GET /api/trae/health -- {"ok":true,...}
[OK] plane 1 RPC agents.list -- 5 agent(s)
[OK] plane 1 RPC cron.list -- 12 cron job(s)
[OK] plane 3 GET /api/trae/events -- 1 event(s), nextCursor=1
All 4 probes passed.提供的工具
工具 | 作用 | 副作用 |
| 列出所有 agent | 无 |
| 列出定时任务(可按 agent 过滤) | 无 |
| 查看某任务最近运行记录 | 无 |
| 立即触发一个定时任务 | 有(会真实执行) |
| 向 agent 发消息并等回复 | 有 |
| 拉取增量任务完成通知 | 无(仅推进本地游标) |
连接配置
默认本机零配置:自动读 ~/.openclaw/openclaw.json 的 gateway 端口与 token。
远程连接或需要覆盖时,按优先级生效:
优先级 | 方式 |
1 | 环境变量 |
2 |
|
3 | 本机自动发现(读 |
4 | 默认 |
// ~/.openclaw/trae-bridge.json
{
"gatewayUrl": "https://127.0.0.1:18789",
"gatewayToken": "<your-gateway-token>",
"tlsRejectUnauthorized": false
}tlsRejectUnauthorized 对 localhost / 127.0.0.1 / 内网网段默认 false(自签证书场景)。公网地址请显式设为 true。
目录结构
packages/
trae-openclaw-plugin/ Trae 侧:MCP server、插件清单、技能
openclaw-trae-plugin/ OpenClaw 侧:事件钩子、HTTP 路由、trae_notify 工具
scripts/
deploy-trae.ps1 Trae 侧一键安装
deploy-openclaw.ps1 OpenClaw 侧一键安装
probe4.mjs 三平面连通性自检已知限制
不会出现在 Trae 插件市场列表。 该列表由服务端 registry 驱动,本地
plugins/local/目录不会被登记。安装必须走本仓库的脚本。本机场景默认跳过 TLS 校验(Gateway 使用自签证书)。跨机部署请开启校验并配置正式证书。
安装脚本目前仅支持 Windows。
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Read a project's prompts, logs and agents, and send new work to the agent on your own machines.
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Start and manage Reason cloud coding agents, projects and sessions from any MCP client.
Persistent memory, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
Related MCP Servers
- AlicenseBqualityBmaintenanceConnects coding agents to local development services managed by Kranz. Agents can inspect service health, ports, logs, and run history, and perform lifecycle actions through the same live runtime as the TUI and CLI.2562MIT
- AlicenseNot gradedqualityBmaintenanceEnables an AI assistant to delegate coding tasks to local Codex or Claude Code CLIs, monitor their progress, read results, continue sessions, and browse the files in user-approved project workspaces. It exposes these capabilities over Streamable HTTP through a Cloudflare tunnel or locally over stdio, so a remote or cloud client can drive agents running on the user's own machine.76 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to exchange messages and hold threaded conversations across local and remote gateways, with human approval, signed A2A interoperability, and relayed CLI execution.MIT
- AlicenseNot gradedqualityCmaintenanceEnables local coding agents to track sessions, exchange isolated collaboration messages, and optionally delegate coding work to Codex with Git worktree isolation and task management.823 npmMIT