Files
wehub-resource-sync 4b6817381b
Benchmark image — build + push to ECR (any adapter) / build + push (push) Waiting to run
CI / quality (ubuntu-latest) (push) Waiting to run
CI / test (tools-runtime) (push) Waiting to run
CI / test (e2e-general) (push) Waiting to run
CI / test (cli-runtime) (push) Waiting to run
CI / test (e2e-provider-and-openclaw) (push) Waiting to run
CI / test (integrations-and-misc) (push) Waiting to run
CI / coverage-report (push) Blocked by required conditions
CI / test-kubernetes (push) Waiting to run
CI / should-run-thorough (push) Waiting to run
CI / test-thorough (cloudwatch-demo) (push) Blocked by required conditions
CI / test-thorough (flink-ecs) (push) Blocked by required conditions
CI / test-thorough (upstream-lambda) (push) Blocked by required conditions
CI / test-thorough (prefect-ecs-fargate) (push) Blocked by required conditions
CodeQL / Analyze (python) (push) Waiting to run
Release / build-binaries (zip, opensre.exe, onefile, windows-latest, windows-x64) (push) Blocked by required conditions
Release / publish-release (push) Blocked by required conditions
Release / publish-main-release (push) Blocked by required conditions
Release / prepare (push) Waiting to run
Release / verify (push) Blocked by required conditions
Release / build-python-dist (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, macos-15-intel, darwin-x64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, macos-latest, darwin-arm64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04, linux-x64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04-arm, linux-arm64) (push) Blocked by required conditions
Synthetic Deterministic Tests / Synthetic offline (deterministic) (push) Waiting to run
Interactive Shell Live (PR + post-merge) / turn-checks (no-LLM) (push) Waiting to run
Interactive Shell Live (PR + post-merge) / turn-live shard ${{ matrix.shard_index }} (push) Waiting to run
CI (OpenClaw E2E) / openclaw test (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:10:45 +08:00

103 lines
4.3 KiB
Plaintext

---
title: "Sentry (MCP)"
description: "Connect Sentry's hosted MCP server so OpenSRE can query issues, events, traces, releases, and Seer root-cause analysis during investigations"
---
OpenSRE connects to Sentry's hosted [Model Context Protocol (MCP)](https://mcp.sentry.dev) server, exposing Sentry's products — issues, events, traces, replays, releases, monitors, and Seer AI root-cause analysis — as tools the agent can call while investigating an incident.
This is distinct from the [Sentry issue integration](/sentry), which is a narrow REST client used for issue and event lookup. Use the MCP integration when you want the agent to explore Sentry data directly, including Seer-assisted debugging.
## Tools
| Tool | What it does |
| --- | --- |
| `list_sentry_tools` | List the tools the connected Sentry MCP server exposes |
| `call_sentry_tool` | Call a named Sentry MCP tool (e.g. look up an issue, fetch a trace, run Seer root-cause analysis) |
The agent typically calls `list_sentry_tools` first to discover what is available for your organization, then `call_sentry_tool` with the chosen tool name and arguments.
## Prerequisites
- A Sentry account (hosted SaaS, or self-hosted via the `SENTRY_MCP_HOST` override)
- A Sentry **user auth token** created in your account settings. The required scopes depend on the skills you use:
- `org:read` — read-only inspection of issues, events, traces, releases, monitors (default)
- `event:write`, `team:write`, `project:write` — for triage and project-management skills
## Setup
### Option 1: Interactive CLI
```bash
opensre integrations setup
```
Select **Sentry (MCP)** when prompted, then paste your user auth token. The setup uses the hosted Streamable HTTP transport; keep the default URL unless you run self-hosted Sentry. To run a local server instead, set `SENTRY_MCP_MODE=stdio` via environment variables (see below).
### Option 2: Environment variables
Add to your `.env`:
```bash
SENTRY_MCP_MODE=streamable-http
SENTRY_MCP_URL=https://mcp.sentry.dev/mcp
SENTRY_MCP_AUTH_TOKEN=your_sentry_user_auth_token
SENTRY_MCP_HOST= # optional, self-hosted Sentry host
SENTRY_MCP_ORGANIZATION_SLUG= # optional, scope to one organization
SENTRY_MCP_PROJECT_SLUG= # optional, scope to one project
SENTRY_MCP_SKILLS= # optional, comma-separated skill filter
```
| Variable | Default | Description |
| --- | --- | --- |
| `SENTRY_MCP_AUTH_TOKEN` | — | **Required** (hosted). Sentry user auth token |
| `SENTRY_MCP_URL` | `https://mcp.sentry.dev/mcp` | MCP server URL |
| `SENTRY_MCP_MODE` | `streamable-http` | Transport: `streamable-http`, `sse`, or `stdio` |
| `SENTRY_MCP_HOST` | — | Self-hosted Sentry hostname (e.g. `sentry.example.com`) |
| `SENTRY_MCP_ORGANIZATION_SLUG` | — | Scope tools to a specific organization |
| `SENTRY_MCP_PROJECT_SLUG` | — | Scope tools to a specific project |
| `SENTRY_MCP_SKILLS` | — | Comma-separated skill filter (`inspect`, `seer`, `triage`, `project-management`) |
| `SENTRY_MCP_COMMAND` | — | Command to launch a local MCP server (`stdio` mode only) |
| `SENTRY_MCP_ARGS` | — | Arguments for the local MCP command (`stdio` mode only) |
To run a local Sentry MCP server instead of the hosted endpoint, use `stdio` mode:
```bash
SENTRY_MCP_MODE=stdio
SENTRY_MCP_COMMAND=npx
SENTRY_MCP_ARGS=@sentry/mcp-server@latest
SENTRY_MCP_AUTH_TOKEN=your_sentry_user_auth_token
```
<Info>
The `search_events` and `search_issues` tools translate natural-language queries and require an `OPENAI_API_KEY` in the MCP server's environment. The rest of the MCP server works without it, so you can skip this if you do not need those tools.
</Info>
### Option 3: Persistent store
```json
{
"version": 1,
"integrations": [
{
"id": "sentry-mcp-prod",
"service": "sentry_mcp",
"status": "active",
"credentials": {
"url": "https://mcp.sentry.dev/mcp",
"mode": "streamable-http",
"auth_token": "your_sentry_user_auth_token",
"organization_slug": "my-org"
}
}
]
}
```
## Verify
```bash
opensre integrations verify sentry_mcp
```
A successful check connects to the MCP server and reports how many tools it discovered. If it fails, the most common cause is a missing or invalid user auth token — confirm the token has at least `org:read` scope and that outbound HTTPS to `mcp.sentry.dev` is allowed.