К основному содержанию
плагин

cpln — плагин для Claude Code: развёртывание и установка

Плагин помогает управлять нагрузками Control Plane: развёртывать их, устранять сбои и переносить проекты с Kubernetes. Пригодится, если вы работаете с cpln из Claude Code.

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add anthropics/claude-plugins-community
/plugin install cpln@claude-community
Открыть на GitHub

Что делает cpln

cpln подключает к Claude Code знания о Control Plane, правила для production и инструменты MCP. В составе — навыки для работы с CLI, доступом, сетями, автоскейлингом и хранилищем, а также субагенты для устранения проблем с нагрузками и миграции с Kubernetes, Compose или Helm. Можно попросить настроить домен с автоматическим TLS или выдать нагрузке доступ к S3 без IAM-ключей.

Плагин использует размещённый MCP-сервер; для доступа нужно войти и выбрать организации Control Plane, которыми сможет управлять ассистент. Такой доступ считается production-доступом. Удаление ресурсов, изменение томов и применение изменений в production требуют явного подтверждения. Значения секретов не проходят через чат: пользователь вводит их в Console.

Переменные CPLN_TOKEN, CPLN_ORG, CPLN_GVC и CPLN_PROFILE нужны только для отдельных CLI-сценариев, например CI/CD, Terraform и Pulumi. Для установки через каталог Claude Code выполните команды по порядку:

Какие задачи решает

  • развернуть нагрузку в Control Plane
  • найти причину перезапуска workload
  • настроить домен и автоматический TLS
  • перенести конфигурацию Kubernetes в Control Plane
  • выдать workload доступ к S3 без IAM-ключей

Примеры запросов агенту

  • Устрани причину, по которой workload payments-api в production перезапускается.
  • Настрой домен app.example.com для workload web с автоматическим TLS.
  • Перенеси kustomization.yaml в Control Plane и примени изменения к staging после моего подтверждения.

Как установить cpln

Через маркетплейс плагинов

/plugin marketplace add anthropics/claude-plugins-community
/plugin install cpln@claude-community

По шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой

Вопросы о cpln

Как установить cpln в Claude Code?

Выполните команды по порядку: /plugin marketplace add anthropics/claude-plugins-community, затем /plugin install cpln@claude-community.

Что делает плагин cpln?

Он добавляет навыки и MCP-инструменты для управления нагрузками Control Plane: от развёртывания и диагностики до настройки доступа и миграции.

Как плагин получает доступ к организациям Control Plane?

Через вход по OAuth 2.1 + PKCE. Вы выбираете организации, а токен ограничен ими и проверяется при каждом вызове.

Исходный текст

cpln · MIT
<p align="center">
  <a href="https://controlplane.com">
    <picture>
      <source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/controlplane-com/brand@main/logo/Control_Plane_logo_full_light.svg">
      <img src="https://cdn.jsdelivr.net/gh/controlplane-com/brand@main/logo/Control_Plane_logo_full_dark.svg" alt="Control Plane" width="240">
    </picture>
  </a>
</p>

# Control Plane AI Plugin

Run containerized workloads across AWS, GCP, Azure, OCI, and your own hardware under one API. It loads Control Plane's domain knowledge, production guardrails, and live MCP tools into Claude Code, Codex, and Antigravity CLI so your assistant can deploy, troubleshoot, secure, and migrate workloads with verified `cpln` commands.

## Installation

### Claude Code

```text
/plugin marketplace add https://github.com/controlplane-com/ai-plugin.git
/plugin install cpln@controlplane
/reload-plugins
```

