container

MCP tool from MCP Kubernetes Ro by patrickdappollonio

(optional): Container name (required for multi-container pods)

How to use it

Project documentation lists container for the MCP Kubernetes Ro MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.

Install MCP Kubernetes Ro

$npx -y @patrickdappollonio/mcp-kubernetes-ro
FULL MCP KUBERNETES RO LISTING

Other tools in MCP Kubernetes Ro (21)

api_version

(optional): API version for the resource (e.g., 'v1', 'apps/v1')

context

(optional): Kubernetes context to use (defaults to current context from kubeconfig)

continue

(optional): Continue token for pagination (from previous response)

data

(required): Text data to encode

field_selector

(optional): Field selector to filter resources (e.g., 'status.phase=Running')

grep_exclude

(optional): Exclude lines matching these patterns (comma-separated). Works like grep -v - excludes lines containing any of these patterns

grep_include

(optional): Include only lines matching these patterns (comma-separated). Works like grep - includes lines containing any of these patterns

id

(required): Port forward session ID (e.g., "pf-1")

label_selector

(optional): Label selector to filter resources (e.g., 'app=nginx,version=1.0')

limit

(optional): Maximum number of resources to return (defaults to all)

max_lines

(optional): Maximum number of lines to retrieve

name

(required): Resource name

namespace

(optional): Target namespace (leave empty for cluster-scoped resources)

node_name

(optional): Specific node name to get metrics for. If not provided, returns metrics for all nodes.

pod

(required): Pod name

pod_name

(optional): Specific pod name to get metrics for. Requires namespace if specified.

ports

(required): Array of port mappings, each with:

previous

(optional): Return logs from the previous terminated container instance (like kubectl logs --previous)

resource_type

(required): The type of resource to list - use plural form (e.g., 'pods', 'deployments', 'services')

since

(optional): Return logs newer than this time. Supports durations like "5m", "1h", "2h30m", "1d" or absolute times like "2023-01-01T10:00:00Z"

use_regex

(optional): Whether to treat grep patterns as regular expressions instead of literal strings