Overview
Sentry is an official MCP integration available in the MCP Marketplace. It uses OAuth authentication, giving Devin access to your Sentry projects so it can query issue details, stack traces, event breadcrumbs, and more. Once connected, you can set up automated error triage through webhooks or schedule recurring remediation sessions that process Sentry errors in batch.Enable the Sentry MCP
Complete the OAuth flow
Click Enable and authenticate with the Sentry account that has access to your projects. This grants Devin read access to your Sentry issues, events, and stack traces.
Capabilities
Once the Sentry MCP is enabled, Devin can perform the following actions within any session:| Capability | Description |
|---|---|
| Query issue details | View issue metadata, status, assignment, and event counts |
| Pull full stack traces | Access complete stack traces for any event |
| Read event breadcrumbs | View user actions and system events leading up to an error |
| Inspect release tags | Check which release introduced or resolved an issue |
| Update issue status | Mark issues as resolved, ignored, or assign to team members |
| Manage assignments and tags | Update issue assignments, tags, and bookmarks |
| Configure alerts | View and manage alert rules and notification settings |
Auto-Triage Pipeline (Webhook-driven)
You can wire Sentry alerts directly to Devin so that new production errors are triaged automatically. This uses a Sentry Internal Integration to deliver webhooks to a bridge service that calls the Devin API.Create a Sentry Internal Integration
In your Sentry dashboard, go to Settings > Developer Settings > Custom Integrations and click Create New Integration > Internal Integration.Configure it:
- Name:
Devin Auto-Triage - Webhook URL: The endpoint for your bridge service (e.g.,
https://your-domain.com/sentry-webhook) - Alert Rule Action: Toggle on — this makes the integration available as an action in alert rules
- Permissions: Read access to Issue & Event and Project
Create an alert rule
Go to Alerts > Create Alert Rule > Issue Alert for your project:
- When: A new issue is created
- If: The issue has more than 50 events in 1 hour (adjust to your traffic)
- Then: Send a notification via Devin Auto-Triage
Deploy a webhook handler
Build a small handler that receives Sentry’s alert payload and starts a Devin session. Create a service user in Settings > Service Users with Deploy this anywhere that can receive HTTPS traffic — a Cloudflare Worker, AWS Lambda, or a small VPS. Point your Sentry Internal Integration’s webhook URL to it.
ManageOrgSessions permission (add ViewOrgSessions too if you want to list or filter sessions via the API). Store the API token as DEVIN_API_KEY, your organization ID as DEVIN_ORG_ID, and your Sentry Internal Integration’s Client Secret as SENTRY_CLIENT_SECRET in your handler’s environment.Test the pipeline
Trigger a test alert in Sentry (or lower your threshold temporarily), then check app.devin.ai for a new session tagged
sentry-auto-triage.The code above tags each session with
sentry-auto-triage and the Sentry project name. This lets you filter these sessions in the Devin dashboard and pull them via the API using the tags query parameter. Listing sessions requires the ViewOrgSessions permission on your service user — see the API overview for the full permissions table.Scheduled Batch Remediation
Instead of reacting to individual alerts, you can schedule a recurring Devin session that pulls unresolved Sentry errors in batch and spawns fix sessions for each one.Create a schedule
Go to Settings > Schedules and click Create schedule.
- Name:
Daily Sentry remediation - Frequency: Daily at 6:00 AM (so fix PRs are ready before standup)
- Agent: Devin — this lets Devin spawn a separate session for each error, so fixes run in parallel
- Prompt:
Review and iterate
After a week of runs, adjust the scope:
- Increase or decrease the error count based on how many fixes are mergeable
- Filter by project or tag to focus on specific areas of your codebase
- Add Knowledge about your error-handling conventions so Devin’s fixes match your team’s patterns
