Skip to main content
An agent request passes a guard that injects auth, checks workspace membership, and bounds each call, then forks into the kube API proxy reaching cluster resources and the exec endpoint running a command inside a pod
The platform MCP server includes a transparent Kubernetes API proxy and a command execution endpoint. Together, they let agents read pod logs, list resources, inspect deployments, discover , and run commands, all through the same platform.request() interface.
These endpoints are accessed through the Platform MCP server’s execute tool. The agent writes JavaScript that calls platform.request().

Kube API proxy

GET /v1/clusters/{id}/kube_proxy/{path} proxies any request to the cluster’s Kubernetes API server. The path after /kube_proxy/ is forwarded directly, along with query parameters.

Pod logs

Fetch pod logs as plain text:

List resources

List pods, deployments, configmaps, services, or any Kubernetes resource:

API discovery

Agents can discover cluster-specific APIs (including CRDs) by fetching the Kubernetes OpenAPI spec:
This is useful when the agent needs to work with custom resources it hasn’t seen before. It can inspect the spec, find the right API group and version, then make calls.

Supported methods

The proxy supports all HTTP methods (GET, POST, PUT, PATCH, DELETE), so agents can also create and modify resources when needed.

Command execution

POST /v1/clusters/{id}:exec runs a command in a pod container and returns the combined output:

Request body

Response

Exec is non-interactive (no TTY, no stdin) with a 30-second timeout. For interactive shells, use the dashboard terminal.

Security

  • Authentication is handled server-side. Agents cannot read or set the Authorization header.
  • Authorization checks workspace membership before proxying any request.
  • All code runs in a sandboxed V8 isolate with no access to the filesystem, network, or Node.js APIs.
  • The kube proxy has a 30-second timeout per request.
  • Exec commands have a 30-second timeout and are non-interactive.

Code Mode in action

See how agents compose complex operations in a single call.

Platform MCP

The MCP server that provides these endpoints.

CRD discovery

Discover and interact with custom Kubernetes resources.

Incident debugging

Full SRE triage using pod health, events, logs, and rollout history.