MCP server
Let Claude Code and other agents drive GridTree over MCP.
GridTree runs a local Model Context Protocol server that lets an MCP-aware agent — Claude Code, Gemini CLI, OpenCode, and others — read your projects, worktrees, and issues, and start and tail your apps. It's how an agent working in a GridTree terminal can act on the rest of the app.
How it works#
GridTree runs a small local server on your machine while it's open. It listens on localhost only — nothing is exposed to the network — so your agents can reach it but nothing outside your machine can.
Agents connect through a helper that GridTree bundles, rather than talking to the server directly. If you run more than one GridTree window, an agent started in a terminal automatically reaches the window it belongs to.
Set it up#
Open Settings and find your agent under the MCP / agents section. GridTree detects which agents are installed and whether each is already configured, and gives you a Setup button that registers the GridTree server for you.
- Claude Code — installing the GridTree plugin wires up the MCP server. The Setup button is the fallback if you don't use the plugin (it runs
claude mcp add … gridtree … mcp). - Gemini CLI and OpenCode — Setup writes the server into the agent's config file.
- Cursor and other clients — there's no auto-setup, so add it by hand. Point the client at the bundled
gridtreebinary with themcpargument; the Manual setup block in settings shows the exact path.
Tools#
The server exposes a flat set of tools. There is no per-agent permission model — a configured agent can use all of them.
| Tool | What it does |
|---|---|
list_projects | List all projects registered in GridTree. |
get_project_info | Detailed info for a project — IDE, GitHub/Jira links, build & run configs, worktrees. |
list_worktrees | List a project's worktrees. |
get_context | Return the current worktree and project for the calling terminal. |
list_issues | List GitHub and Jira issues for a project. |
get_issue | Fetch full details for a single GitHub or Jira issue. |
list_app_configs | List a project's build & run configs. |
start_app / stop_app | Start or stop a build & run config. |
get_app_status | Report which apps are running. |
get_app_output | Return recent log lines from a running app. |
notify | Send a notification into GridTree. |