Start for free
Guides/Connect your agent

Guides

Connect your agent

Add ontrackd to Claude Code, Cursor, VS Code and other agents. Your agent reads the open comments with the exact lines to edit, and resolves each one when it is done.

Your agent connects to ontrackd over MCP. It asks for the open comments and gets each one with the file and line behind the element it points at, so it goes straight to the code. Once a change is made, it marks the comment resolved, and reviewers see it resolved.

You add one address to your agent and sign in from the browser, with the account you use on the dashboard. Nothing to install, and no secret in your project. This works for Cloud projects; for Standalone projects, see below.

Add the server

claude mcp add --transport http ontrackd https://api.ontrackd.com/mcp

Then run /mcp in Claude Code and choose ontrackd. Your browser opens: sign in, choose the projects and what the agent may do.

Open Customize, then Connectors. Choose + Add, then Add custom connector. Name it ontrackd, give it this address and choose Continue:

https://api.ontrackd.com/mcp

Choose Continue again. Under Authentication, choose Sign in now, then Add. Your browser opens: sign in, choose the projects and what the agent may do.

On a Team or Enterprise plan, an owner adds the connector under Organization settings, Connectors. Then each member opens Customize, Connectors and chooses Connect on it.

In .cursor/mcp.json for this project, or ~/.cursor/mcp.json for all of them:

{
  "mcpServers": {
    "ontrackd": { "url": "https://api.ontrackd.com/mcp" }
  }
}

Cursor lists ontrackd with its MCP servers, under Customize. On the first connection your browser opens: sign in, choose the projects and what the agent may do.

Run MCP: Add Server from the Command Palette, choose HTTP, give it the address https://api.ontrackd.com/mcp and name it ontrackd. Or add it yourself, in .vscode/mcp.json:

{
  "servers": {
    "ontrackd": { "type": "http", "url": "https://api.ontrackd.com/mcp" }
  }
}

To start it, run MCP: List Servers, choose ontrackd, then Start Server. When it asks, choose Authenticate. Your browser opens: sign in, choose the projects and what the agent may do.

In ~/.config/devin/mcp_config.json for all your projects, or .devin/mcp_config.json for this one:

{
  "mcpServers": {
    "ontrackd": { "url": "https://api.ontrackd.com/mcp" }
  }
}

Open Customize, then MCPs, and refresh the list. The first time your agent uses ontrackd, your browser opens: sign in, choose the projects and what the agent may do.

codex mcp add ontrackd --url https://api.ontrackd.com/mcp
codex mcp login ontrackd

Your browser opens: sign in, choose the projects and what the agent may do.

Any other agent that supports remote MCP servers with sign-in works the same way: give it the address above.

On the page that opens, you pick:

  • The projects the agent may see. You can pick only projects you are part of.
  • What it may do. Reading is always allowed. Resolving is on. Replying is off.

Then tell your agent, in your own words or these:

Use ontrackd: get the open feedback as a work order, make the changes, and resolve each comment when it is done.

What your agent can do

Tool What it does
list_feedback The comments, each with the file and line it points at, its status, its author and its branch.
get_feedback_tasks The work order: each comment with its file, its line and the reviewer’s words, with up to 10 images: each comment’s screenshot, then the images reviewers attached.
search_feedback Finds comments by the text of the comment and its replies.
get_feedback_context The projects it may see, with your role on each and how many comments are open.
resolve_feedback Marks a comment resolved once its change is made. Reviewers see it resolved.
reply_feedback Replies to a comment in your name, once you allow it.

It never sees more than you do. If you leave a project, or your role changes, the agent’s next request follows.

Resolving works on the comments you could resolve yourself: your own, or any comment when you own or administer the project. On another comment, the agent tells you to ask the author, an owner or an admin.

With more than one project, your agent names the project it wants. Paths in its answers are relative to your app’s folder, so it opens them in your checkout.

Allow replies

Replying is off until you turn it on, so a reviewer never gets an answer you did not ask for. Turn it on when you sign in, or later in the dashboard: open the project, then Settings, Agents.

Even then, your agent replies only when you ask it to, and shows you the text first. Its replies carry your name with the agent’s: “Sam · via Claude Code”. Resolving and replying can be switched off again at any time in the project’s Agents settings, and Disconnect stops the agent at once.

Without browser sign-in

For an agent that cannot open a browser, or a script in CI, make a personal token: in the dashboard, open the project, then Settings, Agents, New personal token. That project is already picked; add others if you like. Choose what it may do and how long it lasts (30 days, 90 days or a year). It is shown once: copy it into your agent’s environment as ONTRACKD_TOKEN.

claude mcp add --transport http ontrackd https://api.ontrackd.com/mcp --header "Authorization: Bearer $ONTRACKD_TOKEN"

Add the connector as above, but under Authentication choose No sign in, and under Request headers add Authorization with the value Bearer followed by your token.

On a Team or Enterprise plan, everyone in the organization would use that token, so sign in from the browser there instead.

{
  "mcpServers": {
    "ontrackd": {
      "url": "https://api.ontrackd.com/mcp",
      "headers": { "Authorization": "Bearer ${env:ONTRACKD_TOKEN}" }
    }
  }
}

VS Code asks for the token once and keeps it in its secret storage:

{
  "inputs": [
    { "type": "promptString", "id": "ontrackd-token", "description": "ontrackd personal token", "password": true }
  ],
  "servers": {
    "ontrackd": {
      "type": "http",
      "url": "https://api.ontrackd.com/mcp",
      "headers": { "Authorization": "Bearer ${input:ontrackd-token}" }
    }
  }
}
{
  "mcpServers": {
    "ontrackd": {
      "url": "https://api.ontrackd.com/mcp",
      "headers": { "Authorization": "Bearer ${env:ONTRACKD_TOKEN}" }
    }
  }
}

In ~/.codex/config.toml:

[mcp_servers.ontrackd]
url = "https://api.ontrackd.com/mcp"
bearer_token_env_var = "ONTRACKD_TOKEN"

Standalone projects

Standalone projects are end-to-end encrypted, so ontrackd’s servers cannot read their comments, and the address above cannot either. Their agent runs the server that comes with the package, on your machine. This also works for Cloud projects when you want comments left on your dev server that never went to the cloud.

If you set ontrackd up with npx ontrackd init, it has already registered this server: with Claude Code when it is installed, with Cursor and VS Code when the repository has their folder, and as a printed line for any other agent.

  1. Give the app its secret

    Copy the project’s secret from its Setup tab in the dashboard, and add it to .env.local in the app that has the package:

    ONTRACKD_SECRET=sk_prj_…

    Keep the file out of git. Or run ontrackd link instead: it signs you in by email and saves the secret for you.

  2. Add the server

    Run this inside the same app:

    $ npx feedback-mcp init

    It prints the line to give your agent, with this project’s paths filled in. Paste it as it is.

It has the same tools as above, except reply_feedback. Each time your agent reads the comments, it also fetches what reviewers left on your previews, at most every 20 seconds. The MCP tools reference has the details.

In a monorepo

With the address above, each app is its own project: pick the ones you work on when you sign in, and your agent names the project it wants.

With the local server, run feedback-mcp init in any one app: it finds the others and prints one server for all of them. Add it from the repository root, so paths read from there. Each tool except resolve_feedback then takes an optional project to narrow it to one app.

Without an agent

You can get the same comments without MCP.

  • On your dev server, open the panel from the bar. Copy task list, at its foot, copies a work order for an agent and saves it in .feedback/tasks/.
  • From your previews, run ontrackd pull in the app: it fetches the comments, with the project’s secret, so your dev server’s panel and its task list include them.
$ npx ontrackd pull
Esc

Type to search every page.