Traversal

AI SRE that investigates production incidents across your logs, metrics, traces, alerts, changes and code, and returns root causes with cited evidence. Sign in with OAuth or an API key.

Hosted MCP Server

npx add-mcp 'https://api.traversal.com/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

MCP

Run Traversal from Claude, Cursor, and other AI clients: investigate together with your local agent, read reports and knowledge, and work with Workers.

The Traversal MCP server lets compatible AI clients, such as Claude Code, Cursor, and Claude Desktop, run investigations, ask follow-ups, read investigation reports and their citations, browse your organization's Knowledge Bank, and catch up on and message Workers using the Model Context Protocol. It uses the streamable-http transport. You connect by signing in with your Traversal account or with a key.

Your local agent handles what's local (your code, your terminal, your tools). Traversal investigates across your production stack. The two hand work back and forth until the incident is understood.

Endpoint: https://api.traversal.com/mcp

For single-tenant SaaS or BYOC deployments, use your organization's API URL + /mcp/.

Agent-to-agent mode

When another agent calls Traversal, it runs in lightning investigation depth by default, built for quick back-and-forth between agents. A first pass typically returns in 30 seconds to 2 minutes. Your agent can follow up to go deeper, or pass mode="default" to investigate for a default-depth investigation.

You don't call Traversal directly. Describe the problem to your AI agent as you normally would, and it decides when to bring Traversal in. The work then runs in both directions:

[card] Your agent → Traversal

Your agent sends Traversal the problem and what it can do locally (your repo, kubectl, your other tools). Traversal investigates across your metrics, logs, traces, deployments, and topology, which your local agent can't see on its own.

[card] Traversal → your agent

Traversal hands back specific next steps your agent can run, such as check src/checkout/handler.go:142 or run kubectl logs -n prod checkout-service-xyz. Your agent runs them locally and feeds the results back.

The collaboration loop

Each cycle works like this:

1. Your agent calls investigate

It sends Traversal the problem, what it can access locally, and how focused to stay.

2. Traversal investigates

The investigation runs across your observability stack and returns findings plus next steps your agent can execute.

3. Your agent acts locally

It reads the file, runs the command, or queries a tool only it has access to.

4. Your agent follows up

It calls investigate again with the new evidence, passing the session_id from the first call as follow_up_session_id. Traversal folds it in and refines the diagnosis.

5. Repeat until resolved

Follow up as many times as you need. Each call builds on the same investigation context.

Your agent passes along context that sharpens the investigation:

  • What it can access locally (your codebase, kubectl, your other tools), so Traversal can hand back steps your agent can run.
  • How focused to be: a tight look at one service, or a broad sweep across many.
  • The affected services and time window, so Traversal targets the right place first.

Authentication

You can connect by signing in with your Traversal account or with a key. Sign in when your client supports it, so you don't need to manage a key.

Sign in with your Traversal account

Add the server with just the endpoint, no Authorization header. Then sign in to Traversal in your browser when your client asks. Choose your client:

[tab] Claude Code

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

Start Claude Code, run /mcp, choose traversal, and sign in.

[tab] Claude

In Claude or Claude Desktop, add a custom connector with this URL, then click Connect and sign in:

https://api.traversal.com/mcp

On Team and Enterprise plans, an Owner adds the connector under Organization settings → Connectors, then members click Connect. See Anthropic's guide to adding a custom connector.

[tab] Codex

codex mcp add traversal --url https://api.traversal.com/mcp

Codex opens your browser to sign in. To sign in again later, run codex mcp login traversal.

[tab] Cursor

Add to .cursor/mcp.json in your project root or global settings:

{
  "mcpServers": {
    "traversal": {
      "url": "https://api.traversal.com/mcp",
      "auth": {
        "CLIENT_ID": "tpc_vvacDBQZqT3Lqk3Ldc9x7h",
        "scopes": ["openid", "profile", "email", "offline_access"]
      }
    }
  }
}

Cursor asks you to sign in when it connects. This CLIENT_ID works for Traversal SaaS only.

[tab] OpenCode

Add to your opencode.json config:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "traversal": {
        "type": "remote",
        "url": "https://api.traversal.com/mcp"
      }
    }
  }
}

In OpenCode, run /mcps, choose traversal, and sign in. You can also run opencode mcp auth traversal.

[tab] ChatGPT

Add a custom MCP server with this URL and choose OAuth for authentication:

https://api.traversal.com/mcp

Custom MCP servers depend on your ChatGPT plan, and on Business plans only admins can add them. See OpenAI's guide to custom MCP servers.

[tab] VS Code

Open the Command Palette, run MCP: Add Server, choose HTTP, and enter:

https://api.traversal.com/mcp

When VS Code asks whether the server can authenticate, click Allow and sign in.

[!NOTE]

If sign-in isn't on for your organization, the client gets a 403 Forbidden error after you sign in. Connect with a key instead, or ask your Traversal representative to turn on sign-in.

Connect with a key

To create a key and get your client's config in one step, go to Settings → MCP in the Traversal web app and click Set up. Choose your client, name the key, and click Create. Traversal shows the MCP key once, with the config for your client filled in. An MCP key works only with the MCP server, not the REST API.

You can also use an API key from Settings → API keys. The key is shown once, so copy it before you leave the page.

For a shared MCP client or unattended workflow, use a service-account key instead. An organization Admin creates it under Settings → Account management → Service accounts. The client acts as the service account, and the account owns its investigations.

Pass the key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

When rotating a service-account key, create the replacement on the same account so it can continue existing investigations. Follow-ups require the identity that owns the session; a different account cannot take over those follow-ups.

Set up with a key

With a key, every client needs the same two things: the endpoint URL and an Authorization header. To sign in instead, see Sign in with your Traversal account.

[accordion] Claude Desktop

Open Settings → Developer → Edit Config and add:

{
  "mcpServers": {
    "Traversal": {
      "type": "http",
      "url": "https://api.traversal.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Restart Claude Desktop after saving.

[accordion] Claude Code

claude mcp add --transport http traversal https://api.traversal.com/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

[accordion] Cursor

Add to .cursor/mcp.json in your project root or global settings:

{
  "mcpServers": {
    "Traversal": {
      "url": "https://api.traversal.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

[accordion] Codex

Add to ~/.codex/config.toml:

[mcp_servers.traversal]
url = "https://api.traversal.com/mcp"

[mcp_servers.traversal.http_headers]
Authorization = "Bearer YOUR_API_KEY"

Restart Codex after saving.

[accordion] OpenCode

Add to your opencode.json config:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "traversal": {
      "type": "remote",
      "url": "https://api.traversal.com/mcp",
      "oauth": false,
      "timeout": 300000,
      "headers": {
        "Authorization": "Bearer {env:TRAVERSAL_API_KEY}"
      }
    }
  }
}

Set the TRAVERSAL_API_KEY environment variable with your API key before launching OpenCode.

[accordion] Other clients

Any client supporting the streamable-http transport can connect (ChatGPT, Windsurf, VS Code, etc.). Configure it with the endpoint URL and an Authorization: Bearer header containing your API key.

Available tools

These tools are available on SaaS. For single-tenant SaaS or BYOC, contact your Traversal representative. If your client lists different tools, reconnect the Traversal MCP server to load the current ones.

Investigations

ToolDescription
investigateStart an investigation, or follow up on one of your own by passing its session_id as follow_up_session_id. Runs in lightning depth unless the agent sets mode to default. Returns the report if it finishes within wait_seconds, otherwise the session_id.
read_investigationGet an investigation's status, latest report, and an outline of earlier turns. Waits for the report while it runs.
read_citationShow the evidence behind the citations in a report.
list_investigationsFind investigations you started or opened in the web app, or the ones a Worker started. Org admins signed in through OAuth can list every investigation in the organization.
product_feedbackSend feedback about the MCP experience to the Traversal team.

[!TIP]

A single investigate call is a first pass. Follow up at least once to drill into findings, verify hypotheses, or return what your agent found locally.

Knowledge

ToolDescription
list_knowledgeList what's in your organization's Knowledge Bank.
read_knowledgeRead one Knowledge Bank item.

Workers

The Worker tools work only in organizations where Workers are enabled.

ToolDescription
list_workersList your organization's Workers.
read_workerRead a Worker's mode, instructions, schedules, status, and scratchpad.
read_worker_feedRead a Worker's activity feed.
send_to_workerSend a message to a Worker. It shows in the Worker's feed in the web app, not in the Worker's Slack or Teams channel.

send_to_worker doesn't return the Worker's answer. The Worker reads the message on its next turn and decides whether and where to reply. Call read_worker_feed afterward to read the reply.

FAQ

[accordion] Why is an MCP investigation faster than the web app?

MCP calls use lightning depth by default, which returns a first pass quickly so your agent can keep moving. For more depth, follow up, or have your agent pass mode="default" to investigate.

[accordion] Does Traversal run commands on my systems?

No. Traversal doesn't run commands on your machine. In agent-to-agent mode it suggests next steps, such as a command to run or a file to check. Your local agent decides whether to run them, using its own permissions and access.

[accordion] Authentication failed (401)

Verify your API key is correct and hasn't been revoked. If you recently regenerated it, update your client configuration. If you signed in, sign in again from your client.

[accordion] Forbidden (403) after signing in

Sign-in isn't on for your organization. Connect with a key instead, or ask your Traversal representative to turn on sign-in.

[accordion] Investigation is slow or times out

A first pass usually returns within two minutes. If the report isn't ready within wait_seconds, investigate returns the session_id, and your agent can wait for the report with read_investigation. To speed things up, try a narrower, surgical investigation first and follow up to expand scope.

[accordion] Viewing results in the web app

investigate and read_investigation return a ui_url link to the full investigation in the Traversal web app.

[accordion] A tool call says Traversal's tools have changed

Your client cached an older tool list when it connected. Reconnect the Traversal MCP server to load the current tools.

This documentation is built and hosted on Mintlify, a developer documentation platform.