> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tembo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Sentry

> Automatic error detection and fix PRs.

<Frame>
  <img src="https://mintcdn.com/test-8862363a/ZNDzs01gTiL6UMVz/images/integrations/sentry.png?fit=max&auto=format&n=ZNDzs01gTiL6UMVz&q=85&s=9b25348525886477403d14fdd2a58ab2" alt="Sentry" width="2560" height="1440" data-path="images/integrations/sentry.png" />
</Frame>

## Features

* Detect errors as they occur in production
* Analyze stack traces, breadcrumbs, and error context
* Open fix PRs automatically
* MCP server for real-time error data access during sessions

## Installation

<Steps>
  <Step title="Connect">
    Go to [Integrations](https://app.tembo.io/integrations) and click **Connect** next to Sentry.
  </Step>

  <Step title="Authorize">
    Authorize Tembo to read error data and receive webhook events.
  </Step>

  <Step title="Map projects">
    Map Sentry projects to the repositories where errors occur. Only mapped projects generate fix PRs.
  </Step>
</Steps>

## Usage

1. Sentry captures an error and sends a webhook to Tembo
2. Tembo retrieves the full error context (stack traces, breadcrumbs, environment)
3. Tembo analyzes the codebase and opens a fix PR
4. Use the [feedback loop](/features/feedback-loop) to iterate

## Agents

See [Agents](/features/agents) for available Sentry event triggers.

## Advanced

<AccordionGroup>
  <Accordion title="MCP server">
    When connected, a Sentry MCP server is automatically available to agents. They can query error data, retrieve stack traces, and analyze trends in real-time.
  </Accordion>

  <Accordion title="Errors not triggering fixes">
    Check project mapping on the Integrations page. Ensure Sentry captures sufficient stack trace info. Tembo deduplicates fixes for already-addressed errors.
  </Accordion>

  <Accordion title="Project mapping issues">
    Use the sync button to refresh projects. Verify Tembo has access and the Sentry organization is connected.
  </Accordion>
</AccordionGroup>
