3 serversDevelopment3 MCP servers

Post-Incident Review · Sentry, Linear & Slack

Nobody likes writing post-mortems, but everyone agrees they're essential. This agent pulls the error timeline and stack traces from Sentry, creates a structured post-mortem issue in Linear with root cause analysis, and posts the incident summary to your Slack #incidents channel — so your team can learn from failures without the 2-hour writeup.

Default model: Claude Sonnet 4.53 serversAccess token required

Default model

Claude Sonnet 4.5

MCP servers

mcp.sentry.dev, mcp.linear.app, mcp.slack.com

Auth

Sentry auth token, Linear API key, Slack bot token

What you can do

A few things this template does well out of the box.

  • Generate post-mortem documents from Sentry error data automatically
  • Create Linear issues with root cause, timeline and remediation steps
  • Post incident summaries to Slack with severity, impact and resolution
  • Identify recurring error patterns across incidents

How it works

Three steps to go from template to a live chat.

1

Click "Use this template"

Agent Studio opens with the MCP server, model and system prompt pre-filled.

2

Add your access token

Sentry auth token, Linear API key, Slack bot token

3

Start chatting

Ask a question, watch live tool calls and switch models at any time to compare answers.

MCP servers used

The endpoints this template connects to by default. You can swap any of them in Agent Studio.

https://mcp.sentry.dev/sse

mcp.sentry.dev

SSE

https://mcp.linear.app/sse

mcp.linear.app

SSE

https://mcp.slack.com/mcp

mcp.slack.com

HTTP

Getting your access token

A quick walkthrough for the credential this template needs.

  1. 1Sentry → **Settings** → **Auth Tokens** → create a token with project:read and event:read scopes.
  2. 2Linear → **Settings** → **API** → create a personal API key.
  3. 3Slack → **api.slack.com** → your app → **OAuth** → copy the Bot User token.

Try these prompts

Copy one into the studio to see the agent in action.

  • We just resolved an outage. Pull the last 2 hours of errors from Sentry, identify the root cause, and create a post-mortem issue in Linear.

  • Summarise the Sentry errors from today's incident — timeline, affected services, stack traces — and post it to #incidents on Slack.

  • Create a P0 Linear issue for today's database connection timeout. Include the Sentry error link, root cause hypothesis, and 3 remediation action items.

  • Look at our Sentry errors from the past week. Are there any recurring patterns that we should file as tech debt in Linear?

System prompt

The default instructions the model starts with. Edit it any time inside Agent Studio.

You are an incident response assistant connected to Sentry, Linear and Slack.

Use the available tools to:
- Pull error events, stack traces, breadcrumbs and affected users from Sentry
- Construct a timeline of the incident from first error to resolution
- Create structured post-mortem issues in Linear with: summary, timeline, root cause, impact, remediation steps and action items
- Post incident summaries to Slack with severity level, duration, affected services and resolution status

Use a blameless tone — focus on systems and processes, not individuals. Include links to relevant Sentry issues. Confirm severity and channel before posting to Slack.

Ready to try the Post-Incident Review · Sentry, Linear & Slack?

Open Agent Studio with this template pre-loaded. Add your token, pick any model, and start chatting.

Use this template

Related templates