Skip to main content

AI IDE integration

Agent Skills

Kube-DC ships 18 Agent Skills: structured procedures and templates that help compatible coding agents generate Kube-DC manifests. Skills complement MCP servers, which provide live cluster access. See Agent skills setup.

AI coding assistants such as Claude Code, Cursor, Devin Desktop (formerly Windsurf), and VS Code with Copilot can connect to the Kube-DC management cluster in a Project context, through the Model Context Protocol (MCP). After they connect, they can manage workloads, inspect logs, and diagnose resources within the permissions of that Project context.

There are two ways to connect:

  • Hosted MCP endpoint (recommended): nothing to install; the app signs you in through your Organization. See the next section.
  • Local MCP server: a Kubernetes MCP server on your machine that uses your kubeconfig. See How it works and the per-IDE sections below.

Hosted MCP endpoint (no install)​

When your installation runs the hosted endpoint, every Organization has its own MCP server URL. An AI app connects to it, you sign in on your Organization's normal login page, and the assistant works with exactly your permissions. Nothing is installed and no kubeconfig or secret is stored on your machine.

Find the URL on your project's Overview page (Manage with an AI agent → Connect your agent, which opens the Connect an AI app dialog with one-click installs for Cursor and VS Code) or, for organization administrators, under Organization → Access → Machine identities → Connect an AI app. It looks like https://backend.<domain>/mcp/<organization>.

A project URL, https://backend.<domain>/mcp/<organization>/<project>, is the same server with that project as the default: you can ask "list my VMs" without naming the project. Sign-in and permissions are the same. Add one per project (for example kube-dc-dev, kube-dc-prod) to keep them apart.

To only search the documentation, connect an app to https://backend.<domain>/mcp with no Organization in the URL. It needs no sign-in and offers two tools, search_docs and get_doc. The Organization URLs offer the same two tools beside the others.

For read-only use, add /read_only to either URL (or tick Read-only in the console dialog), for example https://backend.<domain>/mcp/<organization>/<project>/read_only. The app asks for read access only ("Read your Kube-DC resources…" on the consent page) and gets only the tools that read: it can list, inspect, read logs and events, but cannot create, change, stop or delete anything. Where the installation enables it, Kubernetes itself refuses changes made with such a session's credentials. An app you already allowed full use keeps it until you revoke it; the connected apps list shows each app's access (Full or Read only).

The console's Connect an AI app dialog shows these commands and install links filled in for your project:

AppHow to add the URL
Claude Codeclaude mcp add --transport http kube-dc <url>, then /mcp → Authenticate
CursorAdd to Cursor in the console, or Settings → MCP: { "mcpServers": { "kube-dc": { "url": "<url>" } } }
VS Code (Copilot)Install in VS Code in the console, or code --add-mcp '{"name":"kube-dc","type":"http","url":"<url>"}'; use Agent mode
Claude (web, desktop)Settings → Connectors → Add custom connector
ChatGPTAdd a custom MCP server (developer mode, under Apps or Plugins) with the URL and OAuth sign-in; on Business and Enterprise plans an admin may need to allow it
Google AntigravityMCP Servers → Manage → View raw config: { "mcpServers": { "kube-dc": { "serverUrl": "<url>" } } }
Mistral Le ChatConnectors → Add connector → Custom MCP connector (Work mode)
Other MCP appsAdd a remote MCP server (Streamable HTTP) with the URL; sign-in is OAuth

The app opens your Organization's sign-in page the first time and asks you to allow it.

Add the Kube-DC skills too (recommended). The MCP server gives the app tools; the agent skills give it Kube-DC's step-by-step procedures and manifests (managed databases, HTTPS routes, VMs…). Apps with a skills folder (Claude Code, Cursor, Codex, VS Code Copilot, Devin Desktop) load them after one command:

npx skills add kube-dc/kube-dc-public -g --all # every workspace
npx skills add kube-dc/kube-dc-public -y # this workspace only

Run it again to update them. Apps without skills (ChatGPT, Claude web, Le Chat) need nothing extra: the MCP server itself serves the guides (see Guides below).