Update with `/plugin marketplace update controlplane` then `/reload-plugins` (third-party marketplaces don't auto-update unless you enable it in `/plugin` → **Marketplaces**).

Alternatively, install from [Anthropic's community plugin marketplace](https://github.com/anthropics/claude-plugins-community), where every listing has passed Anthropic's review:

```text
/plugin marketplace add anthropics/claude-plugins-community
/plugin install cpln@claude-community
/reload-plugins
```

### Codex

```bash
codex plugin marketplace add https://github.com/controlplane-com/ai-plugin.git
```

Start Codex, open `/plugins`, and install `cpln`. The MCP handshake supplies the core rules. Local installations also include optional session hooks, which must be reviewed and trusted in Codex before they run.

Update with `codex plugin marketplace upgrade controlplane`, then restart Codex.

### Antigravity CLI

Install the plugin with Antigravity CLI (`agy`):

```bash
agy plugin install https://github.com/controlplane-com/ai-plugin/plugins/cpln
```

### Generic MCP client

Point any other MCP client at the hosted server:

```json
{
  "mcpServers": {
    "cpln": {
      "type": "http",
      "url": "https://mcp.cpln.io/mcp"
    }
  }
}
```

The bare URL serves the default `core` tool set. A client that loads tools on demand can add `?toolsets=full` for every tool.

## Authentication

MCP uses OAuth 2.1 + PKCE. Sign in to let the assistant act on your Control Plane organizations — you choose which orgs it may operate on, and the token is scoped to those orgs and enforced server-side on every call. Sign in again to change the grant. Treat MCP access as production access to the orgs you grant. How to sign in:

- **Claude Code** — `/mcp`, select `cpln`, sign in (or `claude mcp login cpln`).
- **Codex** — `codex mcp login cpln`.
- **Antigravity CLI** — `/mcp`, select `cpln`, authenticate.

## Environment variables

Optional — only for the `cpln` CLI workflows some skills generate (CI/CD, Terraform, Pulumi). See `.env.example`.

| Variable       | Purpose                                                 |
| -------------- | ------------------------------------------------------- |
| `CPLN_TOKEN`   | Service-account token for `cpln` CLI calls (sensitive). |
| `CPLN_ORG`     | Default organization.                                   |
| `CPLN_GVC`     | Default GVC.                                            |
| `CPLN_PROFILE` | Local `cpln` CLI profile.                               |

## Usage

Ask in natural language — the assistant routes to the right skill or agent:

- "Troubleshoot why my `payments-api` workload in `production` keeps restarting."
- "Put `app.example.com` in front of my `web` workload with auto-TLS."
- "Give my `analytics` workload credential-free read access to S3 bucket `prod-event-logs` — no IAM keys."
- "Provision a production Postgres with HA failover and S3 backups."
- "Convert this `kustomization.yaml` to Control Plane and apply it to `staging` after I confirm."

Two workflows also have slash commands in Claude Code — `/cpln:troubleshoot WORKLOAD` and `/cpln:migrate-k8s FILE`; in other clients, ask for the same workflows by name.

## What's included

- Domain skills across CLI usage, access control, autoscaling, networking, observability, migration, templates, stateful storage, and security.
- Two guided agents: workload troubleshooting and Kubernetes / Compose / Helm migration.
- A short always-on rule set the assistant applies in every session, with the full operating guide read on demand.
- Pre-configured access to the hosted Control Plane MCP server.

## Security

- MCP access is production access — scoped to the orgs you grant and your own RBAC.
- Destructive actions (deleting resources, shrinking/deleting volumes, replacing workloads, applying to production) require explicit confirmation.
- Secret values never pass through the chat: Control Plane generates the values nobody needs to know, the user types their own values into the Console, and tools return secret metadata only.
- The plugin stores no logs, secrets, prompts, or telemetry; your AI client and model provider process prompts per their own policies.

Report vulnerabilities per [SECURITY.md](SECURITY.md).

## Where data goes

The plugin's one declared connector is the hosted MCP server at `https://mcp.cpln.io/mcp`, which acts only on the orgs you grant when you sign in, with your own permissions.

When a task needs it, the skills also run these tools on your machine, each with your own credentials:

| Tool | Sends data to |
| --- | --- |
| `cpln` CLI | The Control Plane API (`api.cpln.io`), your org's image registry (`ORG.registry.cpln.io`), and the metrics endpoint (`metrics.cpln.io`), using your CLI profile or `CPLN_TOKEN` |
| `docker` | The image registries you push to and pull from |
| `kubectl`, `helm` | The Kubernetes cluster you point them at, when migrating from it or installing the Control Plane Kubernetes operator |
| `terraform`, `pulumi` | The Control Plane API, through the Control Plane provider |
| `gcloud` and other cloud CLIs | Your own cloud account, when connecting a private network or creating an agent VM |
| `curl` | Your own domain, to check it after setup |

The plugin itself stores nothing. Resources, app files, and invitations the assistant creates are stored in your Control Plane org until you delete them, and the org's audit trail records each change.

## More

- Contributing: [CONTRIBUTING.md](CONTRIBUTING.md)
- Docs: [docs.controlplane.com](https://docs.controlplane.com) · Support: `[email protected]` or Slack
- License: MIT — see [LICENSE](LICENSE)

© controlplane-com · MIT · controlplane-com/ai-plugin

Похожие плагины

Все плагины по теме «DevOps и инфраструктура» →
next-ai-drawio DayuanJiang Собирает диаграммы draw.io по описанию на обычном языке и показывает их в браузере сразу, по ходу работы Claude. ★ 36 427звёзд репо terraform официальный HashiCorp Подключает к Claude MCP-сервер Terraform: агент работает с экосистемой Terraform и помогает писать конфигурации Infrastructure as Code. ★ 44 770звёзд репо mcp-tunnels официальный Anthropic Соединяет Claude с MCP-сервером внутри вашей сети через туннель Anthropic: без входящих портов и публичного доступа. ★ 44 770звёзд репо gitlab официальный GitLab Подключает GitLab к Claude Code: агент работает с репозиториями, мерж-реквестами, пайплайнами, задачами и вики прямо из чата. ★ 44 770звёзд репо google-cloud-developer официальный Google LLC Плагин помогает агенту настраивать Google Cloud, выбирать учётные данные и проверять команды gcloud. MCP-сервер подключает актуальную документацию Google. CX Codex ★ 21 606звёзд репо desktop-commander Desktop Commander Связывает Claude Code с локальным MCP-сервером для работы в терминале, управления процессами, чтения офисных документов и настройки заметок. ★ 10 134звёзд репо

Из того же набора2

Спонсоры проекта

Компании, которые помогают держать аналитику открытой