Enabling the MCP Server
- In Brunel Agent, go to Settings → MCP Server
- Toggle Enable MCP Server on
- Before you can start the server, you need to generate an API key — see below
Generating an API Key
The MCP server requires an API key for authentication. This ensures only authorized agents can access your planning data.- In Settings → MCP Server, click Generate API Key
- Copy the generated key — you’ll need it when configuring your coding agent
- Store it securely. If you need to regenerate it, any agents using the old key will need to be reconfigured
Server Configuration
| Setting | Default | Notes |
|---|---|---|
| Port | 17321 | Configurable. Range: 1024–65535. Restart server after changing. |
| Allowed Projects | None selected | Toggle All Projects to grant access to everything, or select specific projects from the list. |
| Auto-start on launch | Off | Automatically start the MCP server when Brunel Agent opens |
The MCP server runs on
localhost only — it is not exposed to the internet.Connecting Cursor
- Open Cursor and go to Settings → MCP
- Click Add MCP Server
- Add the following configuration, replacing
YOUR_API_KEYwith the key you generated in Brunel:
- Save the configuration — Cursor will connect to Brunel automatically
Connecting Claude Code
- Open your Claude Code configuration file (
~/.claude/mcp_servers.json) - Add the following entry, replacing
YOUR_API_KEYwith the key you generated:
- Restart Claude Code — it will detect the Brunel MCP server automatically
Connecting VS Code (GitHub Copilot)
- Open VS Code and go to Settings → search for “MCP”
- In your
settings.json, add:
- Reload VS Code — Copilot will have access to Brunel planning data
What the Agent Can Access
Once connected, your coding agent can read:- Plans — the full structured plan from any session in your Allowed Projects
- Context files — all files attached to a session
- Session metadata — session name, type, and current lifecycle phase
Troubleshooting
Server shows 'Stopped' after clicking Start Server
Server shows 'Stopped' after clicking Start Server
Make sure you have generated an API key first. The server will not start without one.
Port conflict error
Port conflict error
Another application is using port 17321. Change the port in Settings to any available port in the range 1024–65535 and restart the server. Update the port in your agent’s MCP configuration to match.
Agent cannot connect
Agent cannot connect
Verify the MCP server is running (status shows “Running” in Settings). Check that the port and API key in your agent’s configuration match exactly what’s in Brunel Settings. Make sure Brunel Agent is open and running.
Agent returns no data
Agent returns no data
Check that the project you’re working in is accessible via the MCP Server settings. Either toggle All Projects on, or make sure the specific project is checked in the Allowed Projects list.