Tools. A standard full session offers 40 tools. The ten read tools are whoami, list, get_vm, get_quota, get_logs, get_resources, rollout_status, list_secrets, search_docs, and get_doc (the last two search and read this documentation). A read-only URL also has query: the assistant writes a short script that calls the read tools and returns only the answer, which saves tokens on questions that span many projects or pods. The change tools manage projects, VMs, disks and their snapshots, IPs, buckets, managed services and their backups, managed Kubernetes clusters, secrets, apps, jobs, previews, webhooks, GitHub repository connections, and, where your provider offers a container registry, registry logins. apply_manifest and delete work on any Kubernetes object you may change. For every tool and its effect, see Hosted MCP for administrators. create_managed_service goes through the console's own path: its first call returns the price, or says why the plan has no upfront price (many plans are billed from measured usage), and the service is created only when the app calls it again to confirm, with your choice of what deleting the service later does with its data (delete it, keep a final backup, or retain it). The credentials are delivered to a Secret in the Project. create_cluster creates a managed Kubernetes cluster with the console's defaults, and get_kubeconfig returns its admin kubeconfig after you confirm. For a persistent VM with named SSH access, use vm_ssh. Use create_vm when you choose Project-key access. Tools that delete or stop something are marked so your app asks you first. Everything runs as you: what you may not do in the console, the assistant may not do either.

Administrators and connector reviewers: addresses, sign-in details, every tool's effect and data handling are on Hosted MCP for administrators.

Safety. Secret values are masked in get_resources unless the assistant asks to reveal them, which is recorded in the audit log (never on a read-only URL). Logs and events come from workloads; the server tells the app to treat them as data. A project URL sets a default project; it is not a boundary, as the tools can still name any project you may access.

Every tool call that ran on an Organization or project URL is recorded in the audit log with you and the app that made it, and the project when the call names one. A query is one event for the whole script. Calls to the documentation-only URL are not audited. The project Overview shows the apps used there this week and the changes they made (Changes via AI apps); the Connect an AI app dialog lists the apps you allowed. Revoke stops the app from signing in again at once; access it already holds ends within 15 minutes, when its token expires.

Preferred paths. The server tells apps the platform's defaults, in its instructions and in the tool descriptions:

  • Apps are deployed with deploy_app, from an image or built from a GitHub repository on every push, with pull request previews, a release command before each new version, a custom domain, autoscaling or a data volume. Where your provider turned it on, a new app is an Application; elsewhere it is a Deployment and a Service. rollout_status reports whether it is live and its address, and rollback returns it to an earlier release. See Deploy from GitHub and Roll back an application.
  • Databases, caches and queues run as managed services (create_managed_service), not as pods. The development plan (one instance) is the default; the production plan (three instances, HA) is used when you ask for production or HA.
  • Other web workloads are published through the shared Gateway: a ClusterIP Service with service.nlb.kube-dc.com/expose-route: https gets a hostname and a certificate and uses no public IP. list with kind services shows the hostname once it is ready; whoami shows the domain hostnames are created under.
  • A public IPv4 (external IP, floating IP, LoadBalancer) is used only for non-HTTP ports or when you ask for a dedicated address; the app checks get_quota and asks you first.

Guides. The server also serves step-by-step guides as MCP resources and prompts, so apps get them with no install:

  • Resources kube-dc://guide/web-stack (app + managed database + HTTPS), wordpress, publish-http, public-ip, managed-database and deploy-from-repository (deploys from a GitHub repository), written in terms of the tools above, and every agent skill as kube-dc://skill/<name> (for example kube-dc://skill/deploy-web-stack; a skill's templates are kube-dc://skill/<name>/<file>). Claude Code lets the assistant read them itself; in VS Code and Cursor you attach one to the chat.
  • Prompts (slash commands in apps that support them): deploy-web-app, deploy-wordpress, publish-http and project-health. A read-only URL offers only project-health.

For CI, Terraform or a local MCP server, use a machine identity instead.


How it works: MCP and Kubernetes​

The Model Context Protocol (MCP) is an open standard that gives AI assistants structured access to external tools and data sources. A Kubernetes MCP server acts as a bridge between your AI IDE and the Kube-DC management cluster:

AI IDE access through MCPClaude Code, Cursor, Devin Desktop, or another compatible AI IDE sends Model Context Protocol requests to a Kubernetes MCP server. The server uses the Kubernetes API and the supplied Project-scoped kubeconfig to access the Kube-DC management cluster in that Project context.MCPKubernetes APIAI IDEClaude · CursorDevin DesktopKubernetes MCPtool bridgeKube-DC APIProject contextvia kubeconfig
The MCP server is a permission-preserving bridge: the assistant can perform only the Kubernetes operations authorized by the Project kubeconfig supplied to that server.

The AI can then answer questions like "Why is my deployment not scaling?" or execute commands like "Scale the nginx deployment to 3 replicas in Project production in Organization acme", subject to the permissions in your kubeconfig.


Agent skills setup​

A generic Kubernetes MCP server lets an AI assistant run kubectl, but it does not know the Kube-DC CRDs, annotations, naming conventions, or multi-tenant constraints. Agent Skills bridge this gap by providing structured, Kube-DC-specific knowledge that AI assistants load automatically.

What skills provide​

Without SkillsWith Skills
Agent guesses CRD schemasAgent knows exact apiVersion, fields, and defaults
Wrong annotationsCorrect service.nlb.kube-dc.com/* annotations
Missing qemu-guest-agent in VMsAlways included (safety rule)
Incorrect backing namespace patternsCorrect {organization}-{project} backing namespace
No awareness of exposure pathsKnows when to use a Gateway Route and when to use a direct EIP
Generic kubectl adviceKube-DC-specific templates and workflows

Available skills​

SkillWhat It Does
create-projectCreate a project with VPC networking and correct network type
deploy-appDeploy an app as an Application (from an image or a GitHub repository) or as a plain workload, with optional storage, managed database and HTTPS; keyless deploys, builds on push and pull request previews from GitHub, with a managed container registry or your own
deploy-web-stackWeb app + managed database + volume + HTTPS hostname (no public IP) in one procedure; WordPress, CMSs, APIs
create-vmProvision a VM with Project-key SSH or use the managed SSH ephemeral pilot when available
create-databaseCreate a managed database (PostgreSQL, MySQL, MariaDB, ClickHouse) or Valkey cache as a ManagedService, deliver its credentials with a ServiceBinding Secret, back up and restore
manage-database-credentialsDeliver credential roles to workloads as Secrets and rotate them on demand or on a schedule
expose-serviceExpose through Gateway Route (HTTPS) or Direct EIP (TCP/UDP)
manage-clusterScale workers, upgrade K8s version, access kubeconfig
manage-networkingCreate EIPs and FIPs, expose selected ports, attach a Project to an Organization-authorized routed network
manage-storageS3 buckets (OBC), DataVolumes, PVCs
manage-accessOrganizationGroup RBAC and role management
manage-secretsProject secrets backed by OpenBao, synced to Kubernetes Secrets
manage-certificatesX.509 certificates from the Organization private CA or public ACME
manage-kmsPer-Project encryption keys + envelope encryption helpers (Go/Python)
check-quotaInspect Organization and Project resource quotas before deploying
ssh-into-vmConnect to a VM through managed SSH or the Project-key path
use-kube-dc-cliAuthentication, context switching and Project selection through the kube-dc CLI
install-kube-dcFor platform operators: plan and install a new Kube-DC platform (host and disk checks, network, front door, Ceph, DNS, certificates) with the kube-dc CLI

Install skills​

There are three ways to add Kube-DC skills to your IDE, depending on your setup:

The skills CLI can install the catalog globally or into one workspace. A global install makes the selected skills available across workspaces for the targeted coding agents.

# Install all Kube-DC skills globally (available in every workspace)
npx skills add kube-dc/kube-dc-public -g --all

# Or install specific skills only
npx skills add kube-dc/kube-dc-public --skill create-vm --skill deploy-app -g

# Or install to current workspace only (without -g)
npx skills add kube-dc/kube-dc-public -y

The CLI supports many coding agents. Let it detect installed clients, or pass --agent <name> to target one explicitly; use the upstream Supported Agents table for current identifiers and paths.

Installation locations vary by agent and scope. Verify the result with npx skills list for the workspace or npx skills list -g for global installs instead of assuming a shared symlink layout.

tip

Use npx skills add kube-dc/kube-dc-public --list to see all available skills before installing.

Option B: System prompt / IDE settings (lightweight)​

If you can't install skills globally, you can paste the Kube-DC context into your IDE's system prompt settings. Copy the content of AGENTS.md:

IDEWhere to Paste
Claude Code~/.claude/CLAUDE.md (every project) or CLAUDE.md in one project
CursorSettings → Rules for AI → User Rules
Devin DesktopWorkspace AGENTS.md
VS Code + CopilotSettings → GitHub Copilot → Instructions
CodexWorkspace AGENTS.md (no global setting)

AGENTS.md contains the product model, the resource table (API groups and scope), the standard Project roles, safety and naming rules, and the service exposure patterns.

Limitations

The system prompt provides awareness (correct namespaces, annotations, safety rules) but not the detailed step-by-step procedures and YAML templates that skills include. For full manifest generation capability, use Option A (global skills install).

CapabilityOption A (Skills)Option B (System Prompt)
CRD reference & naming✅✅
Safety rules & constraints✅✅
Service exposure decision guide✅✅
Step-by-step procedures✅❌
Ready-to-use YAML templates✅❌
DB connection patterns✅❌
Cluster scaling/upgrade guides✅❌

Option C: Workspace install​

If you want the full package (skills + docs + examples + workflows) in a specific project:

git clone https://github.com/kube-dc/kube-dc-public.git
cd kube-dc-public
# Open this folder in your IDE

Or add it as a submodule in your own repo:

cd /path/to/your-repo
git submodule add https://github.com/kube-dc/kube-dc-public.git .kube-dc

Repository structure​

kube-dc-public/
├── AGENTS.md # Canonical instructions (all IDEs)
├── CLAUDE.md # Claude Code instructions
├── _agent-instructions.md # Short pointer to AGENTS.md
├── skills/ # 18 workflow skills
├── knowledge/
│ └── index.md # Master catalog of CRDs, skills, docs
├── .agents/skills → ../skills # Shared skill discovery
├── .claude/skills → ../skills # Claude Code discovery
├── .cursor/rules/kube-dc-conventions/ # Cursor project rules
├── .devin/ # Devin rules, skills, and workflows
├── .claude-plugin/ # Claude Code plugin and marketplace manifests
├── .well-known/agent-skills/ # Skill index for web discovery
├── docs/ # Full documentation
└── examples/ # Ready-to-use YAML manifests

Verify skill discovery​

Do not infer discovery from a directory name. Ask the installer which skills are available at each scope:

npx skills list
npx skills list -g

Test the skills​

Open any project in your IDE with the skills installed globally or in that workspace, then try:

Create a Project called "production" in Organization "acme" with cloud networking.
Deploy a PostgreSQL HA database called "app-db" in Project "production" in Organization "acme".
Show me how to connect my app to it.
Create an Ubuntu VM with SSH access in Project "production" in Organization "acme".
How do I SSH into it?
Expose my nginx service over HTTPS with auto TLS in Project "production" in Organization "acme".

The agent generates correct Kube-DC manifests, with the right CRD schemas, annotations, and namespace patterns, and you correct nothing by hand.


Step 0: Get your Kube-DC kubeconfig​

All integrations below require a valid Project context in a kubeconfig for the Kube-DC management cluster. An Organization login creates one context for each accessible Project; each context selects that Project's backing namespace.

  1. Log in to the Kube-DC console
  2. On the project Overview, under Command-line access, click Get kubeconfig
  3. Run the displayed commands: they install the kube-dc CLI, sign you in (kube-dc login --domain <domain> --org <organization>) and select the Project (kube-dc use <domain>/<organization>/<project>). The login writes one context per Project to your kubeconfig.

The contexts are written to ~/.kube/config by default. A local MCP server uses the current context, so select the Project first. Verify it works:

kube-dc config show

See CLI & Kubeconfig for full setup instructions.


Claude Code​

Claude Code is Anthropic's terminal-based AI agent. It can read files, run commands, manage Git, and, with MCP, work with your Kubernetes cluster from the terminal.

Install the MCP server​

# Add Kubernetes MCP to Claude Code (one-time setup)
claude mcp add kubernetes -- npx mcp-server-kubernetes

This reads your ~/.kube/config automatically. Verify the connection:

claude mcp list

Example workflows​

After they connect, use natural language in the Claude Code terminal:

> Show me all pods that are not running in Project production in Organization acme
> Why is the nginx deployment failing?
> Apply this deployment manifest and wait for it to be ready
> Get the logs from the last crashed container in pod my-app-xxx
> Scale the api-server deployment to 3 replicas

Claude Code chains several kubectl operations automatically. When a pod is crashing, for example, it fetches the events and the logs, and describes the pod, in one response.

Use agent skills with Claude Code​

Open the kube-dc-public repo in Claude Code. It contains:

  • CLAUDE.md: loaded automatically, references @_agent-instructions.md (which points to the canonical AGENTS.md) and @knowledge/index.md
  • .claude/skills/: 18 workflow skills (symlink to skills/)

With both MCP and skills, Claude Code can generate correct Kube-DC manifests and apply them directly. See Agent skills setup.

Restrict destructive tools​

The npm MCP server can hide destructive tools while retaining create, update, patch, and scale operations:

claude mcp add kubernetes-safe \
--env ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS=true \
-- npx mcp-server-kubernetes

This is not read-only access. For inspection-only sessions, use the containers/kubernetes-mcp-server binary with --read-only, shown in the VS Code section, or a dedicated read-only Kubernetes ServiceAccount.


Cursor​

Cursor is a VS Code fork built around AI pair programming. It supports MCP servers through its AI configuration.

Configure Cursor MCP​

Create or edit ~/.cursor/mcp.json:

{
"mcpServers": {
"kubernetes": {
"command": "npx",
"args": ["mcp-server-kubernetes"]
}
}
}

Restart Cursor. The Kubernetes MCP server will start automatically when Cursor's AI features are used.

Use Cursor MCP​

Open the Cursor chat (Cmd+L / Ctrl+L) and ask questions about your cluster:

@kubernetes list all pods in backing namespace acme-production that have been restarting
@kubernetes describe the ingress for my-app and check if the service exists
@kubernetes what is the resource usage against quota in Project production in Organization acme?

Cursor can also generate and apply manifests directly from the chat, editing files and running kubectl apply in sequence.

Use agent skills with Cursor​

Instead of a generic .cursorrules file, open the kube-dc-public repo in Cursor. It contains:

  • AGENTS.md: Cursor reads this automatically for Kube-DC context
  • .cursor/rules/kube-dc-conventions/RULE.md: always-on rules for namespace patterns, CRD naming, and safety constraints

Cursor then knows the Kube-DC CRDs, annotations, and naming conventions, which a hand-written rules file does not cover. See Agent skills setup.


Devin Desktop​

Devin Desktop, the new name for Windsurf, runs the Devin Local agent, which supports MCP.

Configure Devin Local MCP​

Add the Kubernetes server at user scope so it is available across workspaces:

devin mcp add -s user kubernetes -- npx -y mcp-server-kubernetes
devin mcp list

Devin Local stores user-scoped servers in ~/.config/devin/mcp_config.json on macOS and Linux, or %APPDATA%\devin\mcp_config.json on Windows. Use -s project instead to write a shared .devin/mcp_config.json in the current workspace. See the official Devin CLI MCP configuration.

Use the Kubernetes MCP​

Ask Devin Local to use the Kubernetes tools when you describe an infrastructure task:

Deploy the image ghcr.io/acme/notes:1.4.0 to Project production in Organization acme.
Check whether all pods in backing namespace acme-production are healthy.
Summarize any issues.

The agent can chain file edits, terminal commands, and MCP tool calls in a single flow: writing the Application manifest (or a Deployment and Service), applying it, and checking its status.

Use agent skills with Devin Desktop​

Install the catalog through Option A and let the skills CLI detect the installed client, or use the current identifier from its Supported Agents table. Confirm discovery with npx skills list -g. Devin Desktop also discovers the repository root AGENTS.md and preferred .devin/ configuration.


VS Code​

VS Code supports Kubernetes cluster management with dedicated extensions and with MCP through GitHub Copilot.

Essential extensions​

Kubernetes
The official Kubernetes extension provides a full cluster browser in the VS Code sidebar:

  • Browse namespaces, pods, deployments, services, and more
  • View and edit live resources
  • Stream pod logs directly in the editor
  • Supports several kubeconfig contexts, so you switch between Kube-DC Projects at once

YAML
Provides schema validation and autocompletion for Kubernetes manifests. YAML files containing apiVersion: and kind: are automatically validated against Kubernetes schemas.

GitLens (optional)
Recommended for GitOps workflows where your manifests live in Git.

MCP with VS Code + GitHub Copilot​

VS Code + GitHub Copilot supports MCP through a workspace configuration. Create .vscode/mcp.json:

{
"servers": {
"kubernetes": {
"command": "npx",
"args": ["mcp-server-kubernetes"]
}
}
}

With this enabled, open the Copilot chat (Ctrl+Alt+I), switch to Agent mode and ask:

Show me all crashlooping pods in Project production and suggest fixes
Generate a Deployment for nginx with resource limits that fit the Project quota

Alternative: Red Hat Kubernetes MCP server​

The Red Hat kubernetes-mcp-server is a single-binary MCP server with no external dependencies (no Node.js or kubectl needed):

# Download the binary for your platform
curl -L https://github.com/containers/kubernetes-mcp-server/releases/latest/download/kubernetes-mcp-server-linux-amd64 \
-o ~/.local/bin/kubernetes-mcp-server && chmod +x ~/.local/bin/kubernetes-mcp-server

Save as .vscode/mcp.json:

{
"servers": {
"kubernetes": {
"command": "kubernetes-mcp-server",
"args": ["--read-only"]
}
}
}

Recommended for production use due to its safety modes and single-binary deployment.


MCP server capabilities​

Kubernetes MCP servers expose different tool sets. Kube-DC standard Project roles can inspect events and logs, but they do not grant pod exec, pod attach, pod port-forward, or VM/VMI port-forward, and they cannot patch or update pods: changing a running pod's labels or annotations (kubectl label pod, kubectl annotate pod) is refused. Change the Deployment's pod template instead, which rolls out new pods, or delete the pod and let its controller recreate it. An admission policy also blocks exec and attach in Project backing namespaces, even if a custom Role grants those subresources. Port-forward has a different boundary: a platform operator can grant it through separate diagnostic RBAC. Use an External IP, LoadBalancer, Gateway Route, or the VM browser console for normal interactive access. Common capabilities, subject to the kubeconfig's RBAC, include:

OperationExample natural language prompt
List resources"Show all pods in backing namespace acme-production"
Describe resource"Describe the ingress my-app and check if the backend service exists"
Get logs"Get logs from the last crashed container in pod api-xxx"
Apply manifest"Apply this deployment YAML to the current Project"
Scale"Scale the api deployment to 3 replicas"
Delete"Delete all completed jobs in backing namespace acme-production"
Helm"Install this application chart in the current Project"
Diagnose"Why is my pod in CrashLoopBackOff? Walk through logs, events, and describe"
Quota check"What is the CPU and memory usage against quota for my organization?"

Practical Kube-DC workflows​

Deploy WordPress with managed database​

Deploy WordPress with a managed HA MariaDB database in Project production in Organization acme.
Expose it over HTTPS with auto TLS.

With Agent Skills loaded or the hosted MCP endpoint, the agent will: create a MariaDB ManagedService (WordPress core has no PostgreSQL driver) on the mariadb-production plan because the prompt asks for HA (mariadb-development otherwise) and a ServiceBinding for its owner credential, wait for both to become Ready, deploy WordPress so that it reads the delivered credentials and keeps its files on a data volume (with the agent skills, as an Application where your provider runs Applications), and report its HTTPS address (no public IP is used). The full manifest set is in Deploy a full WordPress stack.

Deploy an app from GitHub with previews​

Deploy the repository acme/notes to Project production in Organization acme, built on every push,
with a preview for each pull request in Project staging. Tell me its address.

With the hosted MCP endpoint, the agent first checks whether the installation creates Applications (applications.enabled and applications.create in https://backend.<domain>/api/platform/info) and asks where images go (a managed registry or your own). Where both are true, it calls deploy_app with buildFrom and reports the address from rollout_status; the app is an Application, and the console's Applications view and kube-dc app status notes show the same app. Where they do not, it sets up your own GitHub Actions workflow with connect_repository, which adds deploy.yml and a preview.yml for the pull request previews (see Build in your own GitHub Actions workflow).

Roll back an app​

The last release of notes in Project production is broken. Roll it back and tell me which release is running.

The agent calls rollback after you confirm. An Application stays on that release until you resume deploys (rollback with resume: true, or kube-dc app resume notes). A rollback does not undo database migrations. See Roll back an application.

Give an app a secret​

Create a secret for the Stripe API key of notes in Project production and use it in the app.

The agent calls create_secret and gives you the secret's console page, where you type the value; the value never passes through the conversation. It then calls deploy_app with secretEnv. See Secrets Manager.

Create a VM with SSH access​

Create an Ubuntu 24.04 VM called "dev-box" with 4 CPU cores and 8GB RAM
in Project production in Organization acme. I need to SSH into it from outside the cluster.

On the full hosted MCP endpoint, ask the agent to call vm_ssh with the list-images action for your Project. If it offers the OS you want, use create with the exact alias. The agent can follow the same operation ID through enrollment and use get-access to report your username, host fingerprint and connection options. To connect with a personal key, provide its public half. Your private key stays on your workstation. If you choose a Project-key VM, ask for the separate create_vm flow. Managed SSH action workflow

Scale a Managed Cluster​

Scale the "production-cluster" Managed Cluster worker pool to 5 replicas in Project production in Organization acme.
Also show me how to access the cluster's kubeconfig.

The agent will: use a JSON patch targeting the requested pool replica field, extract the external workstation kubeconfig from the {cluster}-cp-admin-kubeconfig-external Secret (admin.conf), and write it to a temp file.

Expose a gRPC service​

I have a gRPC service running on port 50051 in Project production in Organization acme.
Expose it externally through a dedicated public IP.

The service annotations create HTTPRoute or TLSRoute resources; they do not create a GRPCRoute. Use a Direct EIP + LoadBalancer Service for ordinary gRPC/TCP exposure and configure TLS in the application. Platform operators can instead configure an explicit GRPCRoute and backend protocol policy.

Debug a failing deployment​

The deployment my-api in backing namespace acme-production is not ready.
Check the pod events, describe the deployment, get the last 100 lines of logs,
and tell me what is wrong and how to fix it.

Create an S3 bucket and connect it to an app​

Create an S3 bucket called "uploads" in Project production in Organization acme.
Show me how to mount the credentials in my deployment.

The agent will: create an ObjectBucketClaim with the required kube-dc.com/organization label, and show the envFrom pattern for mounting the auto-created Secret and ConfigMap.


Security considerations​

  • Use a genuinely read-only server mode (--read-only) or a read-only ServiceAccount when only inspection is needed
  • Use a dedicated ServiceAccount with minimal RBAC instead of a cluster-admin kubeconfig when sharing MCP access with a team
  • Never commit kubeconfig files to Git repositories
  • Treat the selected backing namespace as context, not a security boundary: Kubernetes RBAC determines what the credential may access
  • Kube-DC uses short-lived access tokens with refresh support; rerun kube-dc login when the session can no longer refresh

Further reading​