Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Clever Code Mode

БесплатноНе проверен

An MCP server that gives AI agents full access to the Clever Cloud API through three tools: search, execute, and doc, using a code mode pattern to compose API c

GitHubEmbed

Описание

An MCP server that gives AI agents full access to the Clever Cloud API through three tools: search, execute, and doc, using a code mode pattern to compose API commands.

README

An MCP server that gives AI agents full access to the Clever Cloud API through three tools: search, execute, and doc.

Instead of exposing 177 individual tools (one per API endpoint), the agent discovers available commands then writes JavaScript code to compose them — inspired by Cloudflare's Code Mode pattern.

How it works

  1. The agent calls search with a keyword (e.g. "deploy application") and gets back matching commands with their parameters
  2. The agent calls execute with JavaScript code that uses a pre-authenticated Clever Cloud client and the discovered commands:
const apps = await client.send(
  new commands.ListApplicationCommand({ ownerId: "orga_xxx" }),
  { signal }
);
return apps.filter(a => a.state === "RUNNING");
  1. The agent calls doc to search Clever Cloud's documentation index or fetch a specific page as markdown — useful for conceptual questions the API catalog can't answer (runtimes, add-ons, deployment model, environment variables, etc.).

The code runs locally on your machine with a configurable timeout. The full @clevercloud/client command library is available — including automatic owner ID resolution, response transformation, and structured error handling.

Setup

Prerequisites

Install

git clone https://github.com/davlgd/clever-code-mode-mcp.git
cd clever-code-mode-mcp
npm install
npm run generate-catalog
npm run build

Configure in Claude Code

Using the CLI:

claude mcp add clever-cloud \
  -e CLEVER_CLOUD_API_TOKEN=your-api-token \
  -- node /absolute/path/to/clever-code-mode-mcp/dist/index.js

Or add a .mcp.json file at the root of your project:

{
  "mcpServers": {
    "clever-cloud": {
      "command": "node",
      "args": ["/absolute/path/to/clever-code-mode-mcp/dist/index.js"],
      "env": {
        "CLEVER_CLOUD_API_TOKEN": "${CLEVER_CLOUD_API_TOKEN}"
      }
    }
  }
}

The .mcp.json approach supports environment variable expansion (${VAR} or ${VAR:-default}), so you can keep your token in your shell environment rather than in the file itself.

Optional environment variables

Variable Default Description
CC_MCP_TIMEOUT_MS 30000 Execution timeout in milliseconds
CC_MCP_MAX_OUTPUT 50000 Maximum output length in characters

License

Apache-2.0 — davlgd, 2026

from github.com/davlgd/clever-code-mode-mcp

Установка Clever Code Mode

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/davlgd/clever-code-mode-mcp

FAQ

Clever Code Mode MCP бесплатный?

Да, Clever Code Mode MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Clever Code Mode?

Нет, Clever Code Mode работает без API-ключей и переменных окружения.

Clever Code Mode — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить Clever Code Mode в Claude Desktop, Claude Code или Cursor?

Открой Clever Code Mode на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Clever Code Mode with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development