• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLKnowledge Workmonitoring

signoz-mcp-setup

プラグイン
SigNoz
引数
<client, SigNoz Cloud region, MCP URL, or self-hosted /mcp URL>
ソース
GitHub で見る ↗
説明

SigNoz MCP サーバーの設定を初期化または修復します。Claude Code、Codex、Cursor、VS Code/GitHub Copilot、Claude Desktop、Gemini CLI、Devin CLI、Grok Build、Windsurf、Zed、Antigravity CLI、OpenCode、またはその他の MCP クライアント(外部ツールと連携するためのプロトコル)に対応しています。 次のような場合に使用: - `signoz_*` ツールが利用できない状態 - SigNoz のドキュメント、クエリ、ダッシュボード、アラート、またはビュー(監視画面)のワークフローを使う前 - ユーザーが「SigNoz MCP をセットアップしてほしい」「SigNoz プラグイン(拡張機能)を設定してほしい」「リージョン(地域)が間違っている」「SigNoz のリージョンを変更したい」「MCP 認証に失敗した」と言った場合 - SigNoz Cloud または自社運用の MCP エンドポイント(接続先)への接続をユーザーが求めている場合(プラグインについて明確に触れていない場合でも対象)

原文を表示

Initialize or repair SigNoz MCP server configuration for Claude Code, Codex, Cursor, VS Code/GitHub Copilot, Claude Desktop, Gemini CLI, Devin CLI, Grok Build, Windsurf, Zed, Antigravity CLI, OpenCode, or another MCP client. Use this skill before any SigNoz docs, query, dashboard, alert, or view workflow when `signoz_*` tools are unavailable, or when the user says "setup SigNoz MCP", "configure SigNoz plugin", "wrong region", "change SigNoz region", "MCP auth failed", or asks to connect SigNoz Cloud or a self-hosted MCP endpoint, even if they do not mention the plugin.

ユースケース
  • signoz_* ツールが利用できないとき
  • SigNoz のドキュメントやダッシュボードを使う前
  • SigNoz MCP をセットアップするよう求められたとき
  • MCP 認証に失敗したとき
  • SigNoz のリージョンを変更したいとき
本文(日本語訳)

SigNoz MCP セットアップ

このプラグインに付属する SigNoz MCP(マルチプレックスコネクション・プロトコル、複数のツール接続を管理する仕組み)サーバーの登録を初期化または修復します。目指す状態は、機能する signoz MCP サーバーが 1 つ存在することです。ユーザーが明確に別の設定を求めない限り、重複するサーバーを作成しないでください。

参照ドキュメント

状態を確認したり、ユーザー入力を処理したり、登録ファイルを編集したりする前に、references/mcp-settings.md をお読みください。このドキュメントには、サーバーの状態確認方法、登録ファイルの場所、編集ルール、および地域マッピングが記載されています。

ユーザーが付属の Claude Code、Codex、Cursor プラグイン以外のクライアントを指定した場合、ネイティブクライアント設定がすでに存在する場合、または自己ホスト型の stdio/ローカルバイナリセットアップが要求された場合は、references/client-configs.md をお読みください。

設定手順

ステップ 1: クライアントを特定する

状態確認の前にこれを実施してください。この判定が、状態をどこから確認できるかを決めます。

$ARGUMENTS またはユーザーの最新メッセージに記載されているクライアント名を使用してください。クライアント名が記載されていない場合は、アクティブな環境が明らかな場合のみ推測します(ディスク上のファイルが存在するかではなく、どのエージェント CLI またはエディターがこのスキルを実行しているかで判定):

  • Claude Code、Codex、または Cursor プラグインがインストール済み: 付属のプラグイン登録ファイルを使用してください。
  • VS Code / GitHub Copilot、Claude Desktop、Gemini CLI、Devin CLI、Windsurf、Zed、Antigravity CLI、または OpenCode: client-configs.md の対応するネイティブクライアントレシピを使用してください。
  • 不明なクライアントまたはサポートされていないクライアント: 汎用 HTTP MCP レシピを使用し、SigNoz MCP Server ドキュメントでユーザーのクライアント固有の設定方法を確認するよう指示してください。

