MCP Server
import { Badge } from ‘@astrojs/starlight/components’;
The mcp-acp server is a Model Context Protocol server that lets Claude manage Ambient Code Platform sessions programmatically.
Capabilities
Section titled “Capabilities”Session management
Section titled “Session management”- Create sessions with custom prompts, repos, model selection, and timeout
- Create sessions from predefined templates (triage, bugfix, feature, exploration)
- Restart, clone, delete, and update sessions
- Dry-run mode for previewing destructive operations
Observability
Section titled “Observability”- Retrieve container logs for a session
- Get conversation transcripts in JSON or Markdown format
- View usage statistics (tokens, duration, tool calls)
Labels and bulk operations
Section titled “Labels and bulk operations”- Add and remove labels for organizing and filtering sessions
- Filter sessions by label selectors
- Bulk operations on up to 3 sessions at a time (delete, stop, restart, label)
Cluster management
Section titled “Cluster management”- List configured clusters and check authentication status
- Switch between clusters
- Authenticate with Bearer tokens
Safety
Section titled “Safety”- Dry-run mode — All mutating operations support
dry_runfor safe preview before executing. - Bulk operation limits — A maximum of 3 sessions can be affected per bulk operation.
- Label validation — Labels must be 1-63 alphanumeric characters, dashes, dots, or underscores.
Requirements
Section titled “Requirements”- Python 3.10+
- Bearer token for the ACP public-api gateway
- Access to an ACP cluster
Installation
Section titled “Installation”# From wheelpip install dist/mcp_acp-*.whl
# From sourcegit clone https://github.com/ambient-code/mcpcd mcpuv pip install -e ".[dev]"Configuration
Section titled “Configuration”The primary configuration method uses a YAML config file at ~/.config/acp/clusters.yaml.
Cluster config file
Section titled “Cluster config file”Create ~/.config/acp/clusters.yaml:
clusters: my-staging: server: https://public-api-ambient.apps.my-staging.example.com token: your-bearer-token-here description: "Staging Environment" default_project: my-workspace
my-prod: server: https://public-api-ambient.apps.my-prod.example.com token: your-bearer-token-here description: "Production" default_project: my-workspace
default_cluster: my-stagingSecure the file:
chmod 600 ~/.config/acp/clusters.yamlAlternatively, set the ACP_TOKEN environment variable to provide a token without editing the config file.
Claude Desktop
Section titled “Claude Desktop”Add to your Claude Desktop configuration file (claude_desktop_config.json):
{ "mcpServers": { "acp": { "command": "mcp-acp", "args": [], "env": { "ACP_CLUSTER_CONFIG": "${HOME}/.config/acp/clusters.yaml" } } }}Using uvx (zero-install):
{ "mcpServers": { "acp": { "command": "uvx", "args": ["mcp-acp"] } }}Claude Code CLI
Section titled “Claude Code CLI”claude mcp add mcp-acp -t stdio mcp-acpMulti-cluster support
Section titled “Multi-cluster support”Define multiple clusters in ~/.config/acp/clusters.yaml and switch between them using the acp_switch_cluster tool or by changing the default_cluster value. The server supports listing clusters, checking authentication status, and authenticating to new clusters at runtime.