kom
by weibaohui
Overview
Manages Kubernetes clusters and resources, providing an SDK-level wrapper for kubectl/client-go with Multi-Cluster Proxy (MCP) server capabilities.
Installation
go build main.go && ./mainEnvironment Variables
- KUBECONFIG
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- AWS_ROLE_ARN
- AWS_ROLE_SESSION_NAME
Security Notes
Critical security risks identified: 1. Weak default authentication: The 'main.go' example's MCP server uses 'username' from HTTP headers as an identifier, providing no actual authentication or authorization mechanism. This means any client can spoof a user. 2. Direct handling of AWS Access Keys/Secret Access Keys: EKS configuration directly accepts these sensitive credentials, which are then passed as environment variables to the 'aws' CLI for execution. 3. Highly privileged Kubernetes operations: The server exposes a wide range of powerful K8s operations (e.g., arbitrary file operations within Pods, node cordon/drain, creating privileged node/kubectl shells) via its API. Without a custom callback implementation for proper authorization (which is explicitly left to the user), these operations are unsecured. 4. SQL-like query capability: While useful, if not properly secured by authorization callbacks, this could allow unauthorized users to perform broad or sensitive queries/manipulations on K8s resources.
Similar Servers
remote-mcp-functions
Provides remote utilities or services for Minecraft Coder Pack (MCP) development environments.
rf-mcp
A Python-based development framework or toolkit for creating, testing, and managing modifications, particularly Redstone Flux-related components, for Minecraft servers.
FerrumMCP
A browser automation server for AI assistants to interact with web pages through a standardized Model Context Protocol (MCP) interface.
X96Dbg-MCP-Server-Plugin
Provides a JSON-RPC bridge for x32dbg/x64dbg, allowing external automations to inspect and control a debugged process without direct UI interaction.