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 に向けた取り組みに基づいています。
はじめる
運用環境にデプロイされたサービスにアクセスすると、必要な情報がすべて見つかります。
貢献したい場合、仕組みを知りたい場合、またはセルフホスト型 Sentry でこれを実行したい場合は、以下に進んでください。
Stdioとリモート
このリポジトリはMCPサービスとしての動作に重点を置いていますが、 stdio
トランスポートもサポートしています。これはまだ開発中ですが、セルフホスト型のSentryインストールに対してMCPを実行するための最も簡単な方法です。
stdoio
トランスポートを利用するには、必要なスコープを持つSentryでPersonal API Token(PAT)を作成する必要があります。執筆時点では以下のとおりです。
トランスポートを起動します:
注: 環境変数を使用することもできます。
MCP検査官
MCP には、サービスを簡単にテストするためのInspectorが含まれています。
https://[domain].workers.dev/sse
(TODO) と入力し、「接続」をクリックします。認証フローが完了すると、ツールが動作しているのが確認できます。
Claude Desktop からリモート MCP サーバーにアクセスする
Claude Desktopを開き、「設定」に移動し、 ⌘ + ,
(カンマ) を押して「開発」>「設定の編集」に進みます。これにより、ClaudeがアクセスできるMCPサーバーを制御する設定ファイルが開きます。
以下の設定に置き換えてください。Claude Desktopを再起動すると、ブラウザウィンドウが開き、OAuthログインページが表示されます。認証フローを完了して、ClaudeにMCPサーバーへのアクセスを許可してください。アクセスを許可すると、ツールが使用できるようになります。
ツール(🔨の下)がインターフェースに表示されたら、クロードにそれらを使うように頼むことができます。例えば、「数学ツールを使って23と19を足し算できますか?」と尋ねます。クロードはツールを起動し、MCPサーバーによって生成された結果を表示する必要があります。
地域開発
MCPサーバーの反復テストをローカル開発環境で実行できます。そのためには、Sentryで別のOAuthアプリを作成する必要があります(設定 => API =>アプリケーション)。
- ホームページURLには
http://localhost:8788
を指定します。 - 承認済みリダイレクトURIには、
http://localhost:8788/callback
を指定します。 - クライアント ID をメモし、クライアント シークレットを生成します。
- 次のようにして、プロジェクト ルートに
.dev.vars
ファイルを作成します。
確認する
サーバーをローカルで実行しhttp://localhost:8788
で利用できるようにします。
ローカルサーバーをテストするには、Inspectorにhttp://localhost:8788/sse
と入力し、「接続」をクリックします。プロンプトに従うと、「ツールの一覧」が表示されます。
テスト
基本的な単体テストといくつかの評価の 2 つのテスト スイートが含まれています。
ユニットテストは以下を使用して実行できます。
評価には、いくつかの設定を含む.env
ファイルが必要です。
完了したら、次のコマンドを使用して実行できます。
注記
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.
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.
Tools
Sentry API へのミドルウェアとして機能するリモート モデル コンテキスト プロトコル サーバー。Claude などの AI アシスタントが自然言語インターフェースを通じて Sentry のデータと機能にアクセスできるようにします。
Related MCP Servers
- -securityAlicense-qualityA 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 ago9PythonMIT License
- AsecurityFlicenseAqualityA 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 ago103TypeScript
- AsecurityAlicenseAqualityA 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 ago254JavaScriptMIT License
- -securityAlicense-qualityA 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 agoJavaScriptApache 2.0