ネイティブクライアント設定を編集する必要があり、クライアントがまだ特定できない場合は、ユーザーにどのクライアントを設定したいのか尋ねてください。

ステップ 2: 状態を確認する

ステップ 1 で特定したクライアントをスコープとして、参照フローを使用して SigNoz MCP サーバーの状態を静かに判定します:

signoz_list_services(timeRange: "1h", limit: 1) でプローブします。この確認にはドキュメント検索ツール(signoz_search_docs または signoz_fetch_doc)を使用しないでください。

  • Claude Code、Codex、または Cursor 付属プラグインインストールの場合は、参照フローの登録ファイルフォールバックが適用されます。
  • その他のすべてのクライアント(Devin CLI を含む)の場合は、.signoz_claude_mcp.json、.mcp.json、または .signoz_cursor_mcp.json を読み取ったり検索したりしないでください。これらは別のクライアントのプラグイン配布用の付属ファイルであり、ファイル検索ツールが見つけた場合でも(たとえば、このスキルが agent-skills ソースリポジトリのローカルチェックアウトからリンクされており、3 つのファイルがすべて並んで配布されている場合)、ここでは関係ありません。代わりに、client-configs.md に従ってそのクライアント固有のネイティブ設定場所を確認してください。

状態の結果:

  • 動作中 — signoz_list_services が成功しました。ユーザーの元の SigNoz リクエストを続行してください。
  • 未セットアップ — ステップ 3 を実行してください。
  • 設定済みだが動作していない — ユーザーが新しい地域または MCP URL を提供した場合は、ステップ 3 を実行してください。そうでない場合は、SigNoz MCP サーバーが設定されているが接続されていないことを伝え、修復するために SigNoz Cloud の地域または MCP URL を求めてください。エンドポイントがすでに正しいと思われる場合は、ステップ 5 のクライアント認証ステップを完了するよう指示してください。

MCP が利用できない場合は、SigNoz データへの生 HTTP 呼び出しにフォールバックしないでください。MCP サーバーは、このプラグインのライブ SigNoz ワークフロー用のサポートされた API インターフェースです。

ワークフロースキルは現在の SigNoz MCP サーバーの仕様を想定しています。SigNoz ツールがスキル指示に矛盾するスキーマまたはパラメーターエラーを報告する場合は、代替の生 HTTP 呼び出しを発明したりレガシーパラメーターを教えたりするのではなく、MCP サーバー接続を修復または更新してください。

ステップ 3: エンドポイントを解決する

$ARGUMENTS またはユーザーの最新メッセージに地域または URL がすでに含まれている場合はそれを使用してください。そうでない場合は、以下のいずれかを求めてください:

  • SigNoz Cloud 地域: us、us2、eu、eu2、in、in2、またはより新しい地域コード
  • SigNoz Cloud MCP URL(例: https://mcp.us.signoz.cloud/mcp)
  • 自己ホスト型 HTTP MCP URL(例: http://localhost:8000/mcp)

mcp-settings.md を使用して応答をマッピングしてください。ユーザーが https://your-instance.signoz.cloud などの SigNoz ワークスペース URL のみを提供する場合は、それから地域を推測しないでください。SigNoz で Settings → Ingestion を確認し、地域を提供するよう求めてください。

SigNoz Cloud セットアップのために API キーを求めないでください。OAuth は、ホストされた MCP URL が設定された後に、インスタンス URL とサービスアカウント API キーを求めます。自己ホスト型 SigNoz の場合は、ユーザーが /mcp エンドポイントを提供したときに HTTP モードを優先してください。stdio/ローカルバイナリモードの場合は、ユーザーが明確にそのモードを設定するよう要求した場合のみ、バイナリパス、SigNoz URL、API キーを収集してください。インタラクティブ OAuth を完了できないクライアントの場合は、ユーザーが要求するときまたはクライアントが必要とするときのみ、client-configs.md のヘッダーベースフォールバックを使用してください。

ステップ 4: エンドポイントを適用する

付属の Claude Code、Codex、Cursor プラグインインストールの場合は、参照編集ルールを使用して登録ファイルを編集します:

  1. Claude Code の場合の .signoz_claude_mcp.json では、解決された MCP エンドポイントで url 値のみを置き換えます。既存のサーバーキーと type を保持してください: このファイルはサーバーキー mcp で配布されており、これを変更するとツール名前空間(plugin:signoz:mcp)が変わり、再認証が強制されます。
  2. Codex の場合の .mcp.json では、解決された MCP エンドポイントで url 値のみを置き換え、既存の signoz サーバーキーを保持してください。
  3. Cursor の場合の .signoz_cursor_mcp.json では、解決された MCP エンドポイントで url 値のみを置き換え、既存の signoz サーバーキーを保持してください。
  4. 関連のない MCP サーバーと設定を保持してください。

Claude Code の対象形式(mcp サーバーキーと type を保持):

{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.us.signoz.cloud/mcp"
    }
  }
}

Codex と Cursor の対象形式(signoz サーバーキーを保持):

{
  "mcpServers": {
    "signoz": {
      "url": "https://mcp.us.signoz.cloud/mcp"
    }
  }
}

付属ファイルのいずれかが古いバージョンの SIGNOZ_MCP_URL ラッパーを使用している場合は、解決された具体的な URL に置き換えてください。

付属登録ファイルはインストール済みプラグイン内に存在します。プラグイン更新はそれらをプレースホルダーにリセットできます。その場合は、このセットアップスキルを再実行してください。より永続的なネイティブクライアント設定については、client-configs.md の関連レシピを使用してください。

Codex の場合、ユーザーがエンドポイントがリセットされた、何度もリセットされ続ける、または永続的/耐久的なセットアップを要求する場合は、エンドポイントを解決した後、ネイティブ Codex MCP サーバーエントリも作成または更新してください:

codex mcp add signoz --url <resolved-mcp-url>

これにより、Codex 設定の ユーザーレベル [mcp_servers.signoz] エントリが書き込まれ、プラグインキャッシュ更新後も存続します。TOML を直接編集する場合は、関連のない設定を保持し、mcp_servers.signoz の url のみを設定してください。

ネイティブクライアント設定の場合は、client-configs.md を使用してください:

  • ユーザーがそのクライアントを指定したか、対象ファイルがタスク用のアクティブ設定であることが明らかな場合のみ、既存のネイティブクライアント設定を編集します。
  • ユーザーがそのクライアントを設定するよう要求する場合のみ、新しいネイティブクライアント設定を作成します。
  • サービスアカウント API キー、ベアラートークン、またはヘッダーベース認証値を追跡対象のプロジェクトファイルに書き込まないでください。SigNoz Cloud の場合は クライアント OAuth、ユーザーレベル設定、環境変数参照、またはユーザーがローカルで実行できる短いコマンドを優先してください。
  • 関連のない MCP サーバーと既存のクライアント設定を保持してください。
  • ネイティブクライアント設定でサーバー名 signoz を保持してください(付属の Claude Code プラグインファイルのみが mcp キーを使用します。これを変更しないでください)。

認証とロール診断

