Rock8Cloud
Guides

MCP Integration

Connect AI coding agents to Rock8Cloud via MCP

Rock8Cloud exposes an MCP (Model Context Protocol) server that lets AI coding agents interact with your projects, services, environments, and code reviews.

Available Tools

ToolDescription
list_organizationsList organizations you belong to
list_projectsList projects in an organization
get_projectGet project details with services
list_servicesList services in a project
list_environmentsList stable and preview environments
get_code_reviewsGet code review findings for a branch
check_github_connectionCheck if a repository is accessible via the GitHub App
create_projectCreate a new project in an organization
list_branchesList branches of a GitHub repository
create_repo_serviceCreate a new repository service in a project
deploy_serviceTrigger a deployment for a service
get_deployment_statusGet the current status of a deployment
get_latest_buildGet the latest deployment and build job status for a service environment (stable or preview)
get_build_logsRetrieve orchestration build logs for a deployment
get_build_logs_by_build_idSame as get_build_logs but takes a buildJobId directly
get_runtime_logsRetrieve historical runtime logs for any deployment (live or past)

Setup

The MCP server URL for your instance is:

https://app.rock8.cloud/mcp

Authentication is handled via OAuth — each agent will prompt you to authorize on first use.

Claude Code

claude mcp add rock8cloud --transport http https://app.rock8.cloud/mcp

Or add to your project's .mcp.json:

{
  "mcpServers": {
    "rock8cloud": {
      "type": "http",
      "url": "https://app.rock8.cloud/mcp"
    }
  }
}

Zed

Zed does not support remote HTTP MCP servers natively yet. Use mcp-remote as a stdio bridge. Add to your project's .zed/settings.json (or global ~/.config/zed/settings.json):

{
  "context_servers": {
    "rock8cloud": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://app.rock8.cloud/mcp"]
    }
  }
}

OpenCode

Add to your project's opencode.json:

{
  "mcp": {
    "rock8cloud": {
      "type": "remote",
      "url": "https://app.rock8.cloud/mcp"
    }
  }
}

then run opencode mcp auth to authorize

OpenAI Codex CLI

codex mcp add rock8cloud -- npx -y mcp-remote https://app.rock8.cloud/mcp

Or update your ~/.codex/config.toml:

[mcp_servers.rock8cloud]
command = "npx"
args = ["-y", "mcp-remote", "https://app.rock8.cloud/mcp"]

IntelliJ

Open Settings → Tools → AI Assistant → Model Context Protocol, click Add, choose STDIO, and paste:

{
  "mcpServers": {
    "rock8cloud": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://app.rock8.cloud/mcp"]
    }
  }
}

Troubleshooting

If your MCP client uses mcp-remote as a bridge (like Zed or Codex CLI), you might occasionally encounter the following error when calling tools:

JWKSNoMatchingKey: no applicable key found in the JSON Web Key Set

This happens when the OAuth key set rotates and the cached token states fall out of sync. To fix this, entirely remove your local cached credentials directory:

rm -rf ~/.mcp-auth

This ensures mcp-remote will prompt you for a clean, brand new OAuth access token flow on the next tool execution.

First Deploy Workflow

The MCP server includes a first_deploy prompt template that guides AI agents through deploying a repository for the first time. The flow:

  1. Validate locally — agent checks for a Dockerfile (creates one if missing), reads the EXPOSE port, ensures changes are committed and pushed
  2. Check GitHub connectioncheck_github_connection verifies the GitHub App can access the repository
  3. Create projectcreate_project creates a new project to group your services
  4. Select branchlist_branches lets you pick which branch to deploy
  5. Create servicecreate_repo_service registers the service with its Dockerfile and port configuration
  6. Deploydeploy_service triggers the build and deployment, returns the URL where your app will be live

To start a first deploy, ask your AI agent to "deploy this repository" or use the first_deploy prompt if your agent supports MCP prompts.

Code Review Workflow

The get_code_reviews tool is designed for agents running inside a repository. A typical workflow:

  1. Agent detects the current branch (git branch --show-current)
  2. Agent calls list_organizations to find your org ID
  3. Agent calls get_code_reviews with the org ID and branch name
  4. Agent receives findings with severity, file locations, and fix suggestions
  5. Agent discusses findings and can apply fixes using the fixPrompt field

This lets you interactively resolve code review feedback without leaving your editor.

Verify Connection

After setup, verify the MCP server is connected:

Claude Code:

claude mcp list

Other agents: Check the MCP or tools panel in your IDE settings — rock8cloud should appear with the tools listed above.

On this page