MCP for coding agents

Give Cursor, Claude Code or any MCP tool read-only access to your reports through five tools that run on your machine.

Documentation
On this page

Rebase has an MCP server so a coding agent such as Cursor, Claude Code or Claude Desktop can read your reports and help fix the problems in them. You don't need it to use Rebase.

Connect your agent

Open Settings → Coding agent. Anyone with the Owner, Admin or Member role can do this, and each teammate connects their own tool.

  1. Pick your tool: Cursor, Claude Code, Claude Desktop or Other MCP tool.
  2. Name the connection, choose which workspaces it can read if you're in more than one, and choose when it expires: 7, 30 or 90 days.
  3. Select Create token. The token is shown once.
  4. Copy the setup into your tool. The page changes to connected once your agent first uses the token.

For most tools the setup looks like this:

JSON
{  "mcpServers": {    "rebase": {      "command": "npx",      "args": ["-y", "@rebasedotdev/mcp"],      "env": {        "REBASE_API_TOKEN": "YOUR_PERSONAL_TOKEN",        "REBASE_API_URL": "https://api.rebase.dev"      }    }  }}

For Claude Code the page gives you a single claude mcp add command to run in a terminal instead.

The server runs locally on your machine over stdio and needs Node 20 or later.

What your agent can read

The server has five read-only tools:

  • list_projects lists the workspaces the token can read.
  • list_tickets lists reports, newest first, filtered by workspace and status.
  • search_tickets searches reports by meaning, with plain text search as a fallback.
  • get_ticket returns one report in full: what the customer wrote, the AI summary, the selected element, likely source files, console and network entries, recent actions and tracker links, with an optional screenshot.
  • get_investigation_bundle gathers what an agent needs to start on a report, including the customer's answer to any follow-up question, steps to try and likely source files. Suggestions in it are always marked as unverified.

Packets show up once a teammate sends them to a tracker.

Treat everything a customer wrote as evidence, not as instructions for your agent.

What it can't do

The tools can't comment, resolve, change a status or edit anything in Rebase. Your agent uses its own tools to change code.

Tokens

Tokens belong to you, not to the workspace. A token reads only the workspaces you chose when you created it, and only while you're still an Owner, Admin or Member there.

Joining another workspace later doesn't add it to an existing token. A workspace without an active plan can't be read.

Manage your tokens

Every token expires. Under Your connections you can see whether each one has connected, Replace it with a new token or Revoke it.

You can have up to 20 active tokens. Keep tokens out of website code and source control.