IBM Code Engine MCP Server
v1.4.2Deploy to IBM Code Engine from Cursor, Copilot, Claude & Cline.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
detect_container_runtime
Detect available container runtime (Docker or Podman)
build_container_image
Build a container image using Docker or Podman
| Parameter | Type | Description |
|---|---|---|
context_path * | string | Build context path |
dockerfile_path * | string | Path to Dockerfile |
image_name * | string | Image name with tag |
runtime | string | Container runtime |
push_container_image
Push container image to registry
| Parameter | Type | Description |
|---|---|---|
image_name * | string | Full image name with registry |
runtime | string |
list_local_images
List all local container images
| Parameter | Type | Description |
|---|---|---|
runtime | string |
test_container_locally
Run container locally for testing
| Parameter | Type | Description |
|---|---|---|
image_name * | string | |
env_vars | object | Environment variables |
port_mapping | string | Port mapping (e.g., 8080:8080) |
runtime | string |
icr_list_namespaces
List IBM Container Registry (ICR) namespaces in your account
| Parameter | Type | Description |
|---|---|---|
region | string | ICR region host (default: us.icr.io) |
icr_list_images
List images in IBM Container Registry (ICR)
| Parameter | Type | Description |
|---|---|---|
namespace | string | Filter by namespace (optional) |
region | string | ICR region host (default: us.icr.io) |
icr_delete_image
Delete an image from IBM Container Registry (ICR) by tag or digest
| Parameter | Type | Description |
|---|---|---|
image * | string | Full image reference to delete, e.g. us.icr.io/mynamespace/myapp:v1.0.0 |
region | string | ICR region host (default: us.icr.io) |
tag_container_image
Tag a local container image with a new name/tag — useful to retag before pushing to ICR
| Parameter | Type | Description |
|---|---|---|
source_image * | string | Existing image name/tag (e.g. myapp:latest) |
target_image * | string | New image name/tag (e.g. us.icr.io/mynamespace/myapp:v1.0.0) |
runtime | string | Container runtime (default: auto-detected) |
remove_local_image
Remove a local container image to free disk space
| Parameter | Type | Description |
|---|---|---|
image_name * | string | Image name/tag to remove (e.g. us.icr.io/mynamespace/myapp:v1.0.0) |
force | boolean | Force removal even if the image is used by a stopped container (default: false) |
runtime | string |
login_to_registry
Log in to a container registry (e.g. IBM Container Registry) so images can be pushed/pulled. Uses IBM Cloud IAM token for ICR or username/password for other registries.
| Parameter | Type | Description |
|---|---|---|
registry * | string | Registry hostname (default: us.icr.io for ICR) |
password | string | Password or API key. For ICR leave blank to use IBMCLOUD_API_KEY env var. |
runtime | string | |
username | string | Username — use "iamapikey" for ICR with an IBM Cloud API key |
inspect_container_image
Inspect a local container image — shows architecture, labels, environment variables, entrypoint, exposed ports, and layer count
| Parameter | Type | Description |
|---|---|---|
image_name * | string | Image name/tag to inspect |
runtime | string |
prune_images
Remove unused/dangling container images to reclaim disk space. By default removes only dangling images; use all=true to remove all unused images.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Remove all unused images, not just dangling ones (default: false) |
runtime | string |
write_or_modify_file
Write or update a text file in the workspace. Returns bytes written and content hash. When PROVENANCE_ENABLED=true, emits a signed provenance receipt after completion (fail-open).
| Parameter | Type | Description |
|---|---|---|
content * | string | Full file content (UTF-8 text) |
path * | string | Relative or absolute file path to write |
operation | string | create | update | auto (default auto — detect from existing file) |
ce_list_projects
List all Code Engine projects across all or a specific region
| Parameter | Type | Description |
|---|---|---|
region | string | IBM Cloud region (omit to search all regions) |
ce_get_project
Get details of a specific Code Engine project
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project ID (UUID) |
ce_create_project
Create a new Code Engine project
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name |
region * | string | IBM Cloud region (e.g. us-south, ca-tor) |
resource_group_id | string | Resource group ID (optional) |
ce_delete_project
Delete a Code Engine project
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
ce_list_applications
List applications in a Code Engine project
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
ce_get_application
Get details of a Code Engine application
| Parameter | Type | Description |
|---|---|---|
app_name * | string | |
project_id * | string |
ce_create_application
Create a Code Engine application from a container image
| Parameter | Type | Description |
|---|---|---|
image * | string | Container image reference |
name * | string | |
project_id * | string | |
env_vars | object | Key/value environment variables |
image_secret | string | Registry secret name for pulling the image (e.g. icr-pull-secret) |
port | number | Container port (default 8080) |
run_args | array | Arguments passed to the container entrypoint (run_arguments). Required for supergateway: ["--stdio", "npx -y <mcp-server>", "--outputTransport", "sse"] |
run_commands | array | Override the container entrypoint (run_commands). Rarely needed — use run_args for passing flags. |
scale_cpu_limit | string | CPU limit (e.g. 1, 0.5) |
scale_max_instances | number | Max instances (default 10) |
scale_memory_limit | string | Memory limit (e.g. 4G, 2G) |
scale_min_instances | number | Min instances (default 0) |
ce_update_application
Update an existing Code Engine application (image, scaling, etc.)
| Parameter | Type | Description |
|---|---|---|
app_name * | string | |
project_id * | string | |
image | string | New container image reference |
image_secret | string | Registry secret name for pulling the image |
run_args | array | Arguments passed to the container entrypoint (run_arguments) |
run_commands | array | Override the container entrypoint (run_commands) |
scale_cpu_limit | string | |
scale_max_instances | number | |
scale_memory_limit | string | |
scale_min_instances | number |
ce_delete_application
Delete a Code Engine application
| Parameter | Type | Description |
|---|---|---|
app_name * | string | |
project_id * | string |
ce_list_app_instances
List all running instances (pods) of a Code Engine application
| Parameter | Type | Description |
|---|---|---|
app_name * | string | |
project_id * | string |
ce_get_app_instance
Get status details for a specific running instance of a Code Engine application
| Parameter | Type | Description |
|---|---|---|
app_name * | string | |
instance_name * | string | Instance name (from ce_list_app_instances) |
project_id * | string |
ce_get_app_logs
Get logs for a Code Engine application. Retrieves logs from all running pods (or a specific instance) via the Code Engine Kubernetes API proxy.
| Parameter | Type | Description |
|---|---|---|
app_name * | string | Application name |
project_id * | string | Project ID or name |
instance_name | string | Optional: specific pod/instance name to filter to (e.g. my-app-00001-deployment-abcde). If omitted, logs from all pods are returned. |
tail_lines | number | Number of log lines to return per pod (default: 100) |
ce_list_jobs
List job definitions in a Code Engine project
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
ce_create_job
Create a job definition in Code Engine
| Parameter | Type | Description |
|---|---|---|
image * | string | Container image reference |
name * | string | |
project_id * | string | |
env_vars | object | |
scale_array_spec | string | Array indices (e.g. 0-9 for 10 instances) |
scale_cpu_limit | string | |
scale_memory_limit | string |
ce_create_job_run
Submit a job run from an existing job definition
| Parameter | Type | Description |
|---|---|---|
job_name * | string | Job definition name to run |
project_id * | string | |
name | string | Optional name for this job run |
ce_get_job
Get details of a specific Code Engine job definition
| Parameter | Type | Description |
|---|---|---|
job_name * | string | |
project_id * | string |
ce_delete_job
Delete a Code Engine job definition
| Parameter | Type | Description |
|---|---|---|
job_name * | string | |
project_id * | string |
ce_list_job_runs
List job runs in a Code Engine project
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
job_name | string | Filter by job definition name (optional) |
limit | number | Maximum results to return |
start | string | Pagination token |
ce_get_job_run
Get status and details of a job run
| Parameter | Type | Description |
|---|---|---|
job_run_name * | string | |
project_id * | string |
ce_list_secrets
List secrets in a Code Engine project
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
ce_create_secret
Create a secret in a Code Engine project (generic, registry, ssh_auth, etc.)
| Parameter | Type | Description |
|---|---|---|
data * | object | Key/value pairs (values must be base64 encoded for binary formats) |
format * | string | Secret type |
name * | string | |
project_id * | string |
ce_get_secret
Get metadata for a specific secret (keys only, no values)
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
secret_name * | string |
ce_delete_secret
Delete a secret from a Code Engine project
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
secret_name * | string |
ce_list_config_maps
List configmaps in a Code Engine project
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
ce_create_config_map
Create a configmap in a Code Engine project
| Parameter | Type | Description |
|---|---|---|
data * | object | Key/value configuration data |
name * | string | |
project_id * | string |
ce_get_config_map
Get details of a specific configmap in a Code Engine project
| Parameter | Type | Description |
|---|---|---|
config_map_name * | string | |
project_id * | string |
ce_delete_config_map
Delete a configmap from a Code Engine project
| Parameter | Type | Description |
|---|---|---|
config_map_name * | string | |
project_id * | string |
ce_list_domain_mappings
List all custom domain mappings in a Code Engine project
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
ce_get_domain_mapping
Get details of a specific custom domain mapping
| Parameter | Type | Description |
|---|---|---|
domain_name * | string | The custom domain name (e.g. starwars.cranfordpub.ca) |
project_id * | string |
ce_create_domain_mapping
Map a custom domain to a Code Engine application. Requires a TLS secret created with ce_create_tls_secret_from_pem. The domain CNAME must point to custom.<subdomain>.us-south.codeengine.appdomain.cloud (returned by this call).
| Parameter | Type | Description |
|---|---|---|
app_name * | string | Code Engine application to route traffic to |
domain_name * | string | Custom domain (e.g. starwars.cranfordpub.ca) |
project_id * | string | |
tls_secret * | string | Name of the TLS secret containing the certificate and key |
ce_create_tls_secret_from_pem
Create a TLS secret in Code Engine by reading certificate and key PEM files from disk. Use this after obtaining a cert with certbot. The cert and key are read from the given file paths and stored as a Code Engine secret of format "tls".
| Parameter | Type | Description |
|---|---|---|
cert_pem_path * | string | Absolute path to the certificate PEM file (e.g. ~/certbot/config/live/<domain>/fullchain.pem) |
key_pem_path * | string | Absolute path to the private key PEM file (e.g. ~/certbot/config/live/<domain>/privkey.pem) |
project_id * | string | |
secret_name * | string | Name for the TLS secret (e.g. my-domain-tls) |
ce_delete_domain_mapping
Delete a custom domain mapping from a Code Engine project
| Parameter | Type | Description |
|---|---|---|
domain_name * | string | The custom domain name to remove |
project_id * | string |
ce_update_secret
Update an existing Code Engine secret in-place (PATCH). Use ce_renew_tls_secret_from_pem for TLS cert renewal. For generic secrets supply a data object with the new key/value pairs.
| Parameter | Type | Description |
|---|---|---|
data * | object | New key/value data to replace the secret contents |
project_id * | string | |
secret_name * | string | Name of the secret to update |
format | string | Secret format if changing: generic, registry, tls, ssh_auth, basic_auth |
ce_refresh_icr_pull_secret
Refresh a Code Engine registry pull secret for IBM Container Registry (ICR) using the server's own IBM Cloud API key. Automatically deletes the existing secret and recreates it with fresh credentials. Use this when deployments fail with "no_revision_ready" or "unknown" status — a common cause is a stale or expired ICR pull secret. No API key input required — the server uses its own IBMCLOUD_API_KEY.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
icr_host | string | ICR registry hostname (default: us.icr.io) |
secret_name | string | Name of the registry secret to refresh (default: icr-pull-secret) |
ce_renew_tls_secret_from_pem
Renew an existing TLS secret in Code Engine by reading updated PEM files from disk. Use this when a Let's Encrypt cert has been renewed (every 90 days). Updates the secret in-place — no need to delete and recreate or update domain mappings.
| Parameter | Type | Description |
|---|---|---|
cert_pem_path * | string | Path to the renewed fullchain.pem (~ supported) |
key_pem_path * | string | Path to the renewed privkey.pem (~ supported) |
project_id * | string | |
secret_name * | string | Name of the existing TLS secret to renew |
ce_wait_for_app_ready
Poll a Code Engine application until its status becomes "ready" or a timeout is reached. Returns immediately when ready. Useful after ce_create_application or ce_update_application to confirm the new revision is live.
| Parameter | Type | Description |
|---|---|---|
app_name * | string | |
project_id * | string | |
timeout_seconds | number | Max seconds to wait (default 120) |
iam_get_token_info
Get information about the current IBM Cloud IAM token — account ID, subject, expiry time, and remaining validity. Useful for diagnosing authentication failures without exposing the token itself.
icr_create_namespace
Create a new namespace in IBM Container Registry. Required before pushing images for the first time. Uses the ICR REST API with your IBM Cloud API key.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Namespace name to create (lowercase, alphanumeric and hyphens) |
region | string | ICR host (default: us.icr.io) |
proc_build_push_deploy
PROCEDURE: Full container pipeline in one step — auto-detects Podman or Docker, builds for linux/amd64, pushes to IBM Container Registry (ICR), creates or updates a Code Engine application, waits for ready, and returns the public URL. Accepts a project name or ID. Builds the full ICR image path from namespace + app name + tag so you do not need to know ICR URLs. When PROVENANCE_ENABLED=true, emits signed receipts for Dockerfile validation and deploy completion (fail-open).
| Parameter | Type | Description |
|---|---|---|
app_name * | string | Name for the application in Code Engine (e.g. my-app) |
context_path * | string | Path to the directory containing the Dockerfile (e.g. examples/starwars-splash or ./my-app) |
icr_namespace * | string | Your IBM Container Registry namespace (e.g. my-namespace). Use icr_list_namespaces to find it. |
image_secret * | string | Name of the registry pull secret in Code Engine (e.g. icr-pull-secret). Created with ce_create_secret format=registry. |
project_id_or_name * | string | Code Engine project name (e.g. "my-project") or project ID (UUID). Use ce_list_projects if unsure. |
env_vars | object | Key/value environment variables to set on the app |
icr_host | string | ICR host (default: us.icr.io — leave blank unless using a different region) |
image_tag | string | Image version tag (e.g. v1.0.0 or latest). Defaults to "latest". |
port | number | Container port the app listens on (default 8080) |
scale_max_instances | number | Maximum running instances (default 10) |
scale_min_instances | number | Minimum running instances (default 0 = scale to zero) |
timeout_seconds | number | Max seconds to wait for app ready (default 180) |
proc_setup_custom_domain
PROCEDURE: Custom domain setup in one step — reads TLS certificate PEM files from disk (e.g. from certbot/Let's Encrypt), creates a TLS secret in Code Engine, then creates the domain mapping. Returns the CNAME target value to add in your DNS provider.
| Parameter | Type | Description |
|---|---|---|
app_name * | string | The Code Engine app to map the custom domain to |
cert_pem_path * | string | Path to the certificate chain PEM file — typically ~/certbot/config/live/<domain>/fullchain.pem |
domain_name * | string | Your custom domain (e.g. myapp.example.com) |
key_pem_path * | string | Path to the private key PEM file — typically ~/certbot/config/live/<domain>/privkey.pem |
project_id_or_name * | string | Code Engine project name or ID |
tls_secret_name * | string | Name to give the TLS secret in Code Engine (e.g. myapp-tls). Must be unique in the project. |
ce_list_app_revisions
List all revisions (deployed versions) of a Code Engine application
| Parameter | Type | Description |
|---|---|---|
app_name * | string | |
project_id * | string |
ce_get_app_revision
Get details of a specific revision of a Code Engine application
| Parameter | Type | Description |
|---|---|---|
app_name * | string | |
project_id * | string | |
revision_name * | string |
ce_update_job
Update an existing Code Engine job definition (PATCH)
| Parameter | Type | Description |
|---|---|---|
job_name * | string | |
project_id * | string | |
env_vars | object | Key/value environment variables |
image | string | New container image reference |
image_secret | string | |
scale_array_spec | string | Array indices to run (e.g. "0-9") |
scale_cpu_limit | string | |
scale_memory_limit | string |
ce_update_config_map
Update an existing Code Engine configmap (PATCH)
| Parameter | Type | Description |
|---|---|---|
config_map_name * | string | |
data * | object | New key/value data to replace configmap contents |
project_id * | string |
ce_update_domain_mapping
Update an existing Code Engine custom domain mapping (PATCH) — e.g. change the target app
| Parameter | Type | Description |
|---|---|---|
domain_name * | string | |
project_id * | string | |
app_name | string | New application to route traffic to |
tls_secret | string | New TLS secret name (optional) |
ce_list_bindings
List all service bindings in a Code Engine project (bindings connect IBM Cloud services to apps/jobs)
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
ce_create_binding
Create a service binding to connect an IBM Cloud service instance to a Code Engine component
| Parameter | Type | Description |
|---|---|---|
component_name * | string | Name of the CE app or job to bind the service to |
component_resource_type * | string | Resource type of the component |
project_id * | string | |
secret_name * | string | Name of the operator secret referencing the IBM Cloud service instance |
prefix | string | Prefix for environment variable names injected into the component (optional) |
ce_get_binding
Get details of a specific service binding in a Code Engine project
| Parameter | Type | Description |
|---|---|---|
binding_id * | string | The binding ID (use ce_list_bindings to find it) |
project_id * | string |
ce_delete_binding
Delete a service binding from a Code Engine project
| Parameter | Type | Description |
|---|---|---|
binding_id * | string | |
project_id * | string |
ce_get_project_status
Get the status details of a Code Engine project (readiness, enabled components, etc.)
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
ce_list_egress_ips
List the public egress IP addresses used by a Code Engine project (useful for allowlisting in firewalls)
| Parameter | Type | Description |
|---|---|---|
project_id * | string |