jcode-mcp
An MCP server that lets Claude (Desktop or Code) orchestrate jcode agent sessions. Claude plans and verifies. jcode agents do the work in parallel, one git worktree each.
Connected to your own jcode, the sessions it creates are normal jcode sessions: they appear in the jcode TUI and in jcode Desktop, where you can watch or steer them.
Claude Desktop / Claude Code
| MCP (stdio)
v
jcode-mcp --- @1jehuang/jcode-sdk ---> jcode harness API bridge ---> jcode daemon
| | |
agent sessions (worktrees)
^
jcode TUI / jcode Desktop
Quick install (copy and paste)
Claude plugin
The plugin bundles the MCP server and the orchestrate-jcode skill in one install:
/plugin marketplace add ymatrix1/jcode-mcp
/plugin install jcode-mcp@jcode-mcp
Restart Claude Code afterwards. The plugin pins the server to the release tag in .claude-plugin/plugin.json (currently v0.1.3), so it does not track main. It does not set JCODE_MCP_ALLOWED_ROOTS; add that variable to the server's environment if you want to limit where agents start. It needs Node 20 or newer, and on native Windows npx may need to run through cmd /c.
Claude Code
Paste this into Claude Code:
Install the jcode-mcp MCP server and its skill for me.
1. Ask me which directory my projects live in (an absolute path). Use it as JCODE_MCP_ALLOWED_ROOTS. Agents will start only inside it. This is not a sandbox.
2. Warm the cache so the first connection does not time out while npm builds the package: run `npx -y github:ymatrix1/jcode-mcp --version` and wait for it to print a version.
3. Register the server, with <DIR> replaced by that directory (on native Windows use "command": "cmd" and "args": ["/c", "npx", "-y", "github:ymatrix1/jcode-mcp"]):
claude mcp add-json --scope user jcode '{"command":"npx","args":["-y","github:ymatrix1/jcode-mcp"],"env":{"JCODE_MCP_AUTOSTART_BRIDGE":"1","JCODE_MCP_ALLOWED_ROOTS":"<DIR>"}}'
4. Install the skill: mkdir -p ~/.claude/skills/orchestrate-jcode && curl -fsSL https://raw.githubusercontent.com/ymatrix1/jcode-mcp/main/skills/orchestrate-jcode/SKILL.md -o ~/.claude/skills/orchestrate-jcode/SKILL.md
5. Run `claude mcp list` and show me the jcode entry's status.
6. Tell me to restart Claude Code, and that jcode needs a working provider login (an API key is safest) before agents can do real work.
It needs Node 20 or newer. Step 2 matters: the first run builds the package from GitHub, which can take longer than a client's connect timeout.
Claude Desktop
Run npx -y github:ymatrix1/jcode-mcp --version once in a terminal to warm the cache. Then add this to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\), set the directory, and fully quit and reopen Claude Desktop:
{
"mcpServers": {
"jcode": {
"command": "npx",
"args": ["-y", "github:ymatrix1/jcode-mcp"],
"env": {
"JCODE_MCP_AUTOSTART_BRIDGE": "1",
"JCODE_MCP_ALLOWED_ROOTS": "/path/to/your/projects"
}
}
}
}
On Windows (the least tested platform) use cmd as the command, ["/c", "npx", "-y", "github:ymatrix1/jcode-mcp"] as the args, and escape backslashes in JSON. Separate several roots with ;:
"JCODE_MCP_ALLOWED_ROOTS": "C:\\Users\\me\\projects;D:\\work"
Pin a version
The commands above track main, so each cold start can pick up new code that runs with your permissions. For stability, install a tagged release once one exists, for example github:ymatrix1/jcode-mcp#v0.1.0, and fetch the skill from the same tag (.../v0.1.0/skills/... in the raw URL).
Check it works
Paste into Claude:
Use the jcode tools to list_jcode_sessions, then spawn a read-only jcode agent in a scratch git repo (in its own worktree) that lists the files and summarizes them. Wait for it and show me its output.
If the result carries a warning about no output, jcode has no working provider login.
Install from source
Requires Node 20 or newer. The jcode runtime ships inside the SDK package, so launch mode needs no separate jcode install. In the default connect mode, JCODE_MCP_AUTOSTART_BRIDGE=1 needs a jcode that provides the harness API bridge: on Windows that is the jcode Desktop download (set JCODE_MCP_BINARY to its jcode.exe, or JCODE_MCP_BRIDGE_BINARY to jcode-harness-api-bridge.exe), or open jcode Desktop first.
git clone https://github.com/ymatrix1/jcode-mcp
cd jcode-mcp
npm ci && npm run build
Claude Desktop
Add to claude_desktop_config.json: