Sentry MCP

Official
by getsentry

Integrations

  • Leverages Cloudflare Workers for deployment of the MCP server, using Durable Objects for persistent state management and KV storage for token management

  • Integrates with GitHub's OAuth services for authentication, enabling secure access to the MCP server through GitHub credentials

  • Acts as a middleware to the upstream Sentry API provider, allowing AI agents to interact with Sentry's monitoring and error tracking capabilities

セントリー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

https://[domain].workers.dev/sse (TODO) と入力し、「接続」をクリックします。認証フローが完了すると、ツールが動作しているのが確認できます。

Claude Desktop からリモート MCP サーバーにアクセスする

Claude Desktopを開き、「設定」に移動し、 ⌘ + , (カンマ) を押して「開発」>「設定の編集」に進みます。これにより、ClaudeがアクセスできるMCPサーバーを制御する設定ファイルが開きます。

以下の設定に置き換えてください。Claude Desktopを再起動すると、ブラウザウィンドウが開き、OAuthログインページが表示されます。認証フローを完了して、ClaudeにMCPサーバーへのアクセスを許可してください。アクセスを許可すると、ツールが使用できるようになります。

{ "mcpServers": { "math": { "command": "npx", "args": [ "mcp-remote", "https://mcp-github-oauth.<your-subdomain>.workers.dev/sse" ] } } }

ツール(🔨の下)がインターフェースに表示されたら、クロードにそれらを使うように頼むことができます。例えば、「数学ツールを使って23と19を足し算できますか?」と尋ねます。クロードはツールを起動し、MCPサーバーによって生成された結果を表示する必要があります。

地域開発

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 https://<your-worker-name>.<your-subdomain>.workers.dev/sse )。

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

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

You must be authenticated.

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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

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

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

Related MCP Servers

  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol server enabling AI agents to access and manipulate ServiceNow data through natural language interactions, allowing users to search for records, update them, and manage scripts.
    Last updated 4 days ago
    9
    Python
    MIT License
  • 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 2 months ago
    10
    3
    TypeScript
  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that enables Claude and other AI assistants to access and update Kintone data through natural language commands, supporting operations like record management, file handling, app administration, and space collaboration.
    Last updated 8 days ago
    25
    4
    JavaScript
    MIT License
    • Apple
  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol server that enables AI assistants like Claude to interact with Zulip workspaces, supporting capabilities such as posting messages, listing channels, sending direct messages, and accessing conversation history.
    Last updated 2 months ago
    JavaScript
    Apache 2.0

View all related MCP servers

Appeared in Searches

ID: dorqx191hb