Bridge between OpenClaw and TRAE IDE — enables any OpenClaw agent to orchestrate TRAE as an AI coding agent.
What it does: OpenClaw connects to a TRAE extension that exposes an MCP server, allowing the agent to delegate coding tasks to TRAE's SOLO agent while maintaining orchestration control.
┌─────────────────────────────────────────────────────────────────┐
│ OpenClaw Agent │
│ ┌─────────────┐ ┌──────────────────┐ ┌───────────────┐ │
│ │ MCP Client │───▶│ Unix Socket │───▶│ TRAE Extension│ │
│ │ (OpenClaw) │ │ /tmp/trae-mcp.sock│ │ (MCP Server) │ │
│ └─────────────┘ └──────────────────┘ └───────┬───────┘ │
│ │ │
│ VS Code API │
│ │ │
│ ┌───────▼───────┐ │
│ │ TRAE SOLO │ │
│ │ Agent │ │
│ │ (Rust) │ │
│ └───────────────┘ │
└─────────────────────────────────────────────────────────────────┘
A VS Code/TRAE extension that exposes these tools over a Unix socket:
| Tool | Description |
|---|---|
read_file |
Read file contents |
write_file |
Write/create files |
list_dir |
List directory entries |
search_codebase |
Grep search |
run_command |
Execute shell commands |
open_file |
Open file in editor |
get_workspace |
Get workspace info |
get_symbols |
Get code symbols |
invoke_solo_agent |
Delegate to TRAE SOLO agent |
The OpenClaw skill that connects to the TRAE MCP server and exposes its tools to any OpenClaw agent.
cd extension
npm install
npm run compile
# Then in TRAE: Ctrl+Shift+P → "Developer: Install Extension from Location"
# Select the extension directoryOr copy the extension to TRAE's extensions directory:
cp -r dist/ ~/.config/Trae/extensions/In TRAE:
- Open the Command Palette (
Ctrl+Shift+P) - Run "TRAE MCP: Start Server"
The MCP server will start on /tmp/trae-openclaw-mcp.sock.
Once the extension is running, OpenClaw can directly call the MCP tools:
OpenClaw, read the file src/app.ts in the workspace and explain what it does.
OpenClaw, delegate this bug fix to TRAE: the login button doesn't work on mobile.
# Build extension
cd extension
npm install
npm run compile
# Watch mode
npm run watch
# Test MCP connection
nc -U /tmp/trae-openclaw-mcp.sock
{"jsonrpc":"2.0","id":1,"method":"ping"}- MCP server scaffold (extension)
- Core tools (read, write, search, list, symbols)
- SOLO agent IPC reverse-engineering
- OpenClaw MCP client skill (full integration)
- Installation script
- Demo / screencast
MIT