MCPVault

ports

MCP tool from MCP Kubernetes Ro by patrickdappollonio

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

How to use it

ports is exposed by the MCP Kubernetes Ro MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the ports tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install MCP Kubernetes Ro

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

Other tools in MCP Kubernetes Ro (23)

api_version

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

container

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

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)

local_port

(optional): Local port to listen on (0 or omit for auto-assign)

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.

pod_port

(required): Port on the pod to forward to (1-65535)

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