k8s-interactive-mcp

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Allows running kubectl commands to interact with Kubernetes clusters using a specified kubeconfig path, with support for command line piping and automatic interpretation of command results

k8s-インタラクティブ-mcp

指定された kubeconfig パスを使用して Kubernetes コマンドを実行し、コマンドの解釈を提供できる MCP サーバー。

結果

特徴

  • MCP ツールを通じて kubectl コマンドを実行する
  • 柔軟なコマンドラインパイピング
  • kubectl の自動インストールチェック
  • カスタム kubeconfig パスのサポート
  • エラー処理と役立つメッセージ

使用法

  1. 依存関係をインストールします:
npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "k8s-interactive": { "command": "/path/to/k8s-interactive/build/index.js" } } }

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

You must be authenticated.

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

指定された kubeconfig パスを使用してKubernetesコマンドを実行し、コマンドの解釈を提供できる MCP サーバー。

  1. Result
    1. Features
      1. Usage
        1. Installation
          1. Debugging
        ID: gwvs0s78be