バックエンド RBAC(ロールベースアクセス制御)は、API キーのユーザーロールから MCP 障害を分類します: 読み取りには少なくとも閲覧者権限が必要です。アラート/ダッシュボード書き込みにはエディターまたは管理者権限が必要です。通知チャネル管理と API キー作成には管理者権限が必要です。401 / UNAUTHORIZED は、認証情報が不足、無効、または期限切れであることを意味します: まず設定/存在を確認してから、必要に応じて再認証または再発行してください。403 / PERMISSION_DENIED は、認証情報は有効だが権限が不足していることを意味します。十分な権限を持つユーザーに対応させるか、専用の最小ロールキーを発行してください。昇格されたキーをチャットまたは追跡対象設定に貼り付けないでください。

ステップ 5: ユーザーに完了方法を伝える

SigNoz MCP エンドポイントが設定されたことをユーザーに伝え、クライアント固有の認証ステップを提供してください:

  • Cursor — ウィンドウをリロードし、プロンプトが表示されたら Tools & MCP で signoz MCP サーバーを認証します。
  • VS Code / GitHub Copilot — Copilot Chat をエージェントモードで開き、プロンプトが表示されたら signoz サーバーを承認してから、認証フローを完了します。
  • Codex — サーバーが表示されない場合は Codex を再起動します。SigNoz Cloud の場合は、codex mcp login signoz を実行して OAuth を完了し、/mcp で検証します。自己ホスト型 HTTP エンドポイント(サーバーが OAUTH_ENABLED=true で実行されていない限り OAuth なし)の場合は、ログインステップをス
原文(English)を表示

SigNoz MCP Setup

Initialize or repair the SigNoz MCP server registration shipped with this plugin. The target state is one working signoz MCP server. Do not create a duplicate server unless the user explicitly asks for a separate configuration.

Shared reference

Read references/mcp-settings.md before checking state, mapping user input, or editing registration files. It contains the server-state check, registration file locations, editing rules, and region mapping used by this procedure.

Read references/client-configs.md when the user names a client other than the bundled Claude Code, Codex, or Cursor plugin path, when a native client config already exists, or when self-hosted stdio/local-binary setup is requested.

Configuration procedure

Step 1: Identify the client

Determine this before checking state — it decides where state is allowed to be checked from.

Use the client named in $ARGUMENTS or the user's latest message. If no client is named, infer it only when the active environment is obvious (which agent CLI or editor is running this skill, not just what files happen to exist on disk):

  • Claude Code, Codex, or Cursor plugin install: use the bundled plugin registration files.
  • Grok Build: use the Grok Build CLI recipe in client-configs.md. It ships a bundled registration file, but its endpoint is configured through [mcp_servers.signoz], not by editing that file.
  • VS Code / GitHub Copilot, Claude Desktop, Gemini CLI, Devin CLI, Windsurf, Zed, Antigravity CLI, or OpenCode: use the matching native client recipe in client-configs.md.
  • Unknown or unsupported client: use the generic HTTP MCP recipe and point the user to the SigNoz MCP Server docs for their client's exact config surface.

If you need to edit a native client config and the client is still ambiguous, ask which client they want to configure.

Step 2: Check state

Silently determine the SigNoz MCP server state using the reference flow, scoped to the client identified in Step 1:

Probe with signoz_list_services(timeRange: "1h", limit: 1). Do not use docs tools (signoz_search_docs or signoz_fetch_doc) for this check.

  • For a Claude Code, Codex, or Cursor bundled plugin install, the reference flow's registration-file fallback applies.
  • For Grok Build, read [mcp_servers.signoz] from Grok's config scopes (or run grok mcp list) instead. Its bundled .signoz_grok_mcp.json ships a working default and is overridden by config, so it never reports the live state.
  • For every other client — including Devin CLI — do not read or search for .signoz_claude_mcp.json, .mcp.json, or .signoz_cursor_mcp.json. Those are bundled files for a different client's plugin distribution and are irrelevant here even if a file-search tool happens to find them (for example when this skill is linked from a local checkout of the agent-skills source repo itself, which ships all three files side by side). Check that client's own native config location instead, per client-configs.md.

State outcomes:

  • working — signoz_list_services succeeded; continue with the user's original SigNoz request.
  • not-setup — run Step 3.
  • configured-but-not-working — if the user provided a new region or MCP URL, run Step 3. Otherwise tell them the SigNoz MCP server is configured but not connected, then ask for the SigNoz Cloud region or MCP URL to repair it. If they believe the endpoint is already correct, tell them to complete the client authentication step in Step 5.

Do not fall back to raw HTTP calls for SigNoz data when MCP is unavailable. The MCP server is the supported API surface for this plugin's live SigNoz workflows.

The workflow skills assume the current SigNoz MCP server contract. If a SigNoz tool reports schema or parameter errors that contradict the skill instructions, repair or update the MCP server connection instead of inventing alternate raw HTTP calls or teaching legacy parameters.

Step 3: Resolve the endpoint

Use $ARGUMENTS or the user's latest message if it already contains a region or URL. Otherwise ask for one of:

  • SigNoz Cloud region: us, us2, eu, eu2, in, in2, or a newer region code
  • SigNoz Cloud MCP URL, such as https://mcp.us.signoz.cloud/mcp
  • Self-hosted HTTP MCP URL, such as http://localhost:8000/mcp

Map the response using mcp-settings.md. If the user gives only a SigNoz workspace URL such as https://your-instance.signoz.cloud, do not guess the region from it. Ask them to check Settings -> Ingestion in SigNoz and provide the region.

Do not ask for an API key for SigNoz Cloud setup. OAuth asks for the instance URL and service account API key after the hosted MCP URL is configured. For self-hosted SigNoz, prefer HTTP mode when the user gives an /mcp endpoint. For stdio/local-binary mode, collect the binary path, SigNoz URL, and API key only if the user explicitly asks you to configure that mode. For clients that cannot complete interactive OAuth, use the header-based fallback in client-configs.md only when the user asks for it or the client requires it.

Step 4: Apply the endpoint

For bundled Claude Code, Codex, and Cursor plugin installs, edit the registration files using the reference editing rules:

  1. In .signoz_claude_mcp.json for Claude Code, replace only the url value with the resolved MCP endpoint. Preserve the existing server key and type: this file ships the server key mcp, and renaming it changes the tool namespace (plugin:signoz:mcp) and forces re-authentication.
  2. In .mcp.json for Codex, replace only the url value with the resolved MCP endpoint, preserving the existing signoz server key.
  3. In .signoz_cursor_mcp.json for Cursor, replace only the url value with the resolved MCP endpoint, preserving the existing signoz server key.
  4. Preserve unrelated MCP servers and settings.

Claude Code target shape (keep the mcp server key and type):

{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.us.signoz.cloud/mcp"
    }
  }
}

Codex and Cursor target shape (keep the signoz server key):

{
  "mcpServers": {
    "signoz": {
      "url": "https://mcp.us.signoz.cloud/mcp"
    }
  }
}

If either bundled file still uses any SIGNOZ_MCP_URL wrapper from an older version, replace it with the concrete resolved URL.

Bundled registration files live inside the installed plugin. Plugin updates can reset them to the placeholder; if that happens, rerun this setup skill. For a more durable native-client setup, use the relevant recipe in client-configs.md.

For Codex, if the user says the endpoint reset again, keeps resetting, or asks for a durable/persistent setup, also create or update the native Codex MCP server entry after resolving the endpoint:

codex mcp add signoz --url <resolved-mcp-url>

This writes the user-level [mcp_servers.signoz] entry in Codex config and survives plugin cache updates. If editing TOML directly, preserve unrelated config and only set url for mcp_servers.signoz.

For Grok Build, do not edit the bundled .signoz_grok_mcp.json. Write the resolved endpoint to Grok's own config, which replaces the plugin-provided signoz server and survives plugin updates:

grok mcp add signoz -t http <resolved-mcp-url> -s user

