MCP
Connect an AI assistant to Stazus with an API token.
Stazus runs a Model Context Protocol server, so an assistant such as Claude can read your monitoring and act on it with the permissions you give it.
https://backendv2-production.stazus.com/api/mcp/v2/rpcConnect
- Create an API token from the MCP: read only or MCP: full access template. It needs
mcp.connect, and it can never do more than you can. - Add the server to your client with the token as a bearer header. For Claude Code:
claude mcp add --transport http stazus https://backendv2-production.stazus.com/api/mcp/v2/rpc \
--header "Authorization: Bearer $STAZUS_API_TOKEN"Tools
Each tool is one Developer API operation, named after it: incidents_close is POST /incidents/{incident_id}/close. tools/list shows only the tools this token may use right now. There are three more: token_whoami, check_types_list and confirmation_request.
- Path IDs are arguments (
incident_id), reads takequery, and writes takebody, the same JSON as the API. - Creates, merges, invitation resends and
checks_runneed anidempotency_key. Reuse it only to retry the exact same call. - Results are
{status, body}. Failures come back as tool results marked as errors, with the API's error object.
Protected tools
Deletes, role changes, member removal and invitations need a confirmation first. Call confirmation_request with action set to the tool's name and arguments set to the exact arguments, then call the tool with those arguments plus the returned confirmation_token within five minutes. Each confirmation works once, only for that exact call, and only while the token still holds the permission.
Resources
| URI | Contents |
|---|---|
stazus://control-guide | How to use the server. Assistants should read it first. |
stazus://control-catalog | The token's tools, with each one's permission and rules. |
stazus://api-spec | The OpenAPI document. |
stazus://check-types | The check types your team may use, with their configuration schemas. |
stazus://permissions | The token's effective permissions and the permission catalogue. |
MCP requests are limited to 120 a minute per token, apart from the Developer API's limit.
Last updated on