Skip to content

MCP Server Setup

The Reoclo CLI ships with a built-in Model Context Protocol server. Any MCP-compatible client (Claude Code, Cursor, VS Code, Zed, JetBrains AI, Cline, and so on) can drive Reoclo through it: servers, applications, deployments, domains, logs, monitors, status pages, scheduled operations.

There are no API keys to mint or paste. Authentication is handled by reoclo login (OAuth device flow). The MCP server reads the resulting credentials from your CLI profile each time it starts.

  1. Reoclo CLI. Install it once:
    Terminal window
    npm i -g @reoclo/cli
    # or use npx and skip the global install
  2. Authenticate. This runs an OAuth device flow in your browser:
    Terminal window
    reoclo login
    See CLI Authentication for profile management and headless options.
  3. Node.js 18+. Required to run the CLI via npx.

Once reoclo whoami confirms you are authenticated, you are ready to wire up your editor.

Terminal window
claude mcp add reoclo -- npx -y @reoclo/cli mcp

This registers the server immediately. Restart Claude Code to pick it up.

Add to .mcp.json in your project root (or ~/.claude/mcp.json for global access):

{
"mcpServers": {
"reoclo": {
"command": "npx",
"args": ["-y", "@reoclo/cli", "mcp"]
}
}
}

In Claude Code, type:

/mcp

You should see reoclo listed with its tools. Try asking: “List my servers” or “Show recent deployments”.

Add to .cursor/mcp.json in your project root:

{
"mcpServers": {
"reoclo": {
"command": "npx",
"args": ["-y", "@reoclo/cli", "mcp"]
}
}
}

Restart Cursor. The MCP server appears in Settings > MCP once connected.

Add to ~/.codeium/windsurf/mcp_config.json:

{
"mcpServers": {
"reoclo": {
"command": "npx",
"args": ["-y", "@reoclo/cli", "mcp"]
}
}
}

Restart Windsurf. Cascade picks up the server and lists available tools automatically.

VS Code supports MCP servers through GitHub Copilot Chat (agent mode). Add to .vscode/mcp.json in your project root:

{
"servers": {
"reoclo": {
"command": "npx",
"args": ["-y", "@reoclo/cli", "mcp"]
}
}
}

After saving, open Copilot Chat in agent mode. The Reoclo tools become available.

Add to your Zed settings (~/.config/zed/settings.json):

{
"context_servers": {
"reoclo": {
"command": {
"path": "npx",
"args": ["-y", "@reoclo/cli", "mcp"]
}
}
}
}

Restart Zed. The server appears in the Assistant panel’s context server list.

JetBrains (IntelliJ, WebStorm, PyCharm and others)

Section titled “JetBrains (IntelliJ, WebStorm, PyCharm and others)”

JetBrains IDEs support MCP through AI Assistant. Add to .idea/mcp.json in your project root:

{
"mcpServers": {
"reoclo": {
"command": "npx",
"args": ["-y", "@reoclo/cli", "mcp"]
}
}
}

Restart the IDE. The MCP server appears in the AI Assistant tool window.

Add via the Cline MCP settings UI (Cline > MCP Servers > Add), or edit ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json (macOS) directly:

{
"mcpServers": {
"reoclo": {
"command": "npx",
"args": ["-y", "@reoclo/cli", "mcp"]
}
}
}

After saving, Cline shows a connection indicator next to the server name. Click it to verify the tools loaded.

Any MCP-compatible client can use the server. Run it directly:

Terminal window
npx -y @reoclo/cli mcp

The server communicates over stdio. Point your client at this command and it discovers tools automatically.

The MCP server exposes the same surface as the CLI. Permissions match the OAuth-authenticated user’s tenant role: a viewer role will only see read tools, a developer role gets read + write, and so on.

Server setup and hardening need root on the server, so nothing runs from the MCP server itself. create_server_setup_script returns a script for someone to run on the new server, and plan_server_hardening reports the ports the firewall would block and returns the reoclo servers harden command to run. decommission_server requires the server’s slug as confirmation.

