MCP server for EdgescaleAI Cube operations
Project description
cube-mcp
MCP server for EdgescaleAI Cube management and Apollo deployments.
Architecture
cube-agent runs locally as an MCP server (via npx cube-mcp). It handles authentication, Docker builds, Helm chart packaging, and app proxy tunnels. Server-side operations (Kubernetes, Teleport, Apollo) are proxied to cube-cloud, a FastAPI backend hosted on AWS ECS.
Claude Code <--> cube-agent (local MCP) <--> cube-cloud (ECS) <--> Teleport / Apollo / K8s
Install
npx cube-mcp
Add to Claude Code
claude mcp add cube -- npx cube-mcp
Getting Started
You: "Log me in" → agent_login_browser (opens browser for Cognito login)
You: "Connect to staging" → cube_cluster_login (merges kubeconfig)
You: "Show Cube status" → cube_status
Tools
Auth
| Tool | Description |
|---|---|
agent_login_browser |
Log in via browser (Cognito) |
agent_login |
Log in with an API key |
agent_logout |
Remove stored API key |
agent_status |
Check auth and connectivity |
Kubernetes
| Tool | Description |
|---|---|
cube_list |
List available Cube clusters |
cube_status |
Get node status for a cluster |
cube_cluster_login |
Get kubeconfig for a cluster |
kubectl_exec |
Run kubectl commands (server-side) |
Apollo Environments
| Tool | Description |
|---|---|
list_environments |
List Apollo environments |
create_environment |
Create a new environment |
replicate_environment |
Clone an environment |
install_entity |
Install a Helm chart entity |
entity_health |
Get entity health status |
plan_details |
Get plan tasks, events, and error logs |
Build & Publish
| Tool | Description |
|---|---|
build_and_publish_to_apollo |
Build Docker image, package chart, push to ACR, publish manifest |
acr_get_token |
Get Apollo Container Registry token |
apollo_publish_manifest |
Publish a manifest YAML |
Apps
| Tool | Description |
|---|---|
app_list |
List Teleport apps |
app_proxy |
Start local proxy tunnel to an app |
app_proxy_stop |
Stop running proxies |
app_proxy_status |
Show proxy status |
Local Development
# Install dependencies
uv sync --dev
# Run tests
uv run pytest packages/ -v
# Run cube-agent locally (for debugging)
uv run cube-agent
To test with Claude Code, point the MCP server at your local code:
claude mcp add cube-local -- uv run --directory /path/to/cube-mcp cube-agent
Reload after changes with /mcp in Claude Code.
Contributing
- Create a branch
- Make changes
- Run
uv run pytest packages/ -v - Push and open a PR — tests run automatically
- Merge to main — auto-publishes to PyPI and npm, auto-deploys to ECS
Admin
See docs/admin.md for user management, RBAC, and profile configuration.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cube_mcp-0.3.7.tar.gz.
File metadata
- Download URL: cube_mcp-0.3.7.tar.gz
- Upload date:
- Size: 3.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33f5b0e0e31bdcba8708414f05d3e7cb7158ce0e95db3e0fb4b0235ccb34ba5c
|
|
| MD5 |
3255d027331f7efb0cae6feb1f23cb62
|
|
| BLAKE2b-256 |
52aa117a050e1b42cf486cdd14baa055dd788535a742833a28ab2c6747c763f0
|
File details
Details for the file cube_mcp-0.3.7-py3-none-any.whl.
File metadata
- Download URL: cube_mcp-0.3.7-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9696f9c1a686e9cb1c69578aef61ea6351a813bbf468b36ebef0c54a293dacb8
|
|
| MD5 |
caca66d647f6b3a293ec9ffce23857c3
|
|
| BLAKE2b-256 |
09f5831299517f269437ae6d0961e0764a49b08e43302db7189e84bf0fdf47d0
|