Practical examples of using the Control Plane MCP Server with AI assistants
This page provides practical examples of how to interact with Control Plane through AI assistants using the MCP Server. These examples work across all compatible tools.
Create a new Global Virtual Cloud with specific locations. You can use friendly location names or technical location IDs:
Create a new GVC called "production" with locations in Frankfurt, Virginia, and Dublin.
Create a new GVC called "production" with locations in aws-us-east-1 and aws-eu-west-1.
Create a GVC named "multi-cloud-app" with locations:- azure-centralus- gcp-me-west1- aws-eu-central-1
Create a GVC called "staging" with these settings:- Description: "Staging environment for QA testing"- Locations: Frankfurt, Dublin- Tags: environment=staging, team=platform
You can use friendly location names (like “Frankfurt”, “Virginia”, “Dublin”) or technical location IDs (like “aws-eu-central-1”, “aws-us-east-1”). The MCP server will resolve friendly names to the appropriate location IDs.
Create a new workload with various configurations:
Create a publicly accessible workload called "api-server" with:- Image: nginx:latest- Port: 80- Memory: 256Mi- CPU: 250m
Deploy a publicly accessible workload named "web-frontend" with these specifications:- Container image: httpd:latest- Exposed port: 80- Memory: 512Mi- CPU: 500m- Min replicas: 2- Max replicas: 5- Health check path: /
Create a cron workload called "data-processor" that:- Uses image: python:3.11-slim- Runs every hour (0 * * * *)- Has 1Gi memory- CPU: 500m- Does not need external access
The cpln CLI must be installed and configured with a profile that is authenticated to the target organization. If no Dockerfile is present, the cpln image build command will use buildpacks to automatically create an image. Control Plane images are built for the linux/amd64 platform.
Build and push a container image to the Control Plane private registry:
Build and push an image called "my-app:v1.0.0" from the current directory to the Control Plane registry in org "my-org".
Create a secret called "db-credentials" with type "opaque" containing:- DB_HOST: postgres.internal.example.com- DB_PORT: 5432- DB_NAME: myapp
Give the workload "api-server" access to the secret "db-credentials"as environment variables. Set up the identity, policy, and bindingautomatically.
Create a Docker secret called "registry-creds" for pulling images froma private registry at registry.example.com with username "deploy" andpassword "my-token".
When granting workload access to secrets, describe the desired outcome — the MCP server will automatically create the identity, policy, and workload binding in one step.
Create a policy called "viewer-workloads" that grants "view" permissionon all workloads to the group "//group/developers".
Create a policy called "api-secrets" that grants "reveal" and "use"permissions on the secret "//secret/db-credentials" to the identity"//gvc/production/identity/api-identity".
Create a domain "api.example.com" with:- DNS mode: cname- Certificate challenge: http01- Port 443 (http2) routing to workload "//gvc/production/workload/api-server"
Get the setup guide for creating an AWS cloud account with:- Provider: aws- Cloud account name: my-aws-prod- AWS account ID: 123456789012- Role ARN: arn:aws:iam::123456789012:role/cpln-my-org
Get the setup guide for creating a GCP cloud account with:- Provider: gcp- Project ID: my-gcp-project-123
Promote the configuration from GVC "staging" to "production":1. Get the current workload configurations from staging2. Update the production workloads to match staging3. Show me the differences before and after
Help me debug the workload "api-server" in production:1. Show me the current status and replica count2. Check if there are any error events3. Get the recent logs and filter for errors4. Show me the resource utilization