FR

futuretea/rancher-mcp-server

Deployment & DevOps

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

21 stars 5 forks 品質 85 トレンド 30Apache-2.0

A Model Context Protocol (MCP) server for Rancher

概要

A Model Context Protocol (MCP) server for Rancher multi-cluster management. - : Access Kubernetes clusters through the Rancher API or configured kubeconfig paths - : CRUD operations on any resource type - Get/List any resource (Pod, Deployment, Service, ConfigMap, Secret, CRD, etc.) - Create resources from JSON manifests - Patch resources using JSON Patch (RFC 6902) - Delete resources - Describe resources with related events (similar to kubectl describe) - List and filter Kubernetes events by namespace, object name, and object kind - Query container logs with filtering (tail lines, time range, timestamps, keyword search) - Multi-pod log aggregation via label selector with time-based sorting - View rollout history for Deployments - Inspect node state and resource usage - Inspect pods with parent workload, metrics, and logs - Show dependency/dependent trees for any resource (inspired by kube-lineage) - (inspired by ketall): List all Kubernetes resources including ConfigMaps, Secrets,...

README

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

Rancher MCP Server

English | 中文

Features | Getting Started | Configuration | Tools | Development

Features

A Model Context Protocol (MCP) server for Rancher multi-cluster management.

  • Multi-cluster Management: Access Kubernetes clusters through the Rancher API or configured kubeconfig paths
  • Kubernetes Resources via Steve API: CRUD operations on any resource type
    • Get/List any resource (Pod, Deployment, Service, ConfigMap, Secret, CRD, etc.)
    • Create resources from JSON manifests
    • Patch resources using JSON Patch (RFC 6902)
    • Delete resources
    • Describe resources with related events (similar to kubectl describe)
    • List and filter Kubernetes events by namespace, object name, and object kind
    • Query container logs with filtering (tail lines, time range, timestamps, keyword search)
    • Multi-pod log aggregation via label selector with time-based sorting
    • View rollout history for Deployments
    • Inspect node state and resource usage
    • Inspect pods with parent workload, metrics, and logs
    • Show dependency/dependent trees for any resource (inspired by kube-lineage)
    • Get all resources (inspired by ketall): List all Kubernetes resources including ConfigMaps, Secrets, RBAC, CRDs
    • Compare resource versions (kubernetes_diff): Show git-style diffs between two resource versions
    • Watch resource changes (kubernetes_watch): Monitor resources and return git-style diffs at regular intervals
    • Resource capacity overview (inspired by kube-capacity): Show cluster resource capacity, requests, limits, and utilization
    • Resource top ranking (kubernetes_top): Rank pods or nodes by CPU/memory usage, requests, limits, or restart count
    • Workload health summary (kubernetes_workload_health): Health overview for Deployments, StatefulSets, and DaemonSets with ready/desired ratios and status derivation
    • Resource summary by group (kubernetes_resource_summary): Aggregate pod resources by namespace or label key with totals for requests/limits
    • Event pattern analysis (kubernetes_event_summary): Group and rank events by reason, kind, and frequency to identify recurring issues
  • Rancher Resources via Norman API: List clusters and projects
GitHub で README 全文を見る

インストール

npx -y @futuretea/rancher-mcp-server@latest --rancher-server-url https://your-rancher-server.com --rancher-token your-token
MCP 初心者?mcpskill.org のガイドから始めましょう →