MCP and agent setup
The Cloud Noce CLI includes an MCP server that communicates over stdio. It exposes projects, environments, services, domains, variables, logs, builds and releases as structured tools for AI assistants such as Claude Code, Cursor, Codex, GitHub Copilot, OpenCode, Grok, Devin, Pi, Gemini Antigravity and any MCP-compatible client. From your editor or terminal, ask your assistant to create or deploy a service, retrieve logs or configure environment variables. You do not need to give the assistant your account token directly: the server uses the CLI token saved by gerdoo login.
One-command setup
After installing the CLI, run gerdoo setup agent in your project root. It writes MCP configuration for all recognized assistants and installs the use-gerdoo skill to explain how to use Cloud Noce tools.
Setup steps
Install the CLI and sign in
If gerdoo is not installed, run curl -fsSL https://get.gerdoo.cloud/install.sh | sh, then sign in with gerdoo login. This opens Cloud Noce in your browser, where you approve sign-in; you never enter your password in the terminal. The MCP server uses the saved token, with no separate authentication required.
Connect your assistant to Cloud Noce
In the root of the project your assistant works on, run:
gerdoo setup agentBy default, this writes MCP configuration for all supported tools and installs the use-gerdoo skill. If you use just one tool, select it with --agent.
Verify the connection
Reopen your editor or terminal, or reload its MCP servers, and ask the assistant to list your services or projects. If gerdoo_* tools appear in the assistant’s tool list, the connection is ready.
gerdoo setup agent flags
gerdoo setup agent [--agent claude-code|cursor|codex|copilot|opencode|devin|pi|grok|antigravity|print]
[--skill-only] [--no-skill] [--global]| Flag | Description |
|---|---|
--agent <name> | Configure one specific tool; without this flag, all tools are configured. print outputs configuration in all four common formats instead of writing files, for use with any MCP-compatible tool. |
--skill-only | Install only the use-gerdoo skill, without changing MCP configuration. |
--no-skill | Write only MCP configuration, without installing the skill. |
--global | Install the skill in the user’s global directory (~/.claude/skills/use-gerdoo) instead of the project directory (.claude/skills/use-gerdoo). |
Rerunning this command is safe: existing files are not overwritten; only their Cloud Noce configuration is updated.
Where is each tool configured?
| Tool | Configuration file |
|---|---|
| Claude Code | .mcp.json in the project root; other entries remain unchanged. |
| Grok | Reads the same .mcp.json and .cursor/mcp.json; no separate configuration is required. |
| Cursor | .cursor/mcp.json in the project root, with the same structure. |
| Codex CLI | The [mcp_servers.gerdoo] table in .codex/config.toml, preserving the rest of the file. |
| GitHub Copilot | .vscode/mcp.json (VS Code format with servers and type: stdio). |
| OpenCode | opencode.json in the project root (mcp with type: local). |
| Devin | .devin/mcp_config.json in the project root. |
| Pi | .pi/mcp.json in the project root. |
| Gemini Antigravity | .agents/mcp_config.json in the project root (the shared Antigravity IDE and CLI format). |
For another MCP-compatible tool, or a tool configured through a web interface without local files, run gerdoo setup agent --agent print to print all four common formats. gerdoo mcp is a standard stdio server and works with any MCP client.
The gerdoo mcp command
If you prefer manual configuration, start the MCP server on standard input/output (stdio) with:
gerdoo mcpUsually you do not run this directly; your assistant tool starts it as a subprocess. The gerdoo command must be on PATH in the environment where the assistant runs. On machines without a browser, such as CI or remote servers, set GERDOO_TOKEN instead of using gerdoo login.
Tools available to the assistant
The Cloud Noce MCP server provides more than 40 tools covering the Cloud Noce API:
- Account discovery:
gerdoo_whoamireturns the account email and a service summary: total count, counts by status and a short service list. It is a useful first call for understanding the account. - Costs:
gerdoo_get_pricingreturns pay-as-you-go rates in toman (IRT): hourly CPU and RAM, monthly disk, outbound traffic and build minutes. Given a service size, it also estimates monthly cost.gerdoo_get_spendingshows wallet balance, spending this month and the most expensive services. - Projects and environments: listing, details and creation of projects and environments.
- Services: listing, details, creation from Docker images, local-folder deployment (
gerdoo_deploy_service_source), configuration updates and start/stop/restart. - Variables: both the simple env map and the typed build-time/secret store. All variable names are visible, but secret values and sensitive env values are hidden with
[redacted]. - Domains: adding, verifying and deleting custom domains with their DNS records.
- Databases and managed add-ons:
gerdoo_add_databasecreates an add-on (PostgreSQL, Redis, MinIO, RabbitMQ, MariaDB or MongoDB) and connects it to a service in one call, automatically injecting connection variables such asDATABASE_URLandREDIS_URL. Separate add-on creation, listing, binding and unbinding are also available. - Marketplace templates: listing and details of templates and one-step deployment with
gerdoo_deploy_template. Images and credentials always come from the platform catalog, and generated passwords are not returned to the assistant. - Internal networking:
gerdoo_get_servicereturns the service’sinternal_addressand other services in its project;gerdoo_list_servicesreturns each service’sinternal_host. Use these internal names to connect services to each other, rather than public addresses. - Monitoring and troubleshooting:
gerdoo_diagnose_servicereturns service status, container logs, the latest build and its logs, and a build-error explanation in one call.gerdoo_get_logsacceptslevel,grep,sinceandinvertfilters and reports the matching line count.gerdoo_execexecutes a one-shot command in a running service container. Build and release listings and traffic metrics (gerdoo_get_metrics) are also available. - Support tickets: create, read, reply to and close tickets (
gerdoo_create_ticketand related tools) for issues that require platform support. - Local-folder deployment: if a build fails,
gerdoo_deploy_service_sourceincludes the error analysis in itsdiagnosisfield, so the assistant does not need extra calls to understand the cause. - Sensitive operations: deleting services/projects, rollback and service suspension all require
confirm: trueand carry a destructive annotation in MCP so the client requests confirmation before execution.
Privacy and access scope
For account identity, gerdoo_whoami returns only the current account’s email; MCP does not send phone numbers, addresses or identity details to the assistant. However, the tools use the full CLI account token. The assistant can therefore manage all projects and services accessible to the account, not only the current project. Before confirming destructive operations such as deletion, rollback or suspension, verify that the correct service or project is selected.
Reference resources
Alongside tools, the MCP server publishes reference resources so assistants can read values instead of guessing:
| Resource | Content |
|---|---|
gerdoo://catalog/templates | Live list of templates deployable by this account |
gerdoo://catalog/addon-kinds | Add-on types and the connection variables each injects |
gerdoo://catalog/frameworks | Allowed framework values (default auto) |
gerdoo://reference/variable-precedence | Variable-store precedence and ${{ }} syntax |
gerdoo://reference/service-statuses | Each service status and the appropriate action |
The use-gerdoo skill
The use-gerdoo skill is procedural guidance installed with the CLI. It tells the assistant which tools to use for creating services, deploying the current folder, troubleshooting through logs and builds, and managing variables and domains. It also emphasizes that the assistant must explicitly request user confirmation before destructive operations.
Running gerdoo upgrade also updates the installed skill, unless you edited it yourself; in that case it is preserved and a message is shown.
# Install only the skill, without changing MCP configuration
gerdoo setup agent --skill-only
# Install globally for all projects
gerdoo setup agent --skill-only --global