プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説 ログイン

Kubernetes Troubleshoot

作者:NanaGyamfiPrempeh30バージョン 1.0.0i★ 0iパソコンで動くリポジトリ ↗
レジストリ名io.github.NanaGyamfiPrempeh30/k8s-troubleshoot-mcp

インストール方法

できること

Read-only Kubernetes diagnostics: pods, logs, events, workloads, services, PVCs and nodes.

作者による原文

  • 接続方法 パソコンで動く
  • アカウントまたはキー キー不要 · 設定 2 件の入力が必要(KUBECONFIG, ALLOWED_NAMESPACES)
  • カテゴリ 開発者ツール

一緒に使える

この種の作業を AI に教える Skill。これと一緒に使えます

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

作者:morluto★ 468,7331 個の skill

Skill · 手順書

andrej-karpathy-skills

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

作者:multica-ai★ 234,3321 個の skill

Skill · 手順書ライセンス記載なし

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

作者:Graphify-Labs★ 150,2871 個の skill

Skill · 手順書

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気0/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ7/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア7/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

チェック 3/3 合格 · あなたのパソコンで動きます

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

設定を 2 項目入力 (KUBECONFIG, ALLOWED_NAMESPACES) · 先にパソコンへ Docker を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

  1. Docker を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    docker --version
    • バージョン番号(例 Docker version …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です

    Docker のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version

    一度入れれば、Docker を使うすべてのツールで使えます

  2. 設定を 2 項目入力

    これはプログラムの設定でキーではありません。登録は不要で、作者の説明どおりに入力します。

    • KUBECONFIG コンテナ内の kubeconfig ファイルのパス。マウント先と一致している必要があります。/.kube/config へのフォールバックやクラスター内設定はありません。ファイルが存在しない、読み取れない、または形式が不正な場合は起動に失敗します。
      英語の原文を見るPath to the kubeconfig inside the container. Must match the mount destination. There is no fallback to ~/.kube/config and no in-cluster config: a missing, unreadable or malformed file is a startup fa…
      · 初期値 /kubeconfig
    • ALLOWED_NAMESPACES サーバーが読み取れる名前空間をカンマ区切りで指定します。例: staging,production。ワイルドカード( と all)は起動時に拒否され、kube-system と kube-public は指定されていても除外されます。多層防御の措置です。
      英語の原文を見るComma-separated namespaces the server may read, e.g. staging,production. Wildcards (* and all) are rejected at startup, and kube-system and kube-public are stripped even if listed. This is defense-in…

    説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

  3. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  4. この設定を貼り付けて保存

    コマンドを確認中 · 確認が通るとコピーボタンが出ます

  5. Claude を終了してもう一度開く

  6. 試してみる

    Kubernetes Troubleshoot を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Kubernetes Troubleshoot を使っていると言うか、回答に Kubernetes Troubleshoot のツール名が出れば接続成功です

追加の設定 3 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • LOG_LEVEL DEBUG、INFO、WARNING、ERROR のいずれか。すべてのログは stderr に出力され、stdout は JSON-RPC ストリーム専用です。
    英語の原文を見るDEBUG, INFO, WARNING or ERROR. All logging goes to stderr; stdout carries the JSON-RPC stream exclusively.
    · 初期値 INFO
  • API_TIMEOUT_SECONDS Kubernetes API リクエストのタイムアウト。正の整数である必要があります。
    英語の原文を見るKubernetes API request timeout. Must be a positive integer.
    · 初期値 30
  • MAX_LOG_LINES get_pod_logs 呼び出し1回で返される最大ログ行数。正の整数である必要があり、警告付きで上限 1000 に制限されます。
    英語の原文を見るMaximum log lines any single get_pod_logs call may return. Must be a positive integer; clamped to a hard ceiling of 1000 with a warning.
    · 初期値 200

説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ Kubernetes Troubleshoot につなげません

Kubernetes Troubleshoot はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · Kubernetes Troubleshoot につなげるアプリを使う

  • 設定を 2 項目入力 (KUBECONFIG, ALLOWED_NAMESPACES) · 先にパソコンへ Docker を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 設定を 2 項目入力 (KUBECONFIG, ALLOWED_NAMESPACES) · 先にパソコンへ Docker を入れてください(1 回だけ)
  • 設定を 2 項目入力 (KUBECONFIG, ALLOWED_NAMESPACES) · 先にパソコンへ Docker を入れてください(1 回だけ)
  • 設定を 2 項目入力 (KUBECONFIG, ALLOWED_NAMESPACES) · 先にパソコンへ Docker を入れてください(1 回だけ)

B · 開発者ツール の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

設定を 2 項目入力 (KUBECONFIG, ALLOWED_NAMESPACES) · 先にパソコンへ Docker を入れてください(1 回だけ)

  1. Docker を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    docker --version
    • バージョン番号(例 Docker version …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です

    Docker のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version

    一度入れれば、Docker を使うすべてのツールで使えます

  2. 設定を 2 項目入力

    これはプログラムの設定でキーではありません。登録は不要で、作者の説明どおりに入力します。

    • KUBECONFIG コンテナ内の kubeconfig ファイルのパス。マウント先と一致している必要があります。/.kube/config へのフォールバックやクラスター内設定はありません。ファイルが存在しない、読み取れない、または形式が不正な場合は起動に失敗します。
      英語の原文を見るPath to the kubeconfig inside the container. Must match the mount destination. There is no fallback to ~/.kube/config and no in-cluster config: a missing, unreadable or malformed file is a startup fa…
      · 初期値 /kubeconfig
    • ALLOWED_NAMESPACES サーバーが読み取れる名前空間をカンマ区切りで指定します。例: staging,production。ワイルドカード( と all)は起動時に拒否され、kube-system と kube-public は指定されていても除外されます。多層防御の措置です。
      英語の原文を見るComma-separated namespaces the server may read, e.g. staging,production. Wildcards (* and all) are rejected at startup, and kube-system and kube-public are stripped even if listed. This is defense-in…

    説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

  3. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  4. このコマンドを貼り付けて Enter

    コマンドを確認中 · 確認が通るとコピーボタンが出ます

  5. Claude Code で /mcp と入力

    Kubernetes Troubleshoot が一覧にあり、接続済みと表示されれば OK です

  6. 試してみる

    Kubernetes Troubleshoot を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Kubernetes Troubleshoot を使っていると言うか、回答に Kubernetes Troubleshoot のツール名が出れば接続成功です

追加の設定 3 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • LOG_LEVEL DEBUG、INFO、WARNING、ERROR のいずれか。すべてのログは stderr に出力され、stdout は JSON-RPC ストリーム専用です。
    英語の原文を見るDEBUG, INFO, WARNING or ERROR. All logging goes to stderr; stdout carries the JSON-RPC stream exclusively.
    · 初期値 INFO
  • API_TIMEOUT_SECONDS Kubernetes API リクエストのタイムアウト。正の整数である必要があります。
    英語の原文を見るKubernetes API request timeout. Must be a positive integer.
    · 初期値 30
  • MAX_LOG_LINES get_pod_logs 呼び出し1回で返される最大ログ行数。正の整数である必要があり、警告付きで上限 1000 に制限されます。
    英語の原文を見るMaximum log lines any single get_pod_logs call may return. Must be a positive integer; clamped to a hard ceiling of 1000 with a warning.
    · 初期値 200

説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

設定を 2 項目入力 (KUBECONFIG, ALLOWED_NAMESPACES) · 先にパソコンへ Docker を入れてください(1 回だけ)

  1. Docker を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    docker --version
    • バージョン番号(例 Docker version …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です

    Docker のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version

    一度入れれば、Docker を使うすべてのツールで使えます

  2. 設定を 2 項目入力

    これはプログラムの設定でキーではありません。登録は不要で、作者の説明どおりに入力します。

    • KUBECONFIG コンテナ内の kubeconfig ファイルのパス。マウント先と一致している必要があります。/.kube/config へのフォールバックやクラスター内設定はありません。ファイルが存在しない、読み取れない、または形式が不正な場合は起動に失敗します。
      英語の原文を見るPath to the kubeconfig inside the container. Must match the mount destination. There is no fallback to ~/.kube/config and no in-cluster config: a missing, unreadable or malformed file is a startup fa…
      · 初期値 /kubeconfig
    • ALLOWED_NAMESPACES サーバーが読み取れる名前空間をカンマ区切りで指定します。例: staging,production。ワイルドカード( と all)は起動時に拒否され、kube-system と kube-public は指定されていても除外されます。多層防御の措置です。
      英語の原文を見るComma-separated namespaces the server may read, e.g. staging,production. Wildcards (* and all) are rejected at startup, and kube-system and kube-public are stripped even if listed. This is defense-in…

    説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

  3. このボタンで Cursor を開く

    コマンドを確認中 · 確認が通るとコピーボタンが出ます

  4. キーを入力

    Kubernetes Troubleshoot の設定で KUBECONFIG, ALLOWED_NAMESPACES が空です。自分のキーを入れて保存します

  5. Cursor の AI チャットを Agent モードで開く

  6. 試してみる

    Kubernetes Troubleshoot を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Kubernetes Troubleshoot を使っていると言うか、回答に Kubernetes Troubleshoot のツール名が出れば接続成功です

追加の設定 3 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • LOG_LEVEL DEBUG、INFO、WARNING、ERROR のいずれか。すべてのログは stderr に出力され、stdout は JSON-RPC ストリーム専用です。
    英語の原文を見るDEBUG, INFO, WARNING or ERROR. All logging goes to stderr; stdout carries the JSON-RPC stream exclusively.
    · 初期値 INFO
  • API_TIMEOUT_SECONDS Kubernetes API リクエストのタイムアウト。正の整数である必要があります。
    英語の原文を見るKubernetes API request timeout. Must be a positive integer.
    · 初期値 30
  • MAX_LOG_LINES get_pod_logs 呼び出し1回で返される最大ログ行数。正の整数である必要があり、警告付きで上限 1000 に制限されます。
    英語の原文を見るMaximum log lines any single get_pod_logs call may return. Must be a positive integer; clamped to a hard ceiling of 1000 with a warning.
    · 初期値 200

説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

設定を 2 項目入力 (KUBECONFIG, ALLOWED_NAMESPACES) · 先にパソコンへ Docker を入れてください(1 回だけ)

  1. Docker を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    docker --version
    • バージョン番号(例 Docker version …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です

    Docker のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version

    一度入れれば、Docker を使うすべてのツールで使えます

  2. 設定を 2 項目入力

    これはプログラムの設定でキーではありません。登録は不要で、作者の説明どおりに入力します。

    • KUBECONFIG コンテナ内の kubeconfig ファイルのパス。マウント先と一致している必要があります。/.kube/config へのフォールバックやクラスター内設定はありません。ファイルが存在しない、読み取れない、または形式が不正な場合は起動に失敗します。
      英語の原文を見るPath to the kubeconfig inside the container. Must match the mount destination. There is no fallback to ~/.kube/config and no in-cluster config: a missing, unreadable or malformed file is a startup fa…
      · 初期値 /kubeconfig
    • ALLOWED_NAMESPACES サーバーが読み取れる名前空間をカンマ区切りで指定します。例: staging,production。ワイルドカード( と all)は起動時に拒否され、kube-system と kube-public は指定されていても除外されます。多層防御の措置です。
      英語の原文を見るComma-separated namespaces the server may read, e.g. staging,production. Wildcards (* and all) are rejected at startup, and kube-system and kube-public are stripped even if listed. This is defense-in…

    説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

  3. このボタンで VS Code を開く

    コマンドを確認中 · 確認が通るとコピーボタンが出ます

  4. キーを入力

    Kubernetes Troubleshoot の設定で KUBECONFIG, ALLOWED_NAMESPACES が空です。自分のキーを入れて保存します

  5. VS Code の AI チャットを Agent モードで開く

  6. 試してみる

    Kubernetes Troubleshoot を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Kubernetes Troubleshoot を使っていると言うか、回答に Kubernetes Troubleshoot のツール名が出れば接続成功です

追加の設定 3 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • LOG_LEVEL DEBUG、INFO、WARNING、ERROR のいずれか。すべてのログは stderr に出力され、stdout は JSON-RPC ストリーム専用です。
    英語の原文を見るDEBUG, INFO, WARNING or ERROR. All logging goes to stderr; stdout carries the JSON-RPC stream exclusively.
    · 初期値 INFO
  • API_TIMEOUT_SECONDS Kubernetes API リクエストのタイムアウト。正の整数である必要があります。
    英語の原文を見るKubernetes API request timeout. Must be a positive integer.
    · 初期値 30
  • MAX_LOG_LINES get_pod_logs 呼び出し1回で返される最大ログ行数。正の整数である必要があり、警告付きで上限 1000 に制限されます。
    英語の原文を見るMaximum log lines any single get_pod_logs call may return. Must be a positive integer; clamped to a hard ceiling of 1000 with a warning.
    · 初期値 200

説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?Kubernetes Troubleshoot を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

コマンドを確認中 · 確認が通るとコピーボタンが出ます

Claude Desktop (claude_desktop_config.json)

コマンドを確認中 · 確認が通るとコピーボタンが出ます

Cursor (~/.cursor/mcp.json)

コマンドを確認中 · 確認が通るとコピーボタンが出ます

VS Code (mcp.json)

コマンドを確認中 · 確認が通るとコピーボタンが出ます

自分で入力する値

  • KUBECONFIG 必須 env
    コンテナ内の kubeconfig ファイルのパス。マウント先と一致している必要があります。/.kube/config へのフォールバックやクラスター内設定はありません。ファイルが存在しない、読み取れない、または形式が不正な場合は起動に失敗します。
    英語の原文を見るPath to the kubeconfig inside the container. Must match the mount destination. There is no fallback to ~/.kube/config and no in-cluster config: a missing, unreadable or malformed file is a startup fa…
  • ALLOWED_NAMESPACES 必須 env
    サーバーが読み取れる名前空間をカンマ区切りで指定します。例: staging,production。ワイルドカード( と all)は起動時に拒否され、kube-system と kube-public は指定されていても除外されます。多層防御の措置です。
    英語の原文を見るComma-separated namespaces the server may read, e.g. staging,production. Wildcards (* and all) are rejected at startup, and kube-system and kube-public are stripped even if listed. This is defense-in…
  • LOG_LEVEL env
    DEBUG、INFO、WARNING、ERROR のいずれか。すべてのログは stderr に出力され、stdout は JSON-RPC ストリーム専用です。
    英語の原文を見るDEBUG, INFO, WARNING or ERROR. All logging goes to stderr; stdout carries the JSON-RPC stream exclusively.
  • API_TIMEOUT_SECONDS env
    Kubernetes API リクエストのタイムアウト。正の整数である必要があります。
    英語の原文を見るKubernetes API request timeout. Must be a positive integer.
  • MAX_LOG_LINES env
    get_pod_logs 呼び出し1回で返される最大ログ行数。正の整数である必要があり、警告付きで上限 1000 に制限されます。
    英語の原文を見るMaximum log lines any single get_pod_logs call may return. Must be a positive integer; clamped to a hard ceiling of 1000 with a warning.

説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
npm/PyPIにない
接続方法
パソコンで動く
最新バージョンi
1.0.0
レジストリ公開日i
2026年8月25日
コードの最終更新i
2026年8月25日
作者
NanaGyamfiPrempeh30
パッケージ
oci: docker.io/yawgyamfiprem32/k8s-troubleshoot-mcp:1.0.0
ウェブサイト
github.com
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月20日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント NanaGyamfiPrempeh30 で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:3 か月前

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

未確認:バージョン付きの npm と PyPI パッケージのみ確認できます

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/nanagyamfiprempeh30-k8s-troubleshoot-mcp.svg)](https://mcp.popnx.com/en/servers/nanagyamfiprempeh30-k8s-troubleshoot-mcp)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの6209件のうち0%よりスターが多い
  • このカテゴリのほかの6209件のうち28%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの6209件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Kubernetes Troubleshootは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は3 か月前、最新バージョン(1.0.0)がレジストリに届いたのは3 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにDockerも必要です。

代わりに使えるものは?

同じカテゴリには:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

作者:ahmedkhaleel2004広く使われている★ 1.9万2 か月前更新

クラウドで動く✓ 提供元 · gitdiagram.comPopNx チームが実際に試用

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

作者:Appllama広く使われている★ 52333 か月前更新

クラウドで動く✓ 提供元 · appllama.io

Omnara

Deploy durable AI agents with Omnara, an open-source managed-agent platform.

作者:omnara-ai広く使われている★ 34232 か月前更新

クラウドで動く✓ 提供元 · omnara.com

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

作者:repowise-dev広く使われている↓ 6506/週★ 8177 リポジトリ全体のスター7 日前更新

パソコンでもクラウドでも✓ 提供元 · repowise.dev
似たものと比べる
これ
Kubernetes Troubleshoot
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドでもパソコンにインストールでも使える
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえはいいいえいいえ
基本チェック3/34/44/44/44/45/5
ライセンスMITMITMITApache-2.0Apache-2.0AGPL-3.0
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

k8s-troubleshoot-mcp

A read-only MCP (Model Context Protocol) server that lets an AI assistant diagnose a Kubernetes cluster. Ask why a pod is crash-looping instead of running six kubectl commands and correlating the output by hand.

Read-only is a structural property, not a promise. There are no write tools, and the RBAC manifests grant no write verbs. See Security model.

What It Does

The server exposes 16 diagnostic tools over stdio. Connect it to Claude Desktop, VS Code, or Kiro, and you can ask things like:

  • "Why is the checkout pod in staging not ready?"
  • "Show me the last 50 lines of logs from the api container"
  • "Which nodes are not Ready, and what are their taints?"
  • "Is the web HPA scaling, and what does its current metric say?"
  • "What events fired in production in the last few minutes?"

The assistant calls the tools, the server queries the Kubernetes API with a scoped ServiceAccount token, and every response comes back as a structured dict — including errors, which are never raised as exceptions into the MCP layer.

Architecture

┌──────────────────┐    stdio (JSON-RPC)   ┌──────────────────────────┐

│ MCP Client │◄─────────────────────►│ MCP Server │ │ Claude Desktop │ │ (this project) │ │ VS Code / Kiro │ │ │ └──────────────────┘ │ config.py ─ validate │ │ server.py ─ 16 tools │ │ tools/*.py ─ read+shape│ │ response.py ─ escape + │ │ structure │ └───────────┬──────────────┘ │ HTTPS, explicit │ KUBECONFIG only ┌───────────▼──────────────┐ │ Kubernetes API server │ │ ── RBAC boundary ── │ │ ServiceAccount: │ │ get/list/watch only │ └──────────────────────────┘

Configuration is validated once at startup. If anything is wrong — KUBECONFIG unset, the file unreadable or malformed, ALLOWED_NAMESPACES missing or containing a wildcard — the process writes one line to stderr and exits 1. It never starts in a partially-valid state.

Available Tools

Arguments marked ? are optional.

ToolDescriptionParameters
get_pod_statusPhase, conditions, container statuses, QoS class and node for a podpod_name, namespace
get_pod_logsRecent log lines from a pod container. Content is untrusted — see Reading get_pod_logs outputpod_name, namespace, container?, previous?, tail_lines?
get_pod_eventsRecent events for a pod, newest first, with total_availablepod_name, namespace
list_podsPods in a namespace with phase, restart count and readinessnamespace, label_selector?
get_node_statusConditions, capacity, allocatable, taints and roles for a nodenode_name
list_nodesCluster nodes with readiness, roles, age and kubelet versionnone
get_deployment_statusReplica counts, conditions and rollout strategydeployment_name, namespace
list_deploymentsDeployments in a namespace with replica counts and availabilitynamespace
get_statefulset_statusReplica counts, revisions and update strategystatefulset_name, namespace
get_daemonset_statusScheduling counts and update strategydaemonset_name, namespace
get_serviceType, ClusterIP, ports, selector and ready endpoint countservice_name, namespace
get_endpointsReady and not-ready endpoint addresses backing a serviceservice_name, namespace
get_pvc_statusPhase, capacity, binding and resize state for a PVCpvc_name, namespace
get_hpa_statusReplica bounds, current metrics and conditions for an HPAhpa_name, namespace
get_namespace_eventsRecent events across a namespace, newest first, with total_availablenamespace, limit?
list_namespacesThe namespaces this server is permitted to readnone

Every namespaced tool validates its namespace argument before making any API call, so a disallowed namespace produces a structured error and no network request.

Deliberately absent

No get_secrets, get_configmap, exec_into_pod, port_forward, or any create/update/patch/delete tool. These are excluded from all versions unless a new threat-model review is conducted and documented — they are not backlog items. The reasoning for each is in SECURITY.md.

Security model

Full detail is in SECURITY.md. The summary:

The boundary is Kubernetes RBAC

Everything this server does in application code is defense-in-depth. The enforcement boundary is the ServiceAccount's RBAC bindings. If the bindings grant more than intended, the application-layer allowlist is all that stands in the way, and it is not a boundary you should rely on.

Provisioning is split by scope so that the cluster-scoped grant is minimal:

ManifestScopeGrants
clusterrole.yaml + clusterrolebinding.yamlclusterget/list/watch on nodes and namespaces only
role.yamlnamespaceget/list/watch on the diagnostic resources
rolebinding.yaml.templatenamespacebinds the Role, one namespace at a time

Applying the cluster-scoped pair makes no namespace readable. A namespace becomes readable only when a Role *and* a RoleBinding exist in it. A namespace listed in ALLOWED_NAMESPACES but never bound stays unreadable — RBAC wins.

pods/log is granted in its own rule block, never folded into the pods rule, because Kubernetes subresources do not inherit from their parent.

Defense-in-depth layers
LayerWhat it doesWhat it is not
RBACGrants read verbs on diagnostic resources in bound namespaces only— this *is* the boundary
Explicit kubeconfigReads KUBECONFIG from an exact path; no ~/.kube/config, no in-cluster config, no fallback chainNot a permission check — it prevents silently picking up an ambient credential
Namespace allowlistRejects wildcards, strips kube-system/kube-public, validates before every callAdvisory; a bug here is contained by RBAC
Output escapingAll cluster-authored free text routed through serialize_log_contentPrevents breaking out of a JSON string; cannot stop a model acting on legible instructions
Structured errorsEvery failure returns a dict; no exception reaches the MCP layer—
Prompt injection is mitigated, not eliminated

Pod logs and event messages are written by workloads in the cluster. A container can print anything, including text shaped like instructions to the model reading it. Escaping keeps injected text inside its JSON string; it cannot stop a model from acting on instructions it reads as data. Treat tool output as untrusted input to whatever consumes it. This residual risk is accepted and documented.

Prerequisites

  1. A Kubernetes cluster and a kubectl context with enough permission to create a ServiceAccount, Role, RoleBinding, ClusterRole and ClusterRoleBinding — you need this once, to provision. The server itself never uses your admin credential.
  2. Kubernetes 1.24+ — scripts/generate-kubeconfig.sh mints a token via the TokenRequest API, not a legacy auto-mounted Secret.
  3. Python 3.11+
  4. uv — curl -LsSf https://astral.sh/uv/install.sh | sh (or use Docker, which needs neither Python nor uv on the host)

Setup

git clone https://github.com/NanaGyamfiPrempeh30/k8s-troubleshoot-mcp.git

cd k8s-troubleshoot-mcp

Install dependencies (uv creates .venv automatically)

uv sync

Run the test suite

uv run pytest tests/ -q

Provision RBAC and mint a kubeconfig
scripts/generate-kubeconfig.sh /secure/path/k8s-mcp-kubeconfig.yaml staging production

The first argument is where to write the kubeconfig; the rest are the namespaces the server may read. Pass the same set you intend to put in ALLOWED_NAMESPACES — RBAC is the enforcement boundary, and a namespace bound here but absent from the allowlist (or the reverse) is a mismatch between real permission and configured capability.

The script applies the cluster-scoped manifests together, then applies role.yaml with an explicit -n and renders a RoleBinding per namespace. On success it prints the kubeconfig path to stdout and nothing else; all diagnostics go to stderr. It also asserts after provisioning that kubectl auth can-i get secrets returns no, and aborts if it does not.

Do not run `kubectl apply -f kubernetes/`. It does not fail — it reports

success while creating role.yaml in the *current* namespace and skipping

rolebinding.yaml.template entirely, because kubectl apply -f only

reads .yaml/.yml/.json. The result is a server that looks provisioned

and can read nothing. Verified against a v1.35 API server with

--dry-run=server: 5 resources applied, not 6.

The generated kubeconfig is written with umask 077 and chmod 600. Keep it out of the repository — the script warns if the output path is inside a repository and not covered by .gitignore.

Run it
KUBECONFIG=/secure/path/k8s-mcp-kubeconfig.yaml \

ALLOWED_NAMESPACES=staging,production \ uv run k8s-troubleshoot-mcp

The server speaks JSON-RPC on stdin/stdout, so it will appear to hang — that is correct. It is waiting for a client.

Connecting to Claude Desktop

Add to claude_desktop_config.json (%APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{

"mcpServers": { "k8s-troubleshoot": { "command": "uv", "args": ["run", "k8s-troubleshoot-mcp"], "cwd": "/path/to/k8s-troubleshoot-mcp", "env": { "KUBECONFIG": "/secure/path/k8s-mcp-kubeconfig.yaml", "ALLOWED_NAMESPACES": "staging,production" } } } }

Restart Claude Desktop fully (quit from the system tray, reopen), then check Settings → Developer → k8s-troubleshoot shows running.

On Windows, if the server shows as disconnected, use a batch file wrapper — Claude Desktop has working-directory issues with direct interpreter invocation:

@echo off

cd /d C:\Users\YourUsername\k8s-troubleshoot-mcp uv run k8s-troubleshoot-mcp

{

"mcpServers": { "k8s-troubleshoot": { "command": "cmd.exe", "args": ["/c", "C:\\Users\\YourUsername\\k8s-troubleshoot-mcp\\run_mcp.bat"], "env": { "KUBECONFIG": "C:\\secure\\path\\k8s-mcp-kubeconfig.yaml", "ALLOWED_NAMESPACES": "staging,production" } } } }

Running with Docker

docker build -t k8s-troubleshoot-mcp .

docker run -i --rm \ -v /secure/path/k8s-mcp-kubeconfig.yaml:/kubeconfig:ro \ -e KUBECONFIG=/kubeconfig \ -e ALLOWED_NAMESPACES=staging,production \ k8s-troubleshoot-mcp

-i is required — JSON-RPC travels on stdin/stdout. :ro is not decoration: this server performs no writes of any kind, so a writable mount would grant privilege it has no use for.

The image runs as non-root, UID 10001, and contains no c

冒頭だけを表示しています。続きはリポジトリで読めます