cloud-infrastructuredeveloper-tools

Ambient Code Platform MCP Server

by ambient-code

Ambient Code Platform MCP Server offloads long-running AI tasks to Kubernetes-hosted Claude agents on OpenShift, enablin

Delegates expensive or long-running AI tasks to Kubernetes-hosted Claude agents running on OpenShift. Enables creating, managing, and monitoring remote agentic sessions for complex work like codebase analysis and security audits.

github stars

0

Kubernetes-hosted for scalabilityOpenShift integrationHandles long-running tasks

best for

  • / Large codebase analysis without local resource constraints
  • / Security teams running comprehensive code audits
  • / Development teams needing parallel AI processing

capabilities

  • / Create remote Claude agent sessions on Kubernetes
  • / Monitor long-running AI task progress
  • / Delegate codebase analysis to cloud agents
  • / Run security audits on remote infrastructure
  • / Manage multiple concurrent AI workflows

what it does

Offloads computationally expensive AI tasks like codebase analysis to remote Claude agents running in Kubernetes clusters. Manages long-running AI workflows without consuming local resources.

about

Ambient Code Platform MCP Server is a community-built MCP server published by ambient-code that provides AI assistants with tools and capabilities via the Model Context Protocol. Ambient Code Platform MCP Server offloads long-running AI tasks to Kubernetes-hosted Claude agents on OpenShift, enablin It is categorized under cloud infrastructure, developer tools.

how to install

You can install Ambient Code Platform MCP Server in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Ambient Code Platform MCP Server is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

MCP ACP Server

A Model Context Protocol (MCP) server for managing Ambient Code Platform (ACP) sessions via the public-api gateway.


Table of Contents


Quick Start

# Install
git clone https://github.com/ambient-code/mcp
cd mcp
pip install .    # installs the 'mcp-acp' command

# Configure
mkdir -p ~/.config/acp
cat > ~/.config/acp/clusters.yaml <<EOF
clusters:
  my-cluster:
    server: https://public-api-ambient.apps.your-cluster.example.com
    token: your-bearer-token-here
    default_project: my-workspace
default_cluster: my-cluster
EOF
chmod 600 ~/.config/acp/clusters.yaml

Then add to your MCP client (Claude Desktop, Claude Code, or uvx) and try:

List my ACP sessions

Features

Session Management

ToolDescription
acp_list_sessionsList/filter sessions by status, age, with sorting and limits
acp_get_sessionGet detailed session information by ID
acp_create_sessionCreate sessions with custom prompts, repos, model selection, and timeout
acp_create_session_from_templateCreate sessions from predefined templates (triage/bugfix/feature/exploration)
acp_delete_sessionDelete sessions with dry-run preview
acp_restart_sessionRestart a stopped session
acp_clone_sessionClone an existing session's configuration into a new session
acp_update_sessionUpdate session metadata (display name, timeout)

Observability

ToolDescription
acp_get_session_logsRetrieve container logs for a session
acp_get_session_transcriptRetrieve conversation history (JSON or Markdown)
acp_get_session_metricsGet usage statistics (tokens, duration, tool calls)

Labels

ToolDescription
acp_label_resourceAdd labels to a session for organizing and filtering
acp_unlabel_resourceRemove labels from a session by key
acp_list_sessions_by_labelList sessions matching label selectors
acp_bulk_label_resourcesAdd labels to multiple sessions (max 3)
acp_bulk_unlabel_resourcesRemove labels from multiple sessions (max 3)

Bulk Operations

ToolDescription
acp_bulk_delete_sessionsDelete multiple sessions (max 3) with confirmation and dry-run
acp_bulk_stop_sessionsStop multiple running sessions (max 3)
acp_bulk_restart_sessionsRestart multiple stopped sessions (max 3)
acp_bulk_delete_sessions_by_labelDelete sessions matching label selectors (max 3 matches)
acp_bulk_stop_sessions_by_labelStop sessions matching label selectors (max 3 matches)
acp_bulk_restart_sessions_by_labelRestart sessions matching label selectors (max 3 matches)

Cluster Management

ToolDescription
acp_list_clustersList configured cluster aliases
acp_whoamiCheck current configuration and authentication status
acp_switch_clusterSwitch between configured clusters
acp_loginAuthenticate to a cluster with a Bearer token

Safety Features:

  • Dry-Run Mode — All mutating operations support dry_run for safe preview before executing
  • Bulk Operation Limits — Maximum 3 items per bulk operation with confirmation requirement
  • Label Validation — Labels must be 1-63 alphanumeric characters, dashes, dots, or underscores

Installation

From Source (end users)

git clone https://github.com/ambient-code/mcp
cd mcp
pip install .    # installs the 'mcp-acp' command

From Wheel

Requires make to be installed.

# "make install" sets up the dev environment (.venv + dependencies),
# which "make build" then uses to produce the wheel in dist/
make install
make build
pip install dist/mcp_acp-*.whl

Development Install (contributors)

