SM

stackloklabs/mkp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

59 stars 7 forks 品質 68 トレンド 33Apache-2.0

MKPはKubernetes用のモデルコンテキストプロトコル(MCP)サーバーです

概要

MKPはKubernetes用のモデルコンテキストプロトコル(MCP)サーバーで、LM-poweredアプリケーションがKubernetesクラスターと対話することができます。 MCPプロトコルを介してKubernetesリソースをリストおよび適用するためのツールを提供します。 - Kubernetes APIサーバーでサポートされているリストリソース - リストクラスターリソース - リストの名前空間リソース - リソースとサブリソース(ステータス、スケール、ログなどを含む)を取得する - [適用(作成または更新)]クラスターリソース - [適用(作成または更新)] 名前空間リソース - タイムアウト制御でPodのコマンドを実行 - API Machineryの非構造クライアントを使用してジェネリックかつプラグイン可能な実装 - 過剰なAPI呼び出しに対する保護のための組み込み速度制限 MKP は、Kubernetes 用のモデル・コンテキスト・プロトコル・サーバーとして複数の利点を提供しています。 - Kubernetes自体と同じ言語で構築 - サーバーアプリケーションのための優れた性能特性 - 強力なタイプ安全と並列サポート - Kubernetesとのシームレスな統合...

概要(AI 翻訳)

MKPはKubernetes用のモデルコンテキストプロトコル(MCP)サーバーです。 Kubernetesクラスターと相互作用するLMを搭載したアプリケーション。 ツールを提供 MCP プロトコルを介して Kubernetes リソースをリストおよび適用するため。

##特徴

  • Kubernetes APIサーバーでサポートされているリストリソース
  • リストクラスターリソース
  • リスト名空間リソース
  • リソースとサブリソースの取得(ステータス、スケール、ログなど)
  • 応用(作成または更新)クラスターリソース
  • (作成または更新)名前空間リソースを適用する
  • タイムアウト制御でPodのコマンドを実行
  • API の機械類の非構造化されたクライアントを使用して Generic およびプラグイン可能な実装
  • 過度のAPI呼び出しに対する保護のための組み込み速度制限

#MKPとは?

MKPは、モデルコンテキストプロトコルサーバーとしていくつかの重要な利点を提供しています。 クベルネ:

ネイティブの実行

  • Kubernetes自身と同じ言語で構築
  • サーバーの塗布のための優秀な性能の特徴
  • 強力なタイプ安全と対立サポート
  • Kubernetesライブラリとのシームレスな統合

直接 API の統合

  • 外部の依存関係なしでKubernetes APIの機械類を直接使用して下さい

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MKP - Model Kontext Protocol Server for Kubernetes

MKP is a Model Context Protocol (MCP) server for Kubernetes that allows LLM-powered applications to interact with Kubernetes clusters. It provides tools for listing and applying Kubernetes resources through the MCP protocol.

Features

  • List resources supported by the Kubernetes API server
  • List clustered resources
  • List namespaced resources
  • Get resources and their subresources (including status, scale, logs, etc.)
  • Apply (create or update) clustered resources
  • Apply (create or update) namespaced resources
  • Execute commands in pods with timeout control
  • Generic and pluggable implementation using API Machinery’s unstructured client
  • Built-in rate limiting for protection against excessive API calls

Why MKP?

MKP offers several key advantages as a Model Context Protocol server for Kubernetes:

Native Go Implementation

  • Built with the same language as Kubernetes itself
  • Excellent performance characteristics for server applications
  • Strong type safety and concurrency support
  • Seamless integration with Kubernetes libraries

Direct API Integration

  • Uses Kubernetes API machinery directly without external dependencies
  • No reliance on kubectl, helm, or other CLI tools
  • Communicates directly with the Kubernetes API server
  • Reduced overhead and improved reliability

Universal Resource Support

  • Works with any Kubernetes resource type through the unstructured client
  • No hardcoded resource schemas or specialized handlers needed
  • Automatically supports Custom Resource Definitions (CRDs)
  • Future-proof for new Kubernetes resources

Minimalist Design

  • Focused on core Kubernetes resource operations
  • Clean, maintainable codebase with clear separation of concerns
  • Lightweight with minimal dependencies
  • Easy to understand, extend, and contribute to

Production-Ready Architecture

  • Designed for reliability and performance in production environments
  • Proper error handling and resource management
  • Built-in rate limiting to protect against excessive API calls
  • Testable design with comprehensive unit tests
  • Follows Kubernetes development best practices

Prerequisites

  • Go 1.24 or later
  • Kubernetes cluster and kubeconfig
  • Task for running tasks

Installation

  1. Clone the repository:

    git clone https://github.com/StacklokLabs/mkp.git
    cd mkp
    
  2. Install dependencies:

    task install
    
  3. Build the server:

    task build
    

Usage

Running the server

To run the server with the default kubeconfig:

task run

To run the server with a specific kubeconfig:

KUBECONFIG=/path/to/kubeconfig task run-with-kubeconfig

To run the server on a specific port:

MCP_PORT=9091 task run

Running with ToolHive

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →