Skip to main content
RelayCloud exposes an authenticated Model Context Protocol server for managing your RelayCloud resources through an MCP client.

Endpoint

Configure your MCP client to use:
The server advertises itself as RelayCloud MCP Server. The endpoint also provides OAuth routes for clients that support MCP OAuth discovery and authorization.

Installation

Edit ~/.config/opencode/opencode.json and add the MCP server:
Authenticate with RelayCloud by running:

Available tools

Discover resources

  • list-organizations-tool
  • list-projects-tool
  • list-servers-tool
  • list-server-services-tool
  • list-server-service-ports-tool
  • list-workspaces-tool
  • list-workspace-domain-listeners-tool
  • list-workspace-tls-configs-tool
  • list-assistants-tool
  • list-conversations-tool

Inspect resources

  • get-workspace-tool
  • get-conversation-tool
  • get-assistant-options-tool
  • get-workspace-tls-config-tool

Create resources

  • create-project-tool
  • create-server-tool
  • create-workspace-tool
  • generate-workspace-deploy-key-tool
Workspace creation accepts repository, deployment, package manager, web target, and domain configuration. Deploy keys are handled as encrypted, one-time inputs during workspace creation. The deploy key tool never returns the private key in plain text. It only returns an encrypted version of the private key along with the public key, so the agent can add the public key to your repository. The private key is never persisted on RelayCloud. When creating a workspace, the agent passes the encrypted version of the private key, which RelayCloud uses only to set up the workspace’s git repository.

Assistants and lifecycle actions

  • prompt-assistant-tool sends a prompt to an OpenCode Assistant in a workspace or continues an existing conversation.
  • restart-server-service-tool restarts a server service.
  • restart-workspace-domain-listener-tool restarts a workspace domain listener.
  • archive-assistant-tool archives an Assistant.
  • archive-workspace-tool archives a workspace.
  • archive-server-tool archives a server.
The prompt tool accepts a workspace ID or conversation ID and a prompt. It can also target an agent, model provider, model, and variant.

TLS operations

  • issue-workspace-tls-tool
  • activate-workspace-tls-config-tool
These tools support the workspace TLS provisioning flow. Read the returned TLS configuration and follow the required challenge or activation state before treating a certificate as active.

Resources

The server registers two guidance resources:
  • WorkspaceCreationGuideResource
  • WorkspaceTlsProvisioningGuideResource
Use these resources when your MCP client needs the expected sequence for workspace creation or TLS provisioning.
Do not paste access tokens, client secrets, orchestrator credentials, or OpenCode passwords into prompts or documentation. Use your MCP client’s secret storage.