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
| Tool | Description |
|---|---|
list_organizations | List organizations you belong to |
list_projects | List projects in an organization |
get_project | Get project details with services |
list_services | List services in a project, with the Deploy on Push state of each repository service |
list_environments | List stable and preview environments |
get_uptime_status | Get current and 30-day uptime information for a service |
get_code_reviews | Get code review findings for a branch |
dismiss_code_review_finding | Dismiss a finding verified as wrong, with a reason |
retry_code_review | Rerun a failed or partial review on the current PR head. A partial review at the same head with recorded remaining files resumes those files, otherwise the whole PR is reviewed. Pass the newest review (latestReview.id) |
check_github_connection | Check if a repository is accessible via the GitHub App |
create_project | Create a new project in an organization |
delete_project | Permanently delete a project and all its services (requires confirmation) |
list_branches | List branches of a GitHub or rock8cloud-hosted repository |
create_repo_service | Create a new repository service in a project. Creating never deploys - that is deploy_service. Optional autoDeploy: false creates it with the Deploy on Push workflow turned off, so pushes do not deploy it either. edit_service with autoDeploy: "branch" turns it on later |
edit_service | Change a repository service's build settings - repo, branch, Dockerfile, port, health check, subdomain - its dependency scan settings: on or off, block threshold and background schedule, and Deploy on Push: autoDeploy off, branch or tag. In branch mode a branch change moves Deploy on Push too. See Deploy on Push |
delete_service | Permanently delete a service and its data (requires confirmation) |
deploy_service | Trigger a deployment for a service |
list_service_deployments | List a service's recent deployments, newest first, with status, branch, commit and whether each one can be rolled back. Optional limit (1-50, default 10) |
rollback_service | Go back to an earlier deployment by redeploying its existing image, with no rebuild. Only the image is restored, not CPU or memory settings. Requires confirmation |
list_blueprints | List the blueprints you can deploy, with their stack tags |
list_git_owners | List the GitHub accounts a blueprint can be forked into, with a link to connect one when there is none, and whether hosted git is available. list_github_owners is a deprecated alias |
get_git_credentials | Get a new 24 hour push token for a service on a hosted git repository |
deploy_blueprint | Fork a blueprint template into GitHub, or copy it into a hosted repository when no GitHub owner is given, create the project and services, and start the first deploy |
get_deployment_status | Get the current status of a deployment, including its dependency vulnerability scan results |
list_vulnerabilities | List the dependency vulnerabilities of every severity from the latest scan of each repo service's main environment (build, scheduled or manual), for the organization or one service |
scan_service | Start a dependency vulnerability scan of a repo service's running code now, without a build or deploy |
list_notification_channels | List a project's notification channels (Slack, Discord, webhook) with their events, and whether Slack and Discord are connected |
set_notification_channel | Add or change a notification channel, for example to send vulnerability alerts to a Slack channel. Gives you a link to connect Slack or Discord first when needed. Owners only |
delete_notification_channel | Permanently remove a notification channel from a project (requires confirmation). Owners only |
submit_bug_report | Report a Rock8Cloud tool or product bug, with optional reproduction details and service context. Your agent may file one on its own when a tool or deploy fails on the platform's side, under your name and email |
submit_feedback | Send a feature request, UX or documentation feedback, or general product feedback. Your agent sends it only after you agree |
get_latest_build | Get the latest deployment and build job status for a service environment (stable or preview) |
get_build_logs | Retrieve orchestration build logs for a deployment |
get_build_logs_by_build_id | Same as get_build_logs but takes a buildJobId directly |
get_runtime_logs | Retrieve historical runtime logs for any deployment (live or past) |
get_deployment_metrics | Summarize a deployment's CPU and memory usage (avg, p95, max vs limit, OOM kills) over 1h, 6h or 24h |
get_resource_pool | Show the organization's CPU/memory pool, free headroom, allocation steps and per-replica maximums |
set_service_resources | Change a service's per-replica CPU and memory allocation (requires confirmation) |
list_linkable_keys | List the env var keys a service exports for linking (e.g. database credentials) |
get_env_vars | Get env vars of a service's stable environment (manual values masked) |
link_env_vars | Link env vars from a source service (e.g. a database) into another service |
unlink_env_vars | Remove linked env vars from a service |
write_manual_env_vars | Create or update manual env vars on a service (asks you to confirm first - see below) |
provision_postgres | Provision a managed PostgreSQL database in a project |
provision_redis | Provision a managed Redis-compatible datastore in a project (Valkey by default, Dragonfly is deprecated) |
provision_object_storage | Provision an S3-compatible object storage bucket in a project |
list_custom_domains | List the custom domains on a service with their verification status |
add_custom_domain | Add a custom domain to a repository service and get the DNS record to configure |
verify_custom_domain | Re-run DNS verification for a pending custom domain on a repository service |
remove_custom_domain | Remove a custom domain from a service (requires confirmation) |
set_service_access | Take a repository service off the internet (not-exposed), or make it public, password-protected, or members-only (only your organization's members can open it). Turn on members once in the dashboard first |
task_agent | Start an agent session on a service and submit the first task (coder or research) |
list_agent_models | List the AI models selectable for agent sessions (pass an id as modelId to task_agent) |
continue_agent_session | Send a follow-up prompt, resume a parked session, or continue a closed session in a fresh sandbox |
get_agent_run | Poll a run for its result: reply, files changed, commit and PR link |
get_agent_session | Get a session's status, handoff brief, pending question and messages |
list_agent_sessions | List agent sessions in an organization or for one service |
close_agent_session | Permanently close a session and tear down its sandbox |
publish_page | Publish a static site (HTML/CSS/JS) to its own <name>.rock8cloud.page address, password-protected by default, or members only with membersOnly: true |
create_page_upload | Get a single-use upload URL and a shell command to publish a page from a .tar.gz of files on disk, for larger sites. Accepts membersOnly: true |
set_page_access | Make a published page public, limit it to organization members (membersOnly: true), or protect it with a username and password, without republishing |
list_pages | List published pages with their public URLs |
delete_page | Delete a published page (files and listing entry) |
Setup
The MCP server URL for your instance is:
https://app.rock8.cloud/mcpAuthentication is handled via OAuth - each agent will prompt you to authorize on first use.
The sign-in has three steps: Sign in with GitHub, Connect GitHub and Allow access. When hosted git is available, Connect GitHub is skipped and Connect GitHub (optional) is a link on the Allow access screen. Otherwise it shows when your organization has no GitHub connected yet, so the agent can deploy right away. Pick the GitHub account and repositories, or select Skip for now. If you skip, the agent gives you a connect link when a deploy needs GitHub. Allow access starts with every requested permission on. Open Customize to turn some off per area, then select Allow.
ChatGPT
- Open ChatGPT Plugins, select +, then Add custom MCP server. If the option is missing, turn on Developer mode under Settings → Apps → Advanced settings.
- Name it
rock8cloud, enterhttps://app.rock8.cloud/mcpas the public endpoint and pick OAuth authentication. - Select Create as a plugin and sign in to Rock8Cloud when asked.
- Start a new conversation and ask, for example, "Show me what is deployed on rock8cloud".
After Rock8Cloud ships new tools, select Refresh on the plugin to pick them up. Step-by-step with ideas to start with: Control Rock8Cloud from ChatGPT and Codex.
Claude (web, desktop and mobile)
Rock8Cloud is a connector in the Claude directory.
- Open claude.ai/directory/rock8cloud, or in Claude go to Customize → Connectors, click + and search for Rock8Cloud.
- Click Connect and sign in to Rock8Cloud in the browser.
Connect once on the web or in Claude Desktop and the connector is available in Claude for iOS and Android too. On Team and Enterprise plans an owner enables connectors for the organization first. Step-by-step with ideas to start with: Control Rock8Cloud from Claude.
Grok
- Open grok.com/connectors, click New Connector and pick Custom.
- Enter
rock8cloudas the Name andhttps://app.rock8.cloud/mcpas the Server URL, then click Add Connector. - Sign in to Rock8Cloud in the popup.
Grok asks before it runs a tool. If the connector fails after the sign-in, delete it and add it again. Step-by-step with ideas to start with: Control Rock8Cloud from Grok.
Grok Bot
Grok Bot is a separate connection from Grok. Send this in a Grok Bot chat:
Add an MCP server for rock8cloud https://app.rock8.cloud/mcpThe bot asks Add rock8cloud to me now? Pick Yes, add it, click Continue on the rock8cloud card and finish the sign-in popup. The chat then shows Connected rock8cloud. Step-by-step with ideas to start with: Control Rock8Cloud from Grok Bot.
Grok Build
xAI's terminal coding agent:
grok mcp add --transport http rock8cloud https://app.rock8.cloud/mcpOr add it to ~/.grok/config.toml (.grok/config.toml for one project):
[mcp_servers.rock8cloud]
url = "https://app.rock8.cloud/mcp"Grok Build also loads the project's .mcp.json and .cursor/mcp.json, so an existing Claude Code or Cursor entry works as is. The browser sign-in opens on first use. Check the connection with grok mcp doctor rock8cloud.
Claude Code
claude mcp add rock8cloud --transport http https://app.rock8.cloud/mcpOr add to your project's .mcp.json:
{
"mcpServers": {
"rock8cloud": {
"type": "http",
"url": "https://app.rock8.cloud/mcp"
}
}
}Pi
Pi requires an MCP extension. Install the Pi MCP Adapter:
pi install npm:pi-mcp-adapterAdd the server to your project's .mcp.json:
{
"mcpServers": {
"rock8cloud": {
"url": "https://app.rock8.cloud/mcp",
"auth": "oauth"
}
}
}Restart Pi, then authorize Rock8Cloud from inside Pi:
/mcp-auth rock8cloudComplete the browser authorization flow. You can inspect the connection later with /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 --url https://app.rock8.cloud/mcpOr update your ~/.codex/config.toml:
[mcp_servers.rock8cloud]
url = "https://app.rock8.cloud/mcp"Then sign in, and restart the Codex app or start a new CLI session:
codex mcp login rock8cloudIntelliJ
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 IntelliJ), 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-authThis 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:
- Validate locally - agent checks for a Dockerfile (creates one if missing), reads the EXPOSE port, ensures changes are committed and pushed
- Check GitHub connection -
check_github_connectionverifies the GitHub App can access the repository - Create project -
create_projectcreates a new project to group your services - Select branch -
list_brancheslets you pick which branch to deploy - Create service -
create_repo_serviceregisters the service with its Dockerfile and port configuration - Deploy -
deploy_servicetriggers 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.
Agentic Develop Workflow
The mirror of the first deploy, for a repo that is not ready to run. The agentic_develop prompt brings the repository in and puts an agent on it, without deploying anything. See Agentic Develop for how the same thing works from the dashboard.
Creating a service never deploys it, so the flow is the first deploy with the last step left off, plus one flag that keeps pushes from deploying:
- Check GitHub connection -
check_github_connection, exactly as above - Create project -
create_project, or reuse one - Create service -
create_repo_servicewithautoDeploy: false. The service is created with its Deploy on Push workflow turned off. If the repo has no Dockerfile yet, passDockerfileand3000as placeholders. They are stored build settings and build nothing, andedit_servicecorrects them later - Stop - no
deploy_servicecall. The service exists and nothing runs, so no pods and no build minutes are used. Its allocation still counts against your resource pool, the same as any other service - Work on it -
task_agentstarts a coder or research session on the new service, andget_agent_runreturns the result
Pushes from your agents, and pull requests you merge, do not deploy the service, whether or not the repo has a Dockerfile. Agents are still told not to add a Dockerfile in this flow, because making the service runnable is your call. When you want it live, run deploy_service or press Manual deploy once a Dockerfile exists, and turn on Deploy on Push with edit_service autoDeploy: "branch", or in the service's Build Config, if pushes should deploy it from then on.
To start one, ask your agent to "add this repository to Rock8Cloud but do not deploy it", or use the agentic_develop prompt.
Blueprint Deploy Workflow
A blueprint is a ready-made stack. Deploying one used to mean opening the dashboard - an agent can now do the whole thing:
- Pick a blueprint -
list_blueprintsreturns the slug, name, one-line summary and stack tags of everything published - Pick a GitHub account, or skip it -
list_git_ownersreturnsownersavailable to your GitHub sign-in for blueprint deployment.unavailableOwnersexplains linked accounts you cannot currently select. An empty owner list does not necessarily mean the App is uninstalled. You may need to connect your own GitHub account or ask a GitHub organization owner for repository access. WhenhostedGit.availableis true, you can skip GitHub - Deploy -
deploy_blueprinttakes the slug, a project name and, for GitHub, the owner. With an owner it forks the template repository. Without one it copies the templates into Rock8Cloud-hosted repositories. It creates the project with its services and databases, and starts the first deploy on its own - there is no separatedeploy_servicecall. For a blueprint that needs AI, the agent asks for your provider's OpenAI-compatible base URL first, anddeploy_blueprintrefuses to deploy it until it passes your answer. You enter the API key and any other secret input on the service's Environment Variables page after the deploy, unless you give it to the agent yourself - Monitor - the response carries a
serviceIdper created service. The agent pollsget_latest_buildfor each one until it returns adeploymentId, then follows it withget_deployment_status. WithhostedCopyPendingthe hosted repositories are still empty and fill within minutes, so "No active deployment found" is expected until then. The response also carries the blueprint's post-deploy notes, andbootstrapFailuresfor any service whose first deploy could not be started. A GitHub fork listed there needs a manual redeploy. A hosted service whose repository is empty needs your code pushed or the blueprint deployed again, never a redeploy of the empty repository - Build - once it is live, an agent with a local workspace (Codex, Claude Code, OpenCode) clones the
repoUrlof each code service and builds your prototype there. A hosted copy is private and needs the returnedgitcredentials to clone and push. Every push redeploys it. Without a workspace, as in ChatGPT on the web, the agent gives you the repository and the live URL to continue in your editor
When you ask an agent to build or prototype a working app - something with a backend, a database, a login or that you want to keep developing - it offers once to start it from the closest blueprint. The code lands in your GitHub account or a hosted repository with a Dockerfile, so you own it and can run it anywhere. Static mockups and HTML previews are published as pages instead.
Deploying forks or copies real repositories and creates billed services, so agents are instructed to confirm the blueprint, project name and, for GitHub, the owner with you first. If a deploy fails halfway, the error names the repositories it already forked or copied and could not delete. For GitHub forks, delete them in GitHub before retrying. Hosted copies need no action and a retry is safe.
Deploy without GitHub (hosted git)
Without a GitHub account, an agent can use a Rock8Cloud-hosted repository instead. See Hosted Git.
- Check -
list_git_ownersreportshostedGit.available. Whenownersis empty and it is true, skip GitHub - Create -
create_repo_servicewithoutrepoUrlcreates a hosted repository and the service. The result includesgitwithrepoUrl,username,tokenandexpiresAt. If it carriesgitErrorinstead, callget_git_credentialsand do not create the service again - Push -
git push https://<username>:<token>@<host>/<owner>/<repo>.git HEAD:<branch>. A push to the service branch deploys it - Renew - tokens last 24 hours.
get_git_credentialswith theorganizationIdandserviceIdreturns a new one
deploy_blueprint without githubOwner copies the templates into hosted repositories and returns git. This path needs the read:services and write:services scopes because the push credentials are issued before the deploy. If they cannot be issued, nothing is created and the error says so.
Never save the token in a git remote or commit it. Hosted repositories have no language analysis and no Dockerfile generation.
Code Review Workflow
The get_code_reviews tool is designed for agents running inside a repository. A typical workflow:
- Agent detects the current branch (
git branch --show-current) and remote (git remote get-url origin) - Agent calls
get_code_reviewswith the branch and repo URL - the tool searches every organization the token can access, so no org lookup is needed - Agent receives findings with severity, file locations, and fix suggestions. If nothing matches, the response explains why - for example the branch was never pushed, no PR is open, or none of the accessible organizations host the repo
- Agent discusses findings and can apply fixes using the
fixPromptfield - For a finding verified as wrong, agent calls
dismiss_code_review_findingwith theorganizationId,serviceId,reviewIdandfindingIdfromget_code_reviewsand a concretereason(1-255 characters). Each finding also carriesdispositionanddismissReason. Only dismiss after checking the code.
This lets you interactively resolve code review feedback without leaving your editor.
Agent Sessions Workflow
The agent tools let your AI assistant delegate work to a Rock8Cloud agent running in a cloud sandbox with its own copy of the repo. The API key needs the read:agents and write:agents scopes. A typical workflow:
- Task -
task_agentwith a service, an agent type (coderimplements changes and opens a PR,researchis read-only) and the task. Optionally pin an AI model by passing amodelIdfromlist_agent_models- without it the session uses the platform default. It returnssessionIdandrunIdimmediately - runs take minutes - Poll -
get_agent_runevery 15-30 seconds untildoneis true. On success it carries the agent's reply, files changed, commit and PR link. A non-nullpendingQuestionmeans the agent is waiting for an answer - Iterate -
continue_agent_sessionsends follow-up turns to the same session. Suspended sessions resume automatically from their workspace snapshot with full context. Continuing a closed session creates a new session from the base branch, seeds it with the latest handoff, and returns the newsessionId. Use that returned ID for polling and later turns - Inspect -
get_agent_sessionreturns the conversation, the latest handoff brief (the agent's memory) and session status.list_agent_sessionsfinds existing sessions - Finish - sessions park themselves when idle and cost nothing while parked. Use
close_agent_sessiononly when the work is truly done - closing is permanent
Uptime Status
The read-only get_uptime_status tool returns a repository service's monitored URL, current availability, 30-day uptime ratio, average response time, last check, and daily outage history. The OAuth client needs the read:uptime-monitors scope.
Deploy on Push
list_services, get_project and edit_service report each repository service's Deploy on Push state as autoDeploy: its mode, its notification channels (notificationChannelIds) and notifyOn (all or failure_only). The mode is one of:
branch- every push to the service branch deploys. It follows the service branch, so abranchchange moves it too.tag- every new tag deploys the tagged commit.off- pushes do not deploy.custom- an older trigger, such as another branch or a tag pattern, withlistensTosaying what it listens to. It keeps working unchanged until a mode is set, and it cannot be set again.
An agent changes it with edit_service autoDeploy: "off", "branch" or "tag", after you confirm. If the workflow was deleted, it is created again. You can also set it, with its notifications, in the service's Build Config. The OAuth client needs the read:services and write:services scopes.
Dependency Vulnerabilities
The read-only list_vulnerabilities tool returns the dependency vulnerabilities from the latest scan of each repo service's main environment, for the whole organization or for one service with serviceId. The scan can come from a build, the background schedule or a manual scan, and the result says which. Findings of every severity (critical, high, medium, low, unknown) come with counts per severity. Each finding names the CVE, its severity, the package, the installed and fixed version, and the lockfile. Findings at or above the service's block threshold block the deploy. Each service also lists its current scan settings: the block threshold, the report threshold (new findings at or above it send a security alert to the project's notification channels and members' inboxes), whether it is in the Monday weekly security digest, and the background scan schedule with its next run. The OAuth client needs the read:deployments scope.
An agent can change how a service is scanned with edit_service:
dependencyScanEnabledturns build scans on or off. Background scans follow their own schedule either way.dependencyScanBlockThresholdiscritical,highornever(report only).dependencyScanReportThresholdiscritical,high,mediumorall, the lowest severity that notifies and counts as new.dependencyScanDigestEnabledset tofalseleaves the service out of the weekly security digest.dependencyScanSchedulesets the background scans as{ expression, timezone }, a five-field cron expression at most hourly and an IANA timezone, ornullto turn them off.
These changes apply from the next scan. scan_service starts one now. It scans the main environment unless you pass environmentId, works even when scanning is off, and needs a deployed build. The scan runs in the background, so poll list_vulnerabilities until the service no longer reports a running scan. list_vulnerabilities covers the main environment only, so the result of another environment is on its Security page in the dashboard. If a scan is already running, it returns that one with alreadyRunning: true. The OAuth client needs the read:services and write:services scopes.
Services with scanning off, or never scanned, are listed without findings. See Security.
Where alerts go
Security alerts and the weekly digest always reach the members' Rock8Cloud inbox. To also get them in Slack, Discord or a webhook, ask your agent, for example "send vulnerability alerts for this project to #security in Slack". list_notification_channels shows the project's channels, the events each one gets and whether Slack and Discord are connected. set_notification_channel adds or changes one, enabled: false pauses it, and delete_notification_channel removes it after you confirm. events: "security" subscribes it to new-vulnerability alerts, the weekly digest and builds blocked by the scan.
If Slack is not connected yet, the agent gives you a link (valid 15 minutes). Open it while signed in to Rock8Cloud and allow the app in your workspace. Then run /invite @Stratos in the channel that should get the alerts and tell the agent you are done. The bot can only post to public channels it was invited to. If the channel you asked for is not one of them, the agent lists the ones it can use. Discord works the same way with the bot added to your server. A project has one enabled Slack channel and one enabled Discord channel at most, so the tool updates the existing one. Only organization owners can change channels or connect Slack and Discord. The OAuth client needs the read:projects, read:organization and write:organization scopes. See Notifications.
Dashboard views in ChatGPT and Codex
In ChatGPT and Codex, these tools render live views of your organization inside the conversation. Other MCP clients get the same data as a text summary.
| Tool | View |
|---|---|
open_dashboard | Every project and service in an organization with its live deployment state |
open_service_panel | A panel beside the conversation that tracks one service: live status, deployments and logs |
show_service | One service with its live state, recent deployments, build and runtime logs, and a redeploy action |
show_usage | CPU and memory graphs of a service over 1h, 6h, 24h or 7d, with its limits, deploys and out-of-memory kills |
show_pages | The organization's pages with their links, access and status |
show_vulnerabilities | The dependency vulnerabilities of every repo service, or of one service, with counts per severity and a Scan now action |
Writing Environment Variables
write_manual_env_vars lets an agent create or update manual (plaintext) environment variables on a service, such as an API key or a config value you give it directly. Since these values may be secrets, agents are instructed to ask you to confirm the exact key/value pairs before writing anything. If an agent tries to write env vars without asking, stop it and ask it to confirm with you first.
Values are never read back to the agent. Use get_env_vars to check which keys already exist - manual values are always shown masked as ***.
Assistants never ask you for API keys, tokens or passwords. They link the service's Environment Variables page in the dashboard, where you enter them yourself, and then redeploy. If you paste a key into the chat anyway, it is still written. Blueprints start with their secret inputs empty unless you give them.
Verify Connection
After setup, verify the MCP server is connected:
Claude Code:
claude mcp listPi: Run /mcp. rock8cloud should appear in the server list.
Other agents: Check the MCP or tools panel in your IDE settings - rock8cloud should appear with the tools listed above.