Skip to main content
For a more detailed Sentry integration guide, click here.
1

Connect the Sentry MCP

Before creating your automation, Devin needs access to your Sentry data.
  1. Go to Customize > MCPs (Browse marketplace) and search for Sentry
  2. Click Enable and authenticate via OAuth. Review the permissions shown on Sentry’s consent screen before you approve
  3. Click Test tools to verify the connection is working
Once connected, Devin can query your Sentry projects, pull issue details and stack traces, and read breadcrumbs — all from within a session. Learn more about configuring MCP servers.
The Sentry MCP is not read-only. Alongside its retrieval tools, it exposes management tools that can update issue status, assignments, tags, bookmarks, and alerts, and Devin acts with the permissions of the Sentry account you authorize. To limit what Devin can change, authenticate with a dedicated Sentry account whose organization role and team membership cover only the projects this workflow needs.
2

Create the automation

Navigate to Automations in the sidebar and click Create automation.
  • Name: Daily Sentry remediation — payments-api
  • Trigger: Expand Schedule and choose Every day — 6:00 AM (so fix PRs are ready before standup)
  • Connections: Select the Sentry MCP so each run can pull your errors
  • Slack channel: Under Notifications, click Add notification > Post to Slack and select a channel (e.g., #sentry-fixes) so your team gets notified when the run completes and PRs are ready for review
  • Prompt:
3

Seed Knowledge from your codebase and past fixes

Devin writes better fixes when it understands your app’s error patterns. Instead of writing Knowledge entries yourself, ask Devin in any session to investigate your codebase and past fixes, then let it create the Knowledge:These entries are automatically recalled when Devin encounters matching errors during scheduled runs — and the scheduled prompt above tells Devin to update Knowledge based on your PR feedback, so it improves over time.
4

What a typical run produces

Each morning, Devin processes the overnight error queue and opens targeted PRs. Here’s what a real session output looks like:
Each PR includes the Sentry issue link, a description of the root cause, the fix, and a test that would have caught the original error.
5

Tune and iterate

After a week of runs, review what’s working and adjust:Scope the error count. Start with top 5 errors per run. If Devin consistently produces mergeable PRs, increase to 8-10. If fixes need heavy revision, reduce to 3.Filter by project or tag. Narrow the prompt to specific Sentry projects (payments-api, web-frontend) or exclude noisy tags. You can create separate automations per project if error volumes differ.Learn from results. After a couple of weeks, ask Devin to analyze which fixes actually shipped and turn that into Knowledge: