
rancher/rancher-ai-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP 서버는 Rancher AI 에이전트가 로컬 및 다운스트림 클러스터를 통해 Kubernetes 및 Rancher 리소스를 안전하게 검색하거나 업데이트할 수 있습니다.
개요
MCP 서버는 Rancher AI 에이전트가 로컬 및 다운스트림 클러스터를 통해 Kubernetes 및 Rancher 리소스를 안전하게 검색하거나 업데이트할 수 있습니다. 에이전트가 항상 인증을 제공하는 헤더의 Rancher 토큰을 기대합니다. 이 모델 Context Protocol (MCP) 서버는 Rancher AI 에이전트와 Kubernetes 클러스터 사이의 안전한 브리지를 제공하여 표준화 된 도구 인터페이스를 통해 AI 전원 클러스터 관리를 가능하게합니다. 서버는 Rancher 환경에서 쿠버네티스 배포로 실행되며 리소스 검사, 수정 및 클러스터 작업에 대한 도구를 노출합니다. - CLI 명령 및 서버 초기화 - serve.go - 동적 청취 지원이있는 HTTP / TLS 서버 설정 - root.go - 루트 명령 구성 - - Kubernetes 클라이언트 요약 - 클러스터 ID 해상도와 동적 클라이언트 래퍼 - 클러스터 관리를위한 Rancher API 통합 - 로컬 및 다운스트림 클러스터 운영 지원 - - 도구 등록 및 조직 - 도구.
개요(AI 번역)
Rancher를 위한 MCP 서버
MCP 서버는 Rancher AI 에이전트가 로컬 및 다운스트림 클러스터를 통해 Kubernetes 및 Rancher 리소스를 안전하게 검색하거나 업데이트할 수 있습니다. 에이전트가 항상 인증을 제공하는 헤더의 Rancher 토큰을 기대합니다.
개요
이 모델 Context Protocol (MCP) 서버는 Rancher AI 에이전트와 Kubernetes 클러스터 사이의 안전한 브리지를 제공하여 표준화 된 도구 인터페이스를 통해 AI 전원 클러스터 관리를 가능하게합니다. 서버는 Rancher 환경에서 쿠버네티스 배포로 실행되며 리소스 검사, 수정 및 클러스터 작업에 대한 도구를 노출합니다.
건축
# 패키지 구조
-
cmd/- CLI 명령 및 서버 초기화 -
serve.go- 동적 리스너 지원과 HTTP/TLS 서버 설정, 및 stdio 수송 -
root.go- 루트 명령 설정 -
pkg/client/- Kubernetes 클라이언트 요약 -
클러스터 ID 해상도의 동적 클라이언트 래퍼
-
클러스터 관리에 대한 Rancher API 통합
-
로컬 및 다운스트림 클러스터 운영 지원
-pkg/toolsets/ - 도구 등록 및 조직
toolsets.go- 툴 컬렉션의 중앙 레지스트리
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP Server for Rancher
The MCP server allows the Rancher AI agent to securely retrieve or update Kubernetes and Rancher resources across local and downstream clusters. It expects the Rancher token in a header, which the agent will always provide for authentication.
Overview
This Model Context Protocol (MCP) server provides a secure bridge between the Rancher AI agent and Kubernetes clusters, enabling AI-powered cluster management through a standardized tool interface. The server runs as a Kubernetes deployment within the Rancher environment and exposes tools for resource inspection, modification, and cluster operations.
Architecture
Package Structure
-
cmd/- CLI commands and server initializationserve.go- HTTP/TLS server setup with dynamic listener support, and stdio transportroot.go- Root command configuration
-
pkg/client/- Kubernetes client abstraction- Dynamic client wrapper with cluster ID resolution
- Rancher API integration for cluster management
- Support for both local and downstream cluster operations
-
pkg/toolsets/- Tool registration and organizationtoolsets.go- Central registry for tool collectionscore/- Core Kubernetes operation tools
-
pkg/response/- Response formatting utilities- Structured text and content generation for MCP responses
-
pkg/converter/- Data transformation utilities- Group/Version/Resource (GVR) conversion helpers
Multi-Agent Architecture
The server is designed with a modular toolset architecture to support a multi-agent system. Each toolset contains a collection of related tools that serve a specific agent or domain within the Rancher AI ecosystem.
Current Toolsets:
core- Fundamental Kubernetes operations (resource management, pod inspection, metrics)
This architecture allows different AI agents to access only the tools they need, improving security, maintainability, and scalability.
TLS & Security
The server supports two modes:
-
TLS Mode (Production): Uses Rancher’s dynamic listener with auto-generated certificates
- Certificates stored as Kubernetes secrets
- Automatic cert rotation and renewal
- Client certificate authentication support
- TLS 1.2+ with secure cipher suites
-
Insecure Mode (Development): Plain HTTP for local testing
- Enabled via
--insecureflag orINSECURE_SKIP_TLS=true
- Enabled via
Available Tools
Each tool is exposed through the MCP protocol and can be invoked by the Rancher AI agent. The full, up-to-date list of tools grouped by toolset is maintained in TOOLS.md, which is generated from the tool definitions.
To regenerate it after adding or changing tools, run:
go generate ./...
# or
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"rancher": {
"command": "mcp",
"args": ["serve", "--stdio", "--rancher-url", "https://rancher.example.com", "--rancher-token", "token-xxx"]
}
}
}