git clone https://github.com/ambient-code/mcp
cd mcp
uv venv
uv pip install -e ".[dev]"

Virtual Environment Install

On some Linux distributions (Debian, Ubuntu, Fedora 38+), PEP 668 prevents pip install into the system Python. If you get an "externally-managed-environment" error, install into a virtual environment instead:

git clone https://github.com/ambient-code/mcp
cd mcp
python3 -m venv .venv
source .venv/bin/activate
pip install .

Note that the mcp-acp command will only be available inside the venv. To use it from an MCP client like Claude Code, reference the full path:

claude mcp add mcp-acp -t stdio /full/path/to/mcp/.venv/bin/mcp-acp

Requirements:

  • Python 3.12+
  • Bearer token for the ACP public-api gateway
  • Access to an ACP cluster

Configuration

Cluster Config

Create ~/.config/acp/clusters.yaml:

clusters:
  vteam-stage:
    server: https://public-api-ambient.apps.vteam-stage.example.com
    token: your-bearer-token-here
    description: "V-Team Staging Environment"
    default_project: my-workspace

  vteam-prod:
    server: https://public-api-ambient.apps.vteam-prod.example.com
    token: your-bearer-token-here
    description: "V-Team Production"
    default_project: my-workspace

default_cluster: vteam-stage

Then secure the file:

chmod 600 ~/.config/acp/clusters.yaml

Authentication

Add your Bearer token to each cluster entry under the token field, or set the ACP_TOKEN environment variable:

export ACP_TOKEN=your-bearer-token-here

Get your token from the ACP platform administrator or the gateway's authentication endpoint.

Claude Desktop

Edit your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "acp": {
      "command": "mcp-acp",
      "args": [],
      "env": {
        "ACP_CLUSTER_CONFIG": "${HOME}/.config/acp/clusters.yaml"
      }
    }
  }
}

After editing, completely quit and restart Claude Desktop (not just close the window).

Claude Code (CLI)

claude mcp add mcp-acp -t stdio mcp-acp

Using uvx

uvx provides zero-install execution — no global Python pollution, auto-caching, and fast startup.

# Install uv (if needed)
curl -LsSf https://astral.sh/uv/install.sh | sh

Claude Desktop config for uvx:

{
  "mcpServers": {
    "acp": {
      "command": "uvx",
      "args": ["mcp-acp"]
    }
  }
}

For a local wheel (before PyPI publish):

{
  "mcpServers": {
    "acp": {
      "command": "uvx",
      "args": ["--from", "/full/path/to/dist/mcp_acp-0.3.0-py3-none-any.whl", "mcp-acp"]
    }
  }
}

Usage

Examples

# List sessions
List my ACP sessions
Show running sessions in my-workspace
List sessions older than 7 days in my-workspace
List sessions sorted by creation date, limit 20

# Session details
Get details for ACP session session-name
Show AgenticSession session-name in my-workspace

# Create a session
Create a new ACP session with prompt "Run all unit tests and report results"

# Create from template
Create an ACP session from the bugfix template called "fix-auth-issue"

# Restart / clone
Restart ACP session my-stopped-session
Clone ACP session my-session as "my-session-v2"

# Update session metadata
Update ACP session my-session display name to "Production Test Runner"

# Observability
Show logs for ACP session my-session
Get transcript for ACP session my-session in markdown format
Show metrics for ACP session my-session

# Labels
Label ACP session my-session with env=staging and team=platform
Remove label env from ACP session my-session
List ACP sessions with label team=platform

# Delete with dry-run (safe!)
Delete test-session from my-workspace in dry-run mode

# Actually delete
Delete test-session from my-workspace

# Bulk operations (dry-run first)
Delete these sessions: session-1, session-2, session-3 from my-workspace (dry-run first)
Stop all sessions with label env=test
Restart sessions with label team=platform

# Cluster operations
Check my ACP authentication
List my ACP clusters
Switch to ACP cluster vteam-prod
Login to ACP cluster vteam-stage with token

Trigger Keywords

Include one of these keywords so your MCP client routes the request to ACP: ACP, ambient, AgenticSession, or use tool names directly (e.g., acp_list_sessions, acp_whoami). Without a keyword, generic phrases like "list sessions" may not trigger the server.

Quick Reference

TaskCommand Pattern
Check authUse acp_whoami
List allList ACP sessions in PROJECT
Filter statusList running sessions in PROJECT
Filter ageList sessions older than 7d in PROJECT
Get detailsGet details for ACP session SESSION
CreateCreate ACP session with prompt "..."
Create from templateCreate ACP session from bugfix template
RestartRestart ACP session SESSION
CloneClone ACP session SESSION as "new-name"
UpdateUpdate ACP session SESSION timeout to 1800
View logsShow logs for ACP session SESSION
View transcriptGet transcript for ACP session SESSION
View metricsShow metrics for ACP session SESSION
Add labelsLabel ACP session SESSION with env=test
Remove labelsRemove label env from ACP session SESSION
Filter by label`List ACP sessions with label