CCv2 Portal MCP
Integrates with the SAP Commerce Cloud (CCv2) Cloud Portal API to let an assistant inspect and operate the CCv2 control plane: viewing what build and branch is deployed per environment, triggering builds and deployments (rolling, recreate, blue-green) with database update modes, diagnosing build failures from logs, running pre-deploy checklists and rollbacks, managing backups and restores, endpoints and certificates, maintenance mode, scaling, hibernation and properties, with per-environment permissions and confirmation safeguards.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ccv2-portal-mcp
An MCP server for the SAP Commerce Cloud (CCv2) Cloud Portal. It lets an AI assistant such as Claude see and operate the CCv2 control plane the way a release engineer does: check what is deployed where, trigger builds, deploy with the right guard rails, read build logs, manage backups, endpoints, certificates, scaling and hibernation.
Everything goes through SAP's official Cloud Portal API. Nothing is scraped from the UI.
"What is deployed on staging and prod right now, and are they on the same branch?"
"Why did build 20260101.1 fail?"
"Run the pre-deploy checklist for p1 with build 20260101.1."
"Deploy it to s1 with a database update, take a quick backup first."
"Put p1 into maintenance mode."
"Roll d1 back to the previous build."Features
See
What is deployed where: build, branch, version, who deployed it and when, for every environment, with a plain-language comparison and any deployment in progress.
Full picture of an environment in one call: status, services and replicas, the live build and branch, scaling, hibernation.
Builds and deployments: list and filter, inspect, progress by stage with the failed steps pulled out, allowed deployment modes per environment, blue-green decisions and traffic split state.
Build logs that fit in a context window: the portal's log zip is unpacked and you ask for the first error, a grep with context, a head or a tail.
Build failure diagnosis: classifies the first error (missing branch, compile, tests, Spring context, out of memory, manifest, dependency, transient) with the evidence lines.
Properties: read one, or diff a set of keys between two environments; secret-looking values are masked unless you ask.
Endpoints, certificates, backups, restores, scaling and scheduled activities, with computed extras such as days to certificate expiry and whether a backup can be restored.
Release timeline: builds and deployments of the last N days in one chronological list.
Act
Builds: trigger from a branch or tag.
Deployments: rolling update, recreate or blue-green, with
NONE/UPDATE/INITIALIZEdatabase modes; cancel a running deployment (with optional database rollback); accept or reject a green deployment; set the canary traffic split.Backup before deploy: one flag takes a quick database backup and deploys only once it is restorable.
Rollback: redeploys the previous build; shows the plan first, executes on confirm.
Pre-deploy checklist: availability, hibernation, permissions, running deployment, build status and branch naming, allowed modes, backup age, maintenance mode, certificate expiry, pending blue-green decision. One
readyflag.Maintenance mode for all endpoints of an environment, or a chosen subset, in one call.
Certificates: upload PEM material, rotate across endpoints with a domain check, delete when unused.
Properties: set a customer property on a service.
Backups and restores: quick or standard backups, cancel, delete, restore into the same or another environment (data refresh), cancel a restore.
Scaling and hibernation: change scaling within the portal's allowed values; schedule, reschedule and cancel hibernation, wake-up and DR activities.
Bounded waits:
wait_for_build,wait_for_deploymentandwait_for_backuppoll for at most a minute per call and tell the assistant to call again.
Stay safe
Per-environment permissions, read-only by default:
read,build,deploy,properties_write,endpoints_write,backup_restore,scaling. Environments without a grant are invisible or read-only, as you choose.Confirmation (
confirm=true) for production deployments,INITIALIZE,RECREATE, cancellations, restores, deletions and scaling changes, mirroring the portal's own CONFIRM prompt.Validation before writes: a deployment is refused when the build did not succeed, another deployment is running, or the portal does not allow the chosen mode.
Audit log: every write attempt, including refused ones, is recorded as JSON with secrets masked.
Portal API quirks handled: token caching and refresh, the portal's custom auth header, HTML login pages detected as auth failures, pagination, 429 retries, RFC 7807 errors with plain-language hints.
Operate
Several subscriptions from one server, each with its own technical user and permissions, configured from variables or a JSON file; every tool takes a
subscriptionargument.Docker or stdio: a container serving streamable HTTP, or a stdio process started by the AI client.
Status page: a read-only page showing the server, the registered tools, each subscription's configuration and authentication state, every environment with its status, deployed build and the permissions the agent holds there, and the latest write calls from the audit log.
Smoke script: runs every read tool against a subscription in one command.
Related MCP server: Hybris MCP Server
Status page
Served by the MCP server at http://localhost:8849/ under streamable HTTP, or by
ccv2-portal-mcp ui on http://127.0.0.1:8850/ for stdio setups. Shown with sample data.


