Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
k8s-mcp-server
command
Command k8s-mcp-server is a Model Context Protocol server that exposes Kubernetes cluster management, troubleshooting, and debugging tools to MCP clients (Claude Desktop, Cursor, opencode, Claude Code, and any MCP client).
|
Command k8s-mcp-server is a Model Context Protocol server that exposes Kubernetes cluster management, troubleshooting, and debugging tools to MCP clients (Claude Desktop, Cursor, opencode, Claude Code, and any MCP client). |
|
internal
|
|
|
audit
Package audit records every tool call as a structured log line, classifying it by verb (read/write/destructive/debug) and flagging mutating calls.
|
Package audit records every tool call as a structured log line, classifying it by verb (read/write/destructive/debug) and flagging mutating calls. |
|
kube
Package kube builds and holds the Kubernetes client interfaces used by tools.
|
Package kube builds and holds the Kubernetes client interfaces used by tools. |
|
mcpserver
Package mcpserver assembles the MCP server: it builds the dependency Toolkit, creates the MCP server with the right capabilities, registers tool categories according to configuration and security policy, and runs the chosen transport.
|
Package mcpserver assembles the MCP server: it builds the dependency Toolkit, creates the MCP server with the right capabilities, registers tool categories according to configuration and security policy, and runs the chosen transport. |
|
observe
Package observe configures structured logging and (later) tracing.
|
Package observe configures structured logging and (later) tracing. |
|
rpc
Package rpc holds shared argument types, validators, and result builders used across all tool handlers.
|
Package rpc holds shared argument types, validators, and result builders used across all tool handlers. |
|
security
Package security centralizes blast-radius policy: whether mutating, destructive, and debug tools are permitted, namespace allowlists, and privileged-target guards.
|
Package security centralizes blast-radius policy: whether mutating, destructive, and debug tools are permitted, namespace allowlists, and privileged-target guards. |
|
tools
Package tools is the shared foundation for all tool handlers.
|
Package tools is the shared foundation for all tool handlers. |
|
tools/configstore
Package configstore implements read tools for configmaps, secrets, persistent volume claims, and storage classes.
|
Package configstore implements read tools for configmaps, secrets, persistent volume claims, and storage classes. |
|
tools/core
Package core implements cluster-level tools: namespaces, nodes, events, API resource discovery, and cluster health.
|
Package core implements cluster-level tools: namespaces, nodes, events, API resource discovery, and cluster health. |
|
tools/debug
Package debug implements interactive debugging tools: exec into containers, attach ephemeral containers, port-forward, and run throwaway debug pods.
|
Package debug implements interactive debugging tools: exec into containers, attach ephemeral containers, port-forward, and run throwaway debug pods. |
|
tools/network
Package network implements read tools for services, endpoints, ingresses, and network policies.
|
Package network implements read tools for services, endpoints, ingresses, and network policies. |
|
tools/operations
Package operations implements mutating and destructive tools: server-side apply, patch, scale, rollout restart/undo, label/annotate, resource creation, deletion, and node cordon/drain.
|
Package operations implements mutating and destructive tools: server-side apply, patch, scale, rollout restart/undo, label/annotate, resource creation, deletion, and node cordon/drain. |
|
tools/testutil
Package testutil provides shared helpers for building a *tools.Toolkit backed by fake Kubernetes clients, so every tool package's tests can exercise handlers against an in-memory API server.
|
Package testutil provides shared helpers for building a *tools.Toolkit backed by fake Kubernetes clients, so every tool package's tests can exercise handlers against an in-memory API server. |
|
tools/troubleshoot
Package troubleshoot implements diagnostic and observability tools: logs, resource metrics (top), generic describe, rollout status/history, and the automated diagnose engine.
|
Package troubleshoot implements diagnostic and observability tools: logs, resource metrics (top), generic describe, rollout status/history, and the automated diagnose engine. |
|
tools/workloads
Package workloads implements read tools for pods, deployments, statefulsets, daemonsets, replicasets, jobs, and cronjobs.
|
Package workloads implements read tools for pods, deployments, statefulsets, daemonsets, replicasets, jobs, and cronjobs. |
Click to show internal directories.
Click to hide internal directories.