MCP Server

Production context, over MCP.

Point any MCP client at your Traceway instance. It logs in over OAuth and starts querying your exceptions, logs, latency, and metrics, directly.

Works with Claude Code, Claude Desktop, Cursor, and any MCP client.

Read the MCP docs →See the benchmarks →

Traceway MCP architecture: MCP clients authenticate over OAuth and query production errors, performance, and signals through the /mcp endpoint, backed by ClickHouse and Postgres.
Remote

Zero install. Login built in.

Every Traceway backend serves the tools over streamable HTTP at /mcp. On first connect the client registers itself, opens your browser on the instance's consent page, and holds a short-lived access token plus a rotating refresh token. Nothing to install or configure on the host.

  • Dynamic client registration (RFC 7591)
  • Browser consent on your own instance
  • Short-lived access tokens, rotating refresh
  • Personal access token fallback for CI
bash · remote MCP
1$ claude mcp add --transport http traceway https://cloud.tracewayapp.com/mcp
2# opens your browser on the consent page…
3✓ traceway connected (OAuth, no PAT to paste)
4› what's broken in prod right now?
5# → list_exceptions, query_logs, list_endpoints (last 1h)
Local

Or run it on stdio

The traceway CLI doubles as a local MCP server. Log in once in a terminal, pick a default project, and connect over stdio. It reuses your CLI session and refreshes device-login tokens automatically.

New to the CLI? Installation, usage, and login live on the CLI page →

  • One binary, no extra daemon
  • Reuses your CLI login and current project
  • Headless via TRACEWAY_URL + TRACEWAY_TOKEN
  • Same tools as the remote server
bash · local MCP
1$ traceway login --url https://your-instance
2$ traceway projects use checkout-api
3$ claude mcp add traceway -- traceway mcp
4✓ traceway mcp serving on stdio
The tools

Twenty-one read tools. Writes are opt-in.

Each tool wraps one API call and declares an output schema, so results come back as validated structured content. /mcp only reads. The ten write tools live on a separate server, /mcp/write, for teams that want an agent to acknowledge pages, snooze alerts or write post-mortems.

Errors

  • list_exceptions
  • get_exception
  • get_exception_occurrence

Performance

  • list_endpoints
  • list_endpoint_requests
  • endpoints_chart
  • get_endpoint_request
  • get_slow_endpoint_config

Signals

  • query_logs
  • query_metrics
  • get_task
  • get_ai_trace
  • get_session
  • get_trace

Operations

  • list_pages
  • get_page
  • list_notification_rules
  • list_checks
  • get_check
  • list_post_mortems
  • get_post_mortem

Projects

  • list_projects

Write server, opt-in

  • archive_exceptions
  • unarchive_exceptions
  • acknowledge_page
  • resolve_page
  • set_notification_rule_enabled
  • snooze_notification_rule
  • run_check
  • create_post_mortem
  • update_post_mortem
  • set_slow_endpoint

Safe by default

/mcp never lists a write tool. /mcp/write needs a write token, an organization admin's opt-in and the role the change needs, and every agent write lands in an audit log.

Prompts and resources

The same playbooks the Traceway skills ship, exposed as MCP prompts (debug_issue, investigate_performance) and knowledge resources, including a full guide to every part of Traceway.

Your data, your instance

Self-hosted or cloud, the server runs where your telemetry lives. Tokens are scoped to the user who approved the connection.

Compatibility

One protocol, every client

Traceway implements the open Model Context Protocol: streamable HTTP with OAuth for remote, stdio for local. Any spec-compliant client can connect, no plugin required.

Claude CodeClaude DesktopCursorMCP Inspector

Prefer skills over MCP tools? See Agent Skills →

Give your agent a live connection.

Connect an MCP client to your instance and let it investigate the next issue.

FAQ

Questions about the MCP server

What is the difference between MCP and the agent skills?

The MCP server gives an agent live tools and a login to your instance. The agent skills are Markdown playbooks that drive the traceway CLI. They share the same knowledge; pick whichever your client supports.

See Agent Skills →

Do I have to paste an API token?

No. The remote server handles OAuth for you: the client registers itself and you approve it in the browser. CI and non-OAuth clients can send a personal access token on the Authorization header instead.

Can an agent change my production data?

Not through /mcp, which only reads. The separate /mcp/write server can archive issues, acknowledge and resolve pages, snooze or toggle alert rules, run monitors, write post-mortems and mark slow endpoints. It needs a write token, an organization admin has to turn on Agent Access, and every write is recorded. Deletes, settings, rules and channels stay in the dashboard.

Does it work with self-hosted Traceway?

Yes. Every backend serves /mcp and /mcp/write, and the OAuth issuer is derived from the request, so it works behind a reverse proxy with no extra configuration.

Which clients are supported?

Any MCP client that speaks streamable HTTP (remote) or stdio (local): Claude Code, Claude Desktop, Cursor, MCP Inspector, and more.