Skip to main content
Glama

Sentry MCP

Official
by getsentry

セントリーMCP

これは、上流の Sentry API プロバイダーへのミドルウェアとして機能するリモート MCP サーバーのプロトタイプです。

これは、Cloudflare のリモート MCP に向けた取り組みに基づいています。

はじめる

運用環境にデプロイされたサービスにアクセスすると、必要な情報がすべて見つかります。

https://mcp.sentry.dev

貢献したい場合、仕組みを知りたい場合、またはセルフホスト型 Sentry でこれを実行したい場合は、以下に進んでください。

Stdioとリモート

このリポジトリはMCPサービスとしての動作に重点を置いていますが、 stdioトランスポートもサポートしています。これはまだ開発中ですが、セルフホスト型のSentryインストールに対してMCPを実行するための最も簡単な方法です。

stdoioトランスポートを利用するには、必要なスコープを持つSentryでPersonal API Token(PAT)を作成する必要があります。執筆時点では以下のとおりです。

org:read project:read project:write team:read team:write event:read

トランスポートを起動します:

npx @sentry/mcp-server@latest --access-token=sentry-pat --host=sentry.example.com

注: 環境変数を使用することもできます。

SENTRY_AUTH_TOKEN= SENTRY_HOST=

MCP検査官

MCP には、サービスを簡単にテストするためのInspectorが含まれています。

pnpm inspector

MCPサーバーのURL( http://localhost:5173 )を入力し、「接続」をクリックします。これで認証フローが開始されます。

注: 127.0.0.1のインスペクターにアクセスするときに OAuth フローに問題がある場合は、代わりにhttp://localhost:6274にアクセスしてlocalhostを使用してみてください。

地域開発

MCPサーバーの反復テストをローカル開発環境で実行できます。そのためには、Sentryで別のOAuthアプリを作成する必要があります(設定 => API =>アプリケーション)。

  • ホームページURLにはhttp://localhost:8788を指定します。
  • 承認済みリダイレクトURIには、 http://localhost:8788/callbackを指定します。
  • クライアント ID をメモし、クライアント シークレットを生成します。
  • 次のようにして、プロジェクト ルートに.dev.varsファイルを作成します。
SENTRY_CLIENT_ID=your_development_sentry_client_id SENTRY_CLIENT_SECRET=your_development_sentry_client_secret

確認する

サーバーをローカルで実行しhttp://localhost:8788で利用できるようにします。

pnpm dev

ローカルサーバーをテストするには、Inspectorにhttp://localhost:8788/sseと入力し、「接続」をクリックします。プロンプトに従うと、「ツールの一覧」が表示されます。

テスト

基本的な単体テストといくつかの評価の 2 つのテスト スイートが含まれています。

ユニットテストは以下を使用して実行できます。

pnpm test

評価には、いくつかの設定を含む.envファイルが必要です。

OPENAI_API_KEY=

完了したら、次のコマンドを使用して実行できます。

pnpm test

注記

Claude や他の MCP クライアントの使用

Claude を使用してリモート MCP サーバーに接続すると、エラーメッセージが表示される場合があります。これは、Claude Desktop がまだリモート MCP サーバーをサポートしていないため、正しく動作しないことがあるためです。MCP サーバーに接続されているかどうかを確認するには、Claude インターフェースの右下にある🔨 アイコンにマウスを移動してください。利用可能なツールが表示されます。

カーソルとその他のMCPクライアントの使用

Cursor を MCP サーバーに接続するには、 Type :「コマンド」を選択し、 Commandフィールドでコマンド フィールドと引数フィールドを 1 つに結合します (例npx mcp-remote@latest https://<your-worker-name>.<your-subdomain>.workers.dev/sse )。

Cursor は HTTP+SSE サーバーをサポートしていますが、認証はサポートしていないため、 mcp-remote (HTTP サーバーではなく STDIO サーバー) を使用する必要があります。

クライアントの構成ファイルを開き、Claude セットアップに使用したのと同じ JSON を追加して、MCP クライアントを再起動すると、MCP サーバーを Windsurf などの他の MCP クライアントに接続できます。

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Sentry API へのミドルウェアとして機能するリモート モデル コンテキスト プロトコル サーバー。Claude などの AI アシスタントが自然言語インターフェースを通じて Sentry のデータと機能にアクセスできるようにします。

  1. はじめる
    1. Stdioとリモート
    2. MCP検査官
  2. 地域開発
    1. 確認する
    2. テスト
  3. 注記
    1. Claude や他の MCP クライアントの使用
    2. カーソルとその他のMCPクライアントの使用

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    A Model Context Protocol server that retrieves and analyzes Sentry.io issues, allowing users to inspect error reports, stacktraces, and debugging information from their Sentry account.
    Last updated -
    16
    Python
    • Apple
  • A
    security
    F
    license
    A
    quality
    A Model Context Protocol server that enables AI assistants to interact with Sentry for error tracking and monitoring, allowing retrieval and analysis of error data, project management, and performance monitoring through the Sentry API.
    Last updated -
    10
    3
    TypeScript
  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol server that enables AI assistants like Claude to interact directly with Home Assistant, allowing them to query device states, control smart home entities, and perform automation tasks.
    Last updated -
    104
    Python
    MIT License
    • Apple
    • Linux
  • -
    security
    -
    license
    -
    quality
    A TypeScript implementation of a Model Context Protocol server that connects to Sentry error tracking service, allowing AI models to query and analyze error reports and events.
    Last updated -
    TypeScript

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/getsentry/sentry-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server