Skip to main content

Sentry MCP Integration

This article covers how to integrate Sentry with Hatz. This walks through an overview, the steps to connect and the available tools after integrating.

Overview

Sentry is a leading application monitoring and error tracking platform used by developers and engineering teams to detect, diagnose, and resolve software issues in real time. By connecting Sentry to Hatz via its official MCP (Model Context Protocol) server, your AI assistant gains direct access to your Sentry data β€” allowing you to investigate errors, search through issues, analyze trends, and manage projects using natural language, without ever leaving the Hatz interface.

Common use cases include:

  • Asking your AI assistant to summarize unresolved errors from the past week

  • Pasting a Sentry issue link and asking the AI to analyze its root cause

  • Searching for errors introduced after a specific deployment

  • Listing projects and reviewing team assignments

Prerequisites

Before setting up the integration, make sure you have:

  • An active Sentry account (cloud-hosted at sentry.io)

  • Access to your Sentry organization with at least Member-level permissions

  • A Hatz account with access to the Connections section

Note: This integration uses Sentry's official, cloud-hosted MCP server at https://mcp.sentry.dev/mcp.

This integration is configured per user β€” each Hatz user who wants access to Sentry data must complete the setup steps below.

How the Integration Works

Sentry provides an official, cloud-hosted MCP server that allows AI tools to access your Sentry data securely. When you add Sentry as a Custom MCP Server in Hatz, your AI assistant connects to this server using OAuth β€” the same secure login flow you'd use to sign into a third-party app with your Sentry account.

Once connected, Hatz automatically discovers the tools exposed by the Sentry MCP server (such as searching issues, retrieving stack traces, and managing projects). These tools become available to your AI assistant so you can interact with your Sentry data in natural language β€” no manual API queries required.

Integration Process

Connect Sentry and Hatz

Sentry's cloud MCP server uses OAuth for authentication. Follow the below steps to integrate Sentry with Hatz.

  • Login to Hatz, select Workshop at the top and then select Connections on the left menu

  • Find the Sentry integration and select Add and then select Connect Sentry

  • You will be redirected to Sentry to authenticate

  • Select which permissions you want to allow and then select Approve

  • You will be redirected back to Hatz to confirm that Sentry is connected

Tools Available After Integration

Once Sentry is connected, your AI assistant in Hatz will have access to the following capabilities:

Tool

What It Does

sentry_whoami

Identify the authenticated user in Sentry. Use this to get the user's name and email address.

sentry_find_organizations

Find organizations that the user has access to in Sentry. Returns up to 25 results.

sentry_find_teams

Find teams in an organization in Sentry. Useful for viewing teams, finding team slugs, and numeric IDs.

sentry_find_projects

Find projects in Sentry. Returns up to 25 results and can search by name or slug.

sentry_find_releases

Find releases in Sentry. Useful for finding recent releases and determining when a release was deployed to an environment.

sentry_find_dsns

List all Sentry DSNs for a specific project. Use to retrieve a SENTRY_DSN for a project.

sentry_search_issues

Search for grouped issues/problems in Sentry. Returns a list of issues (NOT counts or aggregations).

sentry_search_issue_events

Search and filter events within a specific issue. Automatically constrains results to the specified issue.

sentry_search_events

Search Sentry events and replays. Use for event counts/statistics. Supports datasets: errors, logs, spans, metrics, profiles, replays.

sentry_get_sentry_resource

Fetch a Sentry resource by URL or by type and ID. Supports issues, events, traces, spans, replays, and breadcrumbs.

sentry_get_issue_tag_values

Get tag value distribution for a specific Sentry issue. Useful for understanding how an issue is distributed across different tag values.

sentry_get_event_attachment

Download attachments from a Sentry event. Use to access screenshots, log files, or other attachments.

sentry_get_replay_details

Get high-level information about a specific Sentry replay by URL or replay ID.

sentry_get_profile_details

Inspect a specific Sentry profile in detail. Supports both transaction profiles and continuous profiles.

sentry_analyze_issue_with_seer

Use Seer to analyze production errors and get detailed root cause analysis with specific code fixes.

sentry_update_issue

Update a Sentry issue's status or assignment. Can resolve, reopen, assign, or ignore an issue.

sentry_create_team

Create a new team in Sentry.

sentry_create_project

Create a new project in Sentry. Includes DSN automatically.

sentry_create_dsn

Create an additional DSN for an existing project.

sentry_update_project

Update project settings in Sentry, such as name, slug, platform, and team assignment.

sentry_search_docs

Search Sentry documentation for SDK setup, instrumentation, and configuration guidance.

sentry_get_doc

Fetch the full markdown content of a Sentry documentation page.

Sentry Reference Guide

Below is a link to Sentry's MCP documentation:

Did this answer your question?