edgescaleai-cube-mcp

v0.3.68
edgescaleai-cube-mcp Checked 8 hours ago Published 1 day ago

MCP server for EdgescaleAI Cube operations

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_environments

List Apollo environments with their IDs and RIDs. Optionally filter by name substring.

ParameterTypeDescription
searchstringOptional name substring to filter by (case-insensitive). Example: "pep".

install_entity

Install a Helm chart entity on an Apollo environment. Refused when an entity of the same name is managed by a module, unless force=true.

ParameterTypeDescription
entity_name *stringHelm chart name (e.g. mosquitto).
environment *stringTarget environment name or RID.
product_id *stringProduct maven coordinate "groupId:artifactId".
config_overridesstringOptional JSON config overrides.
forcebooleanBREAK-GLASS ONLY. Default false. Required to write config on an entity managed by a module (entity_health shows 'Managed by module'); without it the call is refused and nothing is written. Change a mo…
k8s_namespacestringKubernetes namespace. Defaults to default.
versionstringVersion for the config override block (e.g. '4.11.3'). If omitted, uses '0.0.0' (new installs have no reported version yet).

entity_health

Get health and activity status of entities in an Apollo environment. For every entity whose health is not HEALTHY (and every entity matched by entity_id), also lists the health checks behind that status: failing checks with their message, and containers that are not live or ready. Those messages are written by the app itself; relay them as the app's report, not as a diagnosis.

ParameterTypeDescription
environment *stringEnvironment name or RID.
entity_idstringOptional entity display name to filter by. Health checks are then listed for every match, healthy or not.

plan_details

Get detailed plan information for an entity, including tasks, events, and error logs.

ParameterTypeDescription
entity_name *stringEntity display name (substring match).
environment *stringEnvironment name or RID.
plan_indexintegerWhich plan to show (0 = most recent). Defaults to 0.

cancel_active_plan

Cancel (interrupt) the currently active plan for an entity. Finds the entity's running plan, identifies the agent executing it, and interrupts the plan. The agent re-registers automatically on next heartbeat. Use plan_details first to confirm there is an active plan before cancelling.

ParameterTypeDescription
entity_name *stringEntity display name (substring match).
environment *stringEnvironment name or RID.

acr_get_token

Get an OAuth2 access token from Apollo Container Registry.

build_image_prepare

Begin a remote (Docker-daemonless) image build. Returns a job_id, a presigned S3 upload_url to PUT the build-context tarball to, and the s3_key. Follow with build_image_start, then poll build_image_status.

ParameterTypeDescription
image_name *stringBare image name (no registry/repo prefix, no tag), e.g. 'my-app'.
tag *stringImage tag, e.g. the app version '1.2.3'.

build_image_start

Launch the remote kaniko build for a prepared job (after the context tarball has been uploaded to the presigned URL). The ACR push token is minted server-side. Returns a task_arn; poll build_image_status until the state is SUCCEEDED or FAILED.

ParameterTypeDescription
job_id *stringjob_id from build_image_prepare.
build_argsobjectOptional build-time args as {name: value}.
dockerfilestringDockerfile path relative to the context root. Defaults to 'Dockerfile'.
platformstringTarget platform. Defaults to 'linux/amd64' (the cube architecture).
targetstringOptional build stage to target in a multi-stage Dockerfile.

build_image_status

Poll a remote build job. Returns state (PENDING|RUNNING|SUCCEEDED|FAILED); on SUCCEEDED includes image_uri, on FAILED includes stopped_reason, and on terminal states includes a logs_tail.

ParameterTypeDescription
job_id *stringjob_id from build_image_prepare.

uninstall_entity

Uninstall an entity from an Apollo environment. Removes the specified entity (Helm chart) via a change request. Use entity_health to find entity names and plan_details to monitor uninstall progress.

ParameterTypeDescription
entity_name *stringEntity display name or entity name (substring match, e.g. "mosquitto").
environment *stringEnvironment name or RID (e.g. "pep-onlogicmc610-4").

update_entity_config

Update configuration overrides for an entity in an Apollo environment. REPLACES the entity's whole config overrides (Helm value overrides) with the object given. Use entity_health to see the current overrides and whether the entity is managed by a module before updating. A module-managed entity is refused: change it with update_module_variables on its module. force=true overrides that for break-glass situations only, because the entity-level config then takes precedence over the module and later module changes silently stop applying.

ParameterTypeDescription
config_overrides *stringJSON object of config overrides (e.g. '{"replicaCount": 2}'). Replaces the existing overrides entirely, so include every value to keep. Values entity_health shows as <hidden, N chars> must be supplied…
entity_name *stringEntity display name or entity name (substring match).
environment *stringEnvironment name or RID (e.g. "pep-onlogicmc610-4").
forcebooleanBREAK-GLASS ONLY. Default false. Required to write config on an entity managed by a module (entity_health shows 'Managed by module'); without it the call is refused and nothing is written. Change a mo…
versionstringVersion for the config override block (e.g. '4.11.3'). If omitted, uses the entity's current reported version.

enforce_entity_config

Force config re-enforcement on an entity. Re-submits current config overrides, triggering Apollo to create a new enforce config plan. Useful when config has drifted or a previous enforcement failed.

ParameterTypeDescription
entity_name *stringEntity display name or entity name (substring match).
environment *stringEnvironment name or RID (e.g. "pep-onlogicmc610-4").

list_modules

List modules installed on an Apollo environment. Shows display names, maven coordinates, state, variables, and RIDs. Use this before updating variables or unlinking a module. NOTE: values of secret-looking variables (authToken, password, secret, key, ...) are shown as '<hidden, N chars>' and CANNOT be read back — never copy that placeholder into a write; it is refused. For a non-admin profile this tool does not show the Teleport multi-app module's `apps` list either: use list_exposed for the apps on a cube.

ParameterTypeDescription
environment *stringEnvironment name or RID (e.g. "pep-onlogicmc610-4").
searchstringOptional substring to filter modules by name or coordinate (case-insensitive).

install_module

Install a module on an Apollo environment. Modules are collections of related entities managed together. If already installed, use update_module_variables to change variables. The Teleport Multi-App Service module (the one behind exposed apps) is managed only through expose, unexpose and list_exposed for non-admin profiles, and this tool refuses it.

ParameterTypeDescription
environment *stringTarget environment name or RID (e.g. "pep-onlogicmc610-4").
maven_coordinate *stringModule maven coordinate (e.g. "module:builtin-control-plane-minimal:0.0.40").
display_namestringOptional display name for the module installation.
ignore_secret_requirementsbooleanIf true, allows installation even if required secrets are not set.
variablesstringOptional JSON object of module variables as {"varName": "value", ...}.

uninstall_module

Unlink a module from an Apollo environment. This does NOT remove the apps/pods the module installed — they keep running as standalone deployments. The tool returns the list of those apps/pods plus cleanup guidance: ask the user to confirm before removing any, refer to them as apps/pods (not "entities") when talking to the user, and remove confirmed ones with the uninstall_entity tool. The Teleport Multi-App Service module (the one behind exposed apps) is managed only through expose, unexpose and list_exposed for non-admin profiles, and this tool refuses it.

ParameterTypeDescription
environment *stringEnvironment name or RID (e.g. "pep-onlogicmc610-4").
module_name *stringModule display name or maven coordinate substring (e.g. "control-plane").

update_module_variables

Update variables on an installed module. MERGE semantics: the variables you pass are merged onto the installation's existing variables — only the keys you include change; every other variable is left at its current value. Pass every variable you intend to change in a single call (an omitted variable is preserved, not reset; this tool cannot unset a variable). Apollo's underlying update is a full-installation replace, so the tool reads the current variables and resends the complete set with your changes applied. The change is submitted as a change request that may require approval before it t…

