Skip to content

reoclo mcp

reoclo mcp [options]

Starts the Model Context Protocol server embedded in the CLI binary. Reads MCP requests from stdin and writes responses to stdout. Uses OAuth credentials from your active CLI profile (populated by reoclo login). No API key required.

FlagDefaultDescription
--profile <name>active profileUse a specific profile’s stored credentials.

REOCLO_PROFILE is honored as an env-var equivalent of --profile.

Run the server with the active profile:

Terminal window
reoclo mcp

Use a non-default profile (handy when an editor’s MCP config targets a different tenant):

Terminal window
reoclo mcp --profile staging

Add this to your editor’s MCP config (.mcp.json, .cursor/mcp.json, .vscode/mcp.json, etc.):

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

If @reoclo/cli is installed globally, you can drop the npx -y wrapper:

{
"mcpServers": {
"reoclo": {
"command": "reoclo",
"args": ["mcp"]
}
}
}

To target a specific profile from the editor config, add env:

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

See MCP server (embedded in the CLI) and MCP Server Setup for editor-by-editor instructions and the full tool catalog.

The server exposes tenant-scoped tools for servers, applications, deployments, domains, logs, monitors, status pages, and scheduled operations. Tool visibility is filtered by the OAuth-authenticated user’s tenant role.

CodeMeaning
0Server exited cleanly (e.g. client closed stdin)
1Bootstrap failure (no active profile, network error contacting /auth/me)
3Authentication failure (token refresh failed; re-run reoclo login)