Quick start
You need a technical user on the Cloud Portal (User Management → Technical Users) with
the CUSTOMER_DEVELOPER or CUSTOMER_SYS_ADMIN role and the environments it may access.
The portal shows its token endpoint URL, client id, client secret and resource once.
cp .env.example .env # fill in the technical-user values and the subscription code
docker compose up -d --buildThe server now listens on http://localhost:8849/mcp (streamable HTTP) and serves the
status page at http://localhost:8849/. Register it with Claude Code:
claude mcp add --transport http ccv2-portal http://localhost:8849/mcpWithout Docker, for local use over stdio:
uv run ccv2-portal-mcpclaude mcp add ccv2-portal -- uv --directory /path/to/ccv2-portal-mcp run ccv2-portal-mcpOver stdio there is no HTTP port, so the status page runs as its own process:
uv run ccv2-portal-mcp ui # http://127.0.0.1:8850/By default every environment is read-only. Grant more per environment in .env:
CCV2_PERMISSIONS=d1:read,build,deploy,properties_write;s1:read,build,deploy;p1:readDocumentation
docs/tools.md: every tool, what it does, which permission it needs and when it asks for confirmation.
docs/configuration.md: environment variables, multi-subscription config, permissions, audit log, running modes, and the portal API gotchas the server handles.
docs/research.md: the Cloud Portal API inventory, what the API cannot do, the tooling ecosystem and the design decisions behind this project.
spec/cloud-portal-api-2.0.12.yaml: the official OpenAPI spec, extracted from SAP Help.
Project status
Read tools validated against a live subscription with scripts/smoke.py, which runs every
read tool in one command. Builds and rolling deployments with data migration have been run
live through the write tools. The remaining write tools (properties, endpoints,
certificates, backups, restores, scaling, scheduled activities, blue-green, cancellation)
are unit-tested against the API contract but not yet exercised live.
Development
uv sync
uv run pytestTests use an in-memory fake portal; nothing talks to SAP.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Deploy and manage Jade Hosting projects from AI clients. Jade account and OAuth required.
Plan Salesforce deploys, open pull requests and trigger pipelines from your AI client.
- mcpOAuthcom.vibgrate
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI assistants to interact with SAP Commerce Cloud (Hybris) instances for product management, order viewing, FlexibleSearch queries, Groovy script execution, ImpEx operations, and system administration tasks.1616MIT
- FlicenseBqualityCmaintenanceEnables AI assistants to interact with SAP Commerce Cloud (Hybris) instances to manage products, orders, and system configurations. It supports advanced operations like FlexibleSearch queries, Groovy script execution, and ImpEx data management.16-
- FlicenseNot gradedqualityBmaintenanceProvides AI assistants with programmatic access to SAP Commerce Cloud's Hybris Administration Console (HAC), enabling automated FlexibleSearch queries, ImpEx imports, Groovy script execution, and system administration across multiple environments with fine-grained permissions.46 npm2-
- AlicenseAqualityCmaintenanceEnables AI agents to interact with Adobe Commerce Cloud projects via REST API and SSH for database queries, log reading, environment management, and more, with no PHP CLI required.1529 npmMIT