CategoryTools
Serverslist_servers, get_server, get_server_metrics, get_server_health, check_server_health, list_containers, inspect_container, restart_container, port_scan, create_server_setup_script, plan_server_hardening, get_server_network_access, set_server_network_access, reapply_server_network_access, decommission_server
Applicationslist_applications, get_application, get_app_config, update_app_config, trigger_deploy
Deploymentslist_deployments, get_deployment, get_deployment_logs, get_deployment_stages, get_deployment_build_log
Stackslist_application_groups, get_application_group, list_group_deployments, get_group_deployment, deploy_application_group, redeploy_group_service, run_group_task, list_group_task_runs
Domainslist_domains, get_domain, get_dns_overview, check_domain_health, add_domain, verify_domain
Logssearch_logs, live_logs, get_system_logs, get_log_usage, get_server_log_sources, get_log_stats
Findingslist_findings, get_finding (log watcher findings; open ones by default)
Monitorslist_monitors, get_monitor, create_monitor, update_monitor
Status Pageslist_status_pages, get_status_page, create_incident, update_incident
Dashboardsdashboards_list, dashboard_get, dashboard_catalog, dashboard_templates, dashboard_validate, dashboard_create, dashboard_update, dashboard_delete, dashboard_assign, dashboard_unassign, dashboard_set_default
Scheduled Opslist_scheduled_operations, get_scheduled_operation, create_scheduled_operation, trigger_scheduled_operation
Secretslist_secret_projects, update_secret_project, duplicate_secret_project (project metadata only; keys and values are never exposed to the model)
Otherwhoami, list_repositories, list_env_vars, set_env_var, get_dashboard, get_audit_log

An agent can build and manage the dashboards in your organization with the dashboard tools. For what dashboards are, their panels and the permissions involved, see Dashboards. The API’s permissions and visibility apply unchanged: reading needs the dashboard permission at read, and creating, replacing, deleting, assigning and setting the default need it at write. An API key needs dashboard at write to change anything.

  • dashboard_catalog lists the panel types the caller may add. Each has a settings_schema, a JSON Schema that the panel’s config must satisfy, and an area that groups it in the editor.
  • dashboard_templates lists the templates that fit the organization, each with the panels it starts with.
  • dashboard_create starts a dashboard blank, from a template (template_id), as a copy (duplicate_of), or from a full panels list.
  • dashboard_update replaces the whole dashboard. Anything you leave out is reset, so start from dashboard_get and send the full result back with your changes.
  • dashboard_validate is a dry run of a create or an update that saves nothing. Call it before a write to get every problem in one pass.

Panels sit on a 12-column grid, placed with x, y, w and h, and must not overlap. A panel sent without layout is placed by the server. An organization holds at most 20 dashboards. A dashboard is visible to "everyone" or to {"roles": [role ids]}.

When Reoclo refuses a write because the dashboard has problems, the tool returns an error with a problems list. Each problem has a path into the request, for example panels[2].layout, a code and a message, so the agent can fix every one and retry.

dashboard_assign gives a role a dashboard, optionally locked so its members cannot pick another. dashboard_unassign removes it. dashboard_set_default sets the organization default, or clears it when the dashboard is null.

The MCP server reads its configuration from your CLI profile. Optional overrides:

VariableDescription
REOCLO_PROFILEUse a specific CLI profile (defaults to the active one)
REOCLO_API_URLOverride the API endpoint (defaults to the profile’s api_url)

There is no REOCLO_API_KEY variable. Credentials come from reoclo login, not env vars.

  • Verify Node.js 18+ is installed: node --version
  • Test the server manually: npx -y @reoclo/cli mcp (it should print MCP protocol JSON on stdin/stdout)
  • Make sure your editor restarted after config changes

Run reoclo whoami. If it errors, run reoclo login to refresh credentials.

If you belong to multiple tenants, the MCP server uses the profile’s active tenant. Either:

  • Set REOCLO_PROFILE in the MCP env block to a profile that points at the right tenant, or
  • Run reoclo profile use <name> to change the default profile.

The tool set is filtered by the OAuth-authenticated user’s role. Confirm with reoclo whoami that the active profile is on the expected tenant with the expected role.

OAuth tokens refresh automatically. If you see a session-expired error, run reoclo login once to restart the device flow.