Use -s project instead when the user wants the endpoint committed with the repo in ./.grok/config.toml. Re-running the command updates the existing entry rather than adding a second server. If signoz is already defined in more than one scope, update the highest-precedence one (./.grok/config.toml > <repo-root>/.grok/config.toml > ~/.grok/config.toml) — editing a lower one would be silently shadowed. See the Grok Build CLI recipe in client-configs.md.

For native client setup, use client-configs.md:

  • Edit an existing native client config only when the user named that client or the target file is clearly the active config for the task.
  • Create a new native client config only when the user asks for that client to be configured.
  • Never write service account API keys, bearer tokens, or header-based auth values into tracked project files. Prefer client OAuth for SigNoz Cloud, user-level config, environment-variable references, or short commands the user can run locally.
  • Preserve unrelated MCP servers and existing client settings.
  • Keep the server name signoz in native client configs (the bundled Claude Code plugin file is the only one that uses the mcp key — do not rename it).

Auth and role diagnosis

Backend RBAC classifies MCP failures from the API key's user role: reads need at least viewer; alert/dashboard writes need editor or admin; notification-channel management and API-key creation need admin. 401 / UNAUTHORIZED means the credential is missing, invalid, or expired: check configuration/presence first, then reauthenticate or reissue as appropriate. 403 / PERMISSION_DENIED means credentials are valid but under-privileged. Have a sufficiently privileged user act or issue a dedicated minimum-role key; never paste elevated keys into chat or tracked config.

Step 5: Tell the user how to finish

Tell the user that the SigNoz MCP endpoint has been configured, then give the client-specific authentication step:

  • Cursor — reload the window, then authenticate the signoz MCP server in Tools & MCP if prompted.
  • VS Code / GitHub Copilot — open Copilot Chat in Agent mode, approve the signoz server if prompted, then complete the authentication flow.
  • Codex — restart Codex if the server does not appear. For SigNoz Cloud, run codex mcp login signoz to complete OAuth, then verify with /mcp. For a self-hosted HTTP endpoint (no OAuth unless the server runs with OAUTH_ENABLED=true), skip the login step and just verify with /mcp that the already-authenticated signoz server is connected.
  • Claude Code — restart Claude Code if the server does not appear, then run /mcp, select signoz, and complete authentication.
  • Claude Desktop — for SigNoz Cloud or publicly reachable self-hosted HTTP, reconnect the custom connector and complete authentication when prompted. Private-network or localhost endpoints need local stdio because remote connectors originate from Anthropic's cloud. Restart Claude Desktop after a local stdio change so it reloads claude_desktop_config.json; that file is only for command-based registration, not a hosted URL.
  • Grok Build — run /mcps (or press Ctrl+L and open the MCP Servers tab), press r to reload after the config change, then select signoz and press i to complete the OAuth flow in the browser. Self-hosted endpoints need no OAuth unless the server runs with OAUTH_ENABLED=true. Diagnose with grok mcp doctor signoz.
  • Gemini CLI — restart Gemini CLI if needed, then run /mcp auth signoz.
  • Devin CLI — start a new session so the updated .devin/config.json is picked up. For SigNoz Cloud, run devin mcp login signoz to complete OAuth. For a self-hosted or header-based endpoint, no OAuth step is expected.
  • Windsurf — reload Windsurf and complete authentication when prompted.
  • Zed — reload Zed after config changes; self-hosted stdio mode reads the configured environment from the context server entry.
  • Antigravity CLI — type /mcp, select the signoz server, and choose Authenticate to start the OAuth flow (complete it in the browser). Self-hosted endpoints need no OAuth unless the server runs with OAUTH_ENABLED=true. If authentication is stuck, clear cached dynamic auth providers and retry.
  • OpenCode — run opencode mcp auth signoz if authentication does not start automatically, then verify with opencode mcp list.

Keep the response short. Do not expose registration file paths, placeholder values, environment variable names, API keys, tokens, or file contents unless the user explicitly asks for implementation details.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。