Skip to main content
Connect an MCP client such as Claude Code or Claude Desktop to SRE Agent and it can read alerts, investigations, runbooks and configuration, and act on them, with the same checks the web app applies. Business plan

Connect a client

1

Create a credential

In Settings, open API Keys and select Generate API Key. Tick the scopes the client needs: mcp:read to look, mcp:write to act, mcp:admin to configure. The key is shown once, so copy it. As a member you can instead create a personal access token on your Account page, which follows your own role. Keys and tokens can expire and keys can be limited to addresses; see API key expiry and allowed addresses.
2

Add the server to your client

The endpoint is https://sreagent.app/api/mcp and the credential goes in the Authorization header as a Bearer token. For Claude Code:
3

Ask a question

Ask the client for something your key can do, such as “list the active alerts”. It calls get_active_alerts and shows the answer.
A personal token can belong to more than one organization. Call list_organizations first, then pass the organization argument that the other tools offer. An API key belongs to one organization, so its tools take no organization argument. A new organization does not appear until you edit the token on your Account page (Edit organizations), or create it with Include organizations I create or join later ticked.
Install the SRE Agent skill so your agent knows how to connect, which tools to call and how to work a fix handoff.

How access is decided

Every tool needs one scope, and each scope maps to a role. A scope includes the ones below it, so mcp:admin can also call write and read tools. A tool that is outside the key’s scope answers “Insufficient scope”. A personal token below the role a tool needs answers “Insufficient role”. Tools that delete something ask for confirm: true. Tools that take a secret, such as a provider key, a webhook signing secret or connector credentials, are write-only. You can send the value, and the answer only says whether one is stored. They are marked in the tables.

Read tools

A key with mcp:read, or a personal token whose role is at least viewer, can call these. They read data and change no configuration.

Write tools

These change operational data such as alerts, cards, runbooks and on-call. They need mcp:write, or a personal token whose role is at least member. A key with mcp:admin also passes.

Admin tools

These configure the organization: data sources, integrations, policies, teams and settings. They need mcp:admin, or a personal token whose role is org_admin.
The compliance tools sit in this list by scope, and an API key needs mcp:admin for all of them. A personal token needs only the member role for the reads (list_compliance_frameworks, list_compliance_controls, get_compliance_control, list_compliance_control_history, list_compliance_exports, list_compliance_policies, list_compliance_vendors, list_compliance_periods and get_compliance_period) and for the two writes a control’s owner makes (add_compliance_control_note and mark_compliance_control_reviewed). Every other compliance tool needs the org_admin role. Every compliance write except create_compliance_export needs a personal token; an API key is refused. See Generate compliance evidence.

Auditor tokens

An external auditor connects with a token of their own instead of an API key or a personal token. They create it on their auditor account page, under MCP access, after confirming it is them. It starts with sre_cat_, is shown once, lasts at most 30 days and never past the end of their access, and a person can hold two at a time. It needs the Compliance feature of the organization’s plan, not the MCP one. An auditor token is never a member’s credential. It belongs to one organization, so the tools take no organization argument, and it works only on POST https://sreagent.app/api/mcp. It is checked on every call: once it is revoked or expired, or the auditor’s access ends or narrows, the very next call feels it. It answers 300 calls an hour. It is offered these nine tools and nothing else; every other tool answers “An auditor’s access reads compliance evidence only.” Each tool answers only within the auditor’s access: a framework, period or control outside it reads as one that does not exist, and live answers and the registers need live status in the access. Every call, a refused one too, is written to the organization’s audit log with the tool and the ids it named, never the text of an argument or the token.