ParameterTypeDescription
environment *stringEnvironment name or RID (e.g. "pep-onlogicmc610-4").
module_name *stringModule display name or maven coordinate substring.
variables *stringJSON object of variables to update as {"varName": "newValue", ...}.

expose

Publish a running in-cluster service at a public URL, scoped by company label. Mints a fresh short-lived App Service join token from the cube-mcp bot identity (no human Teleport account needed) and adds/updates this app on the environment's shared Teleport multi-app-service module (one shared module per environment — re-running expose for the same app updates it in place, it never duplicates). Returns the app's URL, https://<app_name>-<cube>.<cube-mcp apex>: open it in a browser and sign in with the same login as cube-mcp. Hand out THAT url — never Teleport's own address, which needs a Tel…

ParameterTypeDescription
app_name *stringBase app name (e.g. "trino"). Auto-suffixed with the environment name for uniqueness across cubes ("trino-<env>"); that qualified name becomes the leftmost label of the public URL, and is what you pas…
app_uri *stringInternal service URI, e.g. "http://svc.namespace.svc.cluster.local:8080". Use the REAL service + targetPort — a wrong port surfaces as Teleport "context deadline exceeded".
environment *stringApollo environment / cube to expose the app on (e.g. "pep-onlogicmc610-4").
companystringThe app company to expose this app TO — who can see it. Omit for the profile's home company. If the user's profile holds more than one app company, ASK the user which company should see this app bef…
labelsstringJSON OBJECT of extra Teleport labels for this app, e.g. '{"app-type": "console"}'. Merged under the resolved company, which this cannot set. Omit to leave existing extra labels untouched. Mainly for m…
public_addrstringRarely needed. Overrides the app's TELEPORT public address — a Teleport-registration detail, NOT the URL this tool publishes (that is always the browser-proxy host, derived from app_name). Keep it c…
rewrite_headersstringJSON ARRAY of headers the app service rewrites on requests it forwards to your service, each as "Name: value" — e.g. '["Host: app.internal"]'. Two uses: (1) selecting an nginx-ingress vhost — the…

unexpose

Take a company off a previously-exposed app (or off every app it is on, with all=true) on the environment's shared Teleport multi-app-service module. An app stays exposed while any other company remains on it and is deleted once none does. Mints a fresh join token and updates the module in place; once no apps remain, the module is automatically unlinked and its underlying entity uninstalled — no separate confirmation step, since calling this tool already is the confirmation. Use the same app_name/public_addr you passed to expose. An app name that doesn't exist and one you don't have permissi…

ParameterTypeDescription
environment *stringApollo environment / cube the app was exposed on (e.g. "pep-onlogicmc610-4").
allbooleanTake the company off every exposed app it is on in one call, tearing the module down once nothing remains, instead of minting a fresh token per app. Mutually exclusive with app_name/public_addr.
app_namestringBase app name as originally passed to expose (auto-qualified the same way; pass the same value, NOT the qualified name from list_exposed). Mutually exclusive with all.
companystringThe app company to remove. Omit to remove the profile's home company. Naming any other company takes the app away from that company's users: only do it when the user explicitly asks for that company t…
public_addrstringMust match the public_addr originally passed to expose, if any (disables auto-qualification the same way).

list_exposed

List apps currently exposed on an environment's shared Teleport multi-app-service module (the apps expose/unexpose manage) — name, who it is visible to, and for apps you can reach, internal URI and public URL. The URL per app is the one to hand out: browser-reachable with the same login as cube-mcp. Use this before expose/unexpose to see what's already there. Apps you cannot reach are either omitted or listed by name and audience only, depending on the stack.

ParameterTypeDescription
environment *stringApollo environment / cube to list exposed apps on (e.g. "pep-onlogicmc610-4").

create_secret

Create a secret for an entity in an Apollo environment. Provide secret_value for a single value (stored as a key matching the secret name), or secret_keys as a JSON object for multiple key-value pairs.

ParameterTypeDescription
entity_name *stringEntity display name or entity name (substring match).
environment *stringEnvironment name or RID (e.g. "pep-onlogicmc610-4").
secret_name *stringName for the secret (e.g. "mqtt-credentials").
descriptionstringOptional description for the secret.
secret_keysstringJSON object of key-value pairs (e.g. '{"username": "admin", "password": "secret"}').
secret_valuestringValue for a single-value secret (stored as key=secret_name). Mutually exclusive with secret_keys.

update_secret

Update an existing secret for an entity. Provide secret_key and secret_key_value to set a specific key, or secret_value to set the key matching the secret name.

ParameterTypeDescription
entity_name *stringEntity display name or entity name (substring match).
environment *stringEnvironment name or RID (e.g. "pep-onlogicmc610-4").
secret_name *stringName of the existing secret to update.
descriptionstringNew description for the secret.
secret_keystringKey name to set/update in the secret.
secret_key_valuestringValue for the key specified by secret_key.
secret_valuestringNew value (sets the key matching secret_name).

list_products

List available products in Apollo. Products represent deployable software (Helm charts, assets). Use this to discover product IDs for install_entity.

ParameterTypeDescription
page_sizeintegerNumber of products to return (default 50, max 200).
searchstringOptional substring to filter products by name or ID (case-insensitive).

compare_product_versions

Compare what version of a product is installed across multiple environments. Shows installed version, rollout status, health, and release channel.

ParameterTypeDescription
environments *stringComma-separated environment names (e.g. "pep-onlogicmc610-4, joel-cube").
product_id *stringProduct maven coordinate "groupId:artifactId" (e.g. "com.edgescaleai-cube:esai-platform-z").

list_release_channels

List available Apollo release channels. By default only shows ordinary (non-environment-specific) channels.

ParameterTypeDescription
include_env_specificbooleanIf true, also show environment-specific channels.
searchstringOptional substring to filter channels by name (case-insensitive).

get_product_releases

Get release history for a product, showing versions and their release channels.

ParameterTypeDescription
product_id *stringProduct maven coordinate "groupId:artifactId" (e.g. "com.edgescaleai-cube:esai-platform-z").
page_sizeintegerNumber of releases to return (default 10, max 50).

cube_status

Get the status of a Cube node (server-side kubectl via tbot). Works for physical and virtual cubes; a virtual cube is marked as such.

ParameterTypeDescription
cluster *stringCube cluster name (from cube_list). An Apollo namespace or cube serial of a cube you can see also works.

cube_list

List available Cube clusters accessible via server-side tbot.

kubectl_exec

Execute a kubectl command server-side. Destructive commands (delete, apply, create, etc.) are blocked.

ParameterTypeDescription
cluster *stringTarget Cube cluster name (from cube_list).
command *stringkubectl command without the "kubectl" prefix. Example: "get pods -n default".

app_list

List exposed apps across the Teleport tenant (server-side via tbot), with each app's public URL — browser-reachable with the same login as cube-mcp. Use list_exposed for one cube's apps and their company labels.

ParameterTypeDescription
companystringOptional filter by company label (e.g. "edgescaleai", "lear").

list_services

List Kubernetes Services running in a cube's cluster, with a ready-made internal app_uri suggestion per port. Use this to find what's available before calling expose — picking the wrong port surfaces as Teleport "context deadline exceeded".

ParameterTypeDescription
environment *stringApollo environment / cube to list services on (e.g. "pep-onlogicmc610-4").
namespacestringOptional Kubernetes namespace to filter to. Omit to list across all namespaces, which hides known infra/system namespaces (kube-system, openshift*, groundcover, teleport, etc.) by default — pass one…

groundcover_list_clusters

List the cubes you are authorized to read that are reporting to Groundcover. Authorization is scoped to the cubes your account can see in Apollo (admins see all). Start here to find a valid 'cube'.

groundcover_list_workloads

List Kubernetes workloads (deployments/pods) and their health (cpu, memory, rps, error rate, pod count, readiness, issues) for one cube. Scoped to your cube.

ParameterTypeDescription
cube *stringCube/cluster name you are authorized for (see groundcover_list_clusters).
limitintegerMax workloads (1-1000). Defaults to 100.
namespacestringOptional k8s namespace filter.

groundcover_query_metrics

Query Groundcover metrics for one cube. The PromQL is built server-side and always pinned to your cube (cluster label) — you cannot read another cube. Omit start/end for an instant query; provide both for a range query.

ParameterTypeDescription
cube *stringCube/cluster name you are authorized for.
metric *stringMetric name, e.g. "groundcover_host_cpu_usage_percent" (whole-host CPU) or "groundcover_pvc_usage_percent" (volume fill). NOTE names are host-/node-/pvc-prefixed: a bare "groundcover_cpu_usage_percent…
aggregationstringOptional. Range fns need a window: rate, irate, increase, delta, idelta, deriv. Instant aggregations: sum, avg, min, max, count, stddev, stdvar.
endstringRFC3339 end time (range query).
matchobjectOptional extra label matchers as {label: value} (exact). The "cluster" label is reserved and pinned to your cube.
startstringRFC3339 start time (range query).
stepstringRange step, e.g. "1m". Defaults to 1m.
windowstringRange window for rate-style aggregations, e.g. "5m".

groundcover_list_metrics

Discover metrics for one cube. Groundcover metric names are NOT standard Prometheus/k8s names (e.g. PVC fill is groundcover_pvc_usage_percent, not kube_persistentvolumeclaim_*). Call WITHOUT filter to get a families/vocabulary map (prefix + count + examples); call WITH filter (a prefix or word like 'pvc'/'disk'/'cpu') to get matching metric names to pass to groundcover_query_metrics. Scoped to your cube.

ParameterTypeDescription
cube *stringCube/cluster name you are authorized for.
endstringRFC3339 end. Defaults to now.
filterstringOptional substring to match metric names server-side (e.g. 'pvc', 'disk', 'fs', 'cpu'). Omit to see the families map.
limitintegerMax names to scan (1-5000). Defaults to 1000.
startstringRFC3339 start. Defaults to 1h ago.

groundcover_search_logs

Search logs for one cube. Always pinned to your cube. `query` uses Groundcover's log search syntax (e.g. 'level:error | limit 10').

ParameterTypeDescription
cube *stringCube/cluster name you are authorized for.
endstringRFC3339 end. Defaults to now.
limitintegerMax rows (1-1000). Defaults to 100.
querystringOptional Groundcover log search query (e.g. 'level:error'). A '| limit N' is appended automatically if absent.
startstringRFC3339 start. Defaults to 1h ago.

groundcover_search_traces

Search distributed traces for one cube. Always pinned to your cube.

ParameterTypeDescription
cube *stringCube/cluster name you are authorized for.
endstringRFC3339 end. Defaults to now.
limitintegerMax rows (1-1000). Defaults to 100.
querystringOptional Groundcover trace search query. A '| limit N' is appended automatically if absent.
startstringRFC3339 start. Defaults to 1h ago.

groundcover_k8s_events

Search Kubernetes events (e.g. crashes, OOMKills, scheduling) for one cube. Pinned to your cube.

ParameterTypeDescription
cube *stringCube/cluster name you are authorized for.
endstringRFC3339 end. Defaults to now.
startstringRFC3339 start. Defaults to 1h ago.

send_feedback

Send feedback about the Cube or Edgeport to the EdgescaleAI team. ALWAYS ASK THE USER WHICH KIND THIS IS BEFORE CALLING, unless they have already made it obvious: is something broken ('support') — or do they have an idea for something new ('feature')? The answer decides which tracker it lands in, and it is not something to guess. DO NOT promise the user a reply, a response time, or that someone will follow up: feedback is recorded and read, and there is no support rotation behind it. Say it has been recorded, and give them the reference number the tool returns. The submitter is identified fr…

ParameterTypeDescription
details *stringThe feedback itself. For a bug, include what happened, what was expected, and steps to reproduce.
feedback_type *stringsupport = something is broken or not behaving as expected; filed as a bug report. feature = the user wants a capability that does not exist yet; recorded on the product backlog. Ask the user rather th…
summary *stringOne-line title for the ticket.
business_impactstringWhy this matters — who is blocked and what it costs. REQUIRED for 'feature'. Optional for 'support': it is a reasonable thing to ask of a roadmap request and pure friction in front of a question.
contact_emailstringFallback contact address, used ONLY when the calling key has no address on file (a bot or CLI key). For a normal browser login the address is resolved server-side and anything passed here is ignored.
cubestringOptional cube the feedback is about, recorded as context.
submitter_namestringReporter's name. Defaults to the local part of their email.
submitter_rolestringReporter's role, e.g. 'Deployment Strategist'. Defaults to 'Cube MCP user'.

build_and_publish_to_apollo

Build and publish an app to Apollo Container Registry. Builds the Docker image (locally via buildx, or remotely via cube-cloud/kaniko when no local Docker daemon is present), packages the Helm chart (pure Python, honoring the chart's .helmignore), pushes to the OCI registry, and publishes the manifest via cube-cloud.

ParameterTypeDescription
app_versionstringChart appVersion, i.e. the image tag the chart deploys. When an image is built, defaults to the chart version and is the tag pushed. When no image is built (skip_docker, or no Dockerfile), appVersion…
build_argsobjectBuild-time variables passed to Docker as --build-arg key=value (e.g., {"NPM_TOKEN": "abc123"}).
build_modestringWhere to build the image. 'auto' (default) uses local docker buildx if a daemon is present, otherwise builds remotely via cube-cloud/kaniko. 'local' forces buildx; 'remote' forces the server-side buil…
bumpstringVersion bump type: "patch" (default), "minor", or "major".
chart_pathstringPath to chart directory or Chart.yaml (auto-detected if not specified).
dockerfilestringPath to the Dockerfile, if not the default in the chart directory or its parent (e.g. Dockerfile.prod).
dry_runbooleanShow what would be done without actually doing it.
platformstringTarget image platform. Defaults to 'linux/amd64' (the cube architecture).
show_build_logbooleanFor remote builds, include the kaniko build-log tail in the result on success, so build output (e.g. build-arg effects) is visible without CloudWatch access. Defaults to false to keep successful build…
skip_dockerbooleanSkip Docker build/push even if Dockerfile exists. The chart's appVersion is then kept unless app_version is given.
targetstringBuild stage to target in a multi-stage Dockerfile.
versionstringExact version to use (e.g., "1.0.0"). If not specified, bumps current version.

app_proxy

Port-forward an ALREADY-EXPOSED app to a local TCP port, via cube-cloud's WebSocket relay. No tsh needed locally. Works for ANY exposed app, HTTP or tcp://, and is the only way into a tcp:// one (the app's public URL serves HTTP/WebSocket only). Use it whenever a local port is what you want — psql, an MQTT client, scripting, port-restricted tooling. Independent of the app's public URL: both work at once and neither affects the other. Requires expose to have been run — it cannot reach a service that was never exposed.

ParameterTypeDescription
app *stringQualified app name, as shown by list_exposed / app_list.
portintegerLocal port to listen on (auto-assigned if not specified).

app_proxy_stop

Stop a running app proxy tunnel.

ParameterTypeDescription
appstringApp name to stop. If not specified, stops all proxies.

app_proxy_status

Show status of running app proxy tunnels.

agent_login_browser

Authenticate via browser login (opens sign-in page, auto-provisions API key).

agent_logout

Remove stored cube-agent API key.

agent_status

Check cube-agent authentication and connectivity status.