Control Plane MCP
The remote control plane exposes application operations from the REST API. HTTP and MCP share request validation, resource authorization and public response contracts. Tool discovery describes the tools and inputs available in the deployed version.
Connection
Two ways to connect — use whichever fits your client:
| Method | URL / Command | Auth | Best for |
|---|---|---|---|
| Remote (HTTP) | https://api.oblien.com/v1/mcp | Oblien OAuth sign-in, or existing API-key headers | Interactive clients, CI pipelines, remote agents |
| Local (stdio) | npx --yes --package=oblien@3 oblien-mcp | Saved credentials or env vars | IDE integrations (VS Code, Cursor) |
The local SDK wraps its REST methods and uses saved API credentials. Its tool catalog and parameter names can differ from the remote server; use tools/list on the server you connect to.
Remote — Streamable HTTP
The control plane MCP server is available as a remote HTTP endpoint. Any MCP client that supports Streamable HTTP transport can connect directly — no local install required.
Endpoint: https://api.oblien.com/v1/mcp
Sign in with Oblien
Use an OAuth-capable Streamable HTTP client with the endpoint above. The client discovers the authorization server and opens the existing Oblien login. Review the requested permissions and choose the account, namespace or VM before approving. Reading the consent page does not grant access.
Permissions are explicit: for example, vm.read permits inspection, vm.power permits power actions and vm.network permits network changes. Resource ownership and current sharing permissions are checked again on every call. Choosing one VM never grants access to its siblings. Revoke a connection in Settings → Connected applications.
OAuth consent does not grant billing, account-security, credential-management or invitation-management authority. Backend-only tools can appear in discovery but remain unavailable to OAuth grants. Shared resources also retain their existing restrictions. Public pricing tools need no additional resource permission, while their MCP transport still requires authentication.
For custom client implementations, use authorization code flow with S256 PKCE and resource=https://api.oblien.com/v1/mcp. Protected-resource metadata is at /.well-known/oauth-protected-resource/v1/mcp; authorization-server metadata is at /.well-known/oauth-authorization-server on https://api.oblien.com. Public dynamic registration is supported. Follow the metadata instead of constructing token URLs.
Access tokens expire after 15 minutes. Refresh tokens rotate; serialize refresh requests and save the replacement. Connections expire 30 days after consent. A missing grant produces a 401 challenge; insufficient tool scopes produce a 403 challenge. A resource-ownership denial cannot be fixed by asking for broader OAuth scopes.
MCP OAuth access tokens are audience-bound. They cannot be passed to the general REST SDK or used directly as VM runtime credentials. Use an authorized runtime-access tool to request a scoped runtime ticket.
Existing API credentials
Include your API credentials as HTTP headers on every request:
X-Client-ID: your-client-id
X-Client-Secret: your-client-secretOr use an existing API bearer token:
Authorization: Bearer <token>Example — list tools:
curl -X POST https://api.oblien.com/v1/mcp \
-H "X-Client-ID: your-client-id" \
-H "X-Client-Secret: your-client-secret" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}'MCP client config (HTTP transport):
{
"mcpServers": {
"oblien": {
"url": "https://api.oblien.com/v1/mcp",
"headers": {
"X-Client-ID": "your-client-id",
"X-Client-Secret": "your-client-secret"
}
}
}
}Local — Stdio
Run the MCP server as a local subprocess. This is the standard for IDE integrations — the server reads stdin/writes stdout.
Setup credentials (one-time):
npx oblien@3 config set --client-id "your-client-id" --client-secret "your-client-secret"Credentials are stored in ~/.oblien/credentials.json (mode 0600, private to your user). Once saved, oblien-mcp picks them up automatically.
Run the server:
npx --yes --package=oblien@3 oblien-mcpAlternatively, pass credentials via environment variables (useful for CI or ephemeral environments):
export OBLIEN_CLIENT_ID="your-client-id"
export OBLIEN_CLIENT_SECRET="your-client-secret"
npx --yes --package=oblien@3 oblien-mcpCredential priority: environment variables override the saved config file.
IDE configuration
VS Code (Claude / Copilot)
Add to your .vscode/mcp.json:
{
"servers": {
"oblien": {
"command": "npx",
"args": ["--yes", "--package=oblien@3", "oblien-mcp"]
}
}
}If you've already run npx oblien@3 config set, no env block is needed — credentials are read from ~/.oblien/credentials.json automatically.
Alternatively, pass credentials explicitly:
{
"servers": {
"oblien": {
"command": "npx",
"args": ["--yes", "--package=oblien@3", "oblien-mcp"],
"env": {
"OBLIEN_CLIENT_ID": "your-client-id",
"OBLIEN_CLIENT_SECRET": "your-client-secret"
}
}
}
}Cursor
Add to your Cursor MCP settings:
{
"mcpServers": {
"oblien": {
"command": "npx",
"args": ["--yes", "--package=oblien@3", "oblien-mcp"]
}
}
}Or with explicit env vars:
{
"mcpServers": {
"oblien": {
"command": "npx",
"args": ["--yes", "--package=oblien@3", "oblien-mcp"],
"env": {
"OBLIEN_CLIENT_ID": "your-client-id",
"OBLIEN_CLIENT_SECRET": "your-client-secret"
}
}
}
}Tool reference
The tables below cover common VM tools and the SDK stdio surface. The remote server also exposes namespace, disk, analytics, routing, CDN, pricing and owner-authorized billing/credit/affiliate operations. Use tools/list for the exact catalog and JSON input schemas; listing a tool does not authorize calling it. HTTP streaming and personal login/security flows are not ordinary MCP tools.
Tools
Core
VM CRUD, quota, and usage overview.
| Tool | Description | REST equivalent |
|---|---|---|
vm_create | Create a new VM | POST /vms |
vm_list | List VMs (with filters) | GET /vms |
vm_get | Get a single VM | GET /vms/:id |
vm_update | Update VM settings | PUT /vms/:id |
vm_delete | Delete a VM | DELETE /vms/:id |
vm_images | List available base images | GET /vms/images |
vm_usage_global | Global usage across all VMs | GET /vms/usage |
vm_activity | Recent activity log | GET /vms/activity |
vm_quota | Account quota and limits | GET /vms/quota |
vm_estimate | Estimate cost before creating | GET /vms/estimate |
Overlay / Filesystem
Manage the VM overlay filesystem.
| Tool | Description | REST equivalent |
|---|---|---|
vm_disk_list | List files in overlay | GET /vms/:id/overlay |
vm_disk_usage | Overlay disk usage | GET /vms/:id/overlay/usage |
vm_disk_resize | Resize overlay partition | PUT /vms/:id/overlay/resize |
vm_disk_sync | Sync overlay to persistent storage | POST /vms/:id/overlay/sync |
Power
Start, stop, pause, resume, and restart VMs.
| Tool | Description | REST equivalent |
|---|---|---|
vm_start | Start a stopped VM | POST /vms/:id/start |
vm_stop | Stop a running VM | POST /vms/:id/stop |
vm_restart | Restart a VM | POST /vms/:id/restart |
vm_pause | Pause (suspend) a VM | POST /vms/:id/pause |
vm_resume | Resume a paused VM | POST /vms/:id/resume |
Lifecycle
Control VM lifetime, TTL, and permanent/temporary status.
| Tool | Description | REST equivalent |
|---|---|---|
vm_lifecycle_get | Get lifecycle state | GET /vms/:id/lifecycle |
vm_lifecycle_permanent | Make VM permanent | POST /vms/:id/lifecycle/permanent |
vm_lifecycle_temporary | Make VM temporary | POST /vms/:id/lifecycle/temporary |
vm_lifecycle_ttl | Set TTL duration | PUT /vms/:id/lifecycle/ttl |
vm_ping | Renew TTL (keep alive) | POST /vms/:id/ping |
vm_lifecycle_destroy | Destroy and clean up | DELETE /vms/:id/lifecycle |
Logs
Retrieve and manage VM logs.
| Tool | Description | REST equivalent |
|---|---|---|
vm_logs | Get recent logs | GET /vms/:id/logs |
vm_logs_clear | Clear log buffer | DELETE /vms/:id/logs |
vm_logs_list | List log files | GET /vms/:id/logs/list |
vm_logs_file | Get a specific log file | GET /vms/:id/logs/file/:name |
vm_logs_boot | Get boot logs (SSE stream) | GET /vms/:id/logs/stream/boot |
Metrics
System info, config, and real-time stats.
| Tool | Description | REST equivalent |
|---|---|---|
vm_stats | CPU, memory, disk stats | GET /vms/:id/stats |
vm_info | System information | GET /vms/:id/info |
vm_config | Running configuration | GET /vms/:id/config |
Network
Network policy and outbound IP configuration.
| Tool | Description | REST equivalent |
|---|---|---|
vm_network_get | Get network settings | GET /vms/:id/network |
vm_network_update | Update network policy | PATCH /vms/:id/network |
vm_network_ip | Assign outbound IP | POST /vms/:id/network/ip |
vm_firewall_get | Read the port rules, available Edge settings and revision | GET /vms/:id/network/firewall |
vm_firewall_rule_add | Add a port or range at the observed revision. Defaults to Private and Oblien Edge in v2 and SDK 4. | POST /vms/:id/network/firewall/rules |
vm_firewall_update | Replace port lists at the observed revision. Edge and public changes require the owner. | PUT /vms/:id/network/firewall |
vm_public_ipv6_get | Read public IPv6 state and current revision | GET /vms/:id/network/ipv6 |
vm_public_ipv6_set | Owner-only opt-in and optional TCP port replacement; requires the current revision | PUT /vms/:id/network/ipv6 |
vm_public_ipv6_rotate | Owner-only address rotation within provider limits; retain the request ID and revision on retries (SDK 3.3.0) | POST /vms/:id/network/ipv6/rotate |
The SDK MCP server includes the IPv6 tools from version 3.2.0. Public IPv6 is off by default; inspect the returned state after failures and never blindly retry a stale enable. See Public IPv6.
For these tools, the remote server takes vmId; the local SDK server takes vm_id. IPv6 updates require enabled and expected_revision; omitting tcp_ports preserves the central public port list. Firewall updates require private_ports, public_tcp_ports and expected_revision. The two updates share one revision. Read the revision with the matching GET tool before updating. For example, local SDK arguments are:
{ "vm_id": "your-vm-id", "enabled": true, "tcp_ports": [5432], "expected_revision": 0 }Replace the example revision with the returned value. An empty port list opens nothing. Direct SSH requires explicitly including port 22 and configuring guest credentials; managed SSH remains independent.
Snapshots & Archives
Point-in-time snapshots and long-term archives.
| Tool | Description | REST equivalent |
|---|---|---|
vm_snapshot_create | Create a snapshot | POST /vms/:id/snapshot |
vm_snapshot_restore | Restore from snapshot | POST /vms/:id/restore |
vm_archive_create | Create an archive | POST /vms/:id/archives |
vm_archive_list | List archives | GET /vms/:id/archives |
vm_archive_get | Get archive details | GET /vms/:id/archives/:archiveId |
vm_archive_delete | Delete an archive | DELETE /vms/:id/archives/:archiveId |
vm_archive_delete_all | Delete all archives | DELETE /vms/:id/archives |
SSH
SSH access management.
| Tool | Description | REST equivalent |
|---|---|---|
vm_ssh_status | Get SSH status | GET /vms/:id/ssh |
vm_ssh_enable | Enable SSH | POST /vms/:id/ssh/enable |
vm_ssh_disable | Disable SSH | POST /vms/:id/ssh/disable |
vm_ssh_password | Set SSH password | POST /vms/:id/ssh/password |
vm_ssh_key | Set authorized key | POST /vms/:id/ssh/key |
Workloads
Manage long-running processes inside VMs.
| Tool | Description | REST equivalent |
|---|---|---|
vm_workload_create | Create a workload | POST /vms/:id/workloads |
vm_workload_list | List workloads | GET /vms/:id/workloads |
vm_workload_get | Get workload details | GET /vms/:id/workloads/:wid |
vm_workload_update | Update a workload | PATCH /vms/:id/workloads/:wid |
vm_workload_delete | Delete a workload | DELETE /vms/:id/workloads/:wid |
vm_workload_delete_all | Delete all workloads | DELETE /vms/:id/workloads |
vm_workload_start | Start a workload | POST /vms/:id/workloads/:wid/start |
vm_workload_stop | Stop a workload | POST /vms/:id/workloads/:wid/stop |
vm_workload_status | Get workload status | GET /vms/:id/workloads/:wid/status |
vm_workload_logs | Get workload logs | GET /vms/:id/workloads/:wid/logs |
vm_workload_stats | Get workload resource stats | GET /vms/:id/workloads/:wid/stats |
Metadata
Custom key-value metadata on VMs.
| Tool | Description | REST equivalent |
|---|---|---|
vm_metadata_get | Get all metadata | GET /vms/:id/metadata |
vm_metadata_update | Set/update metadata | PATCH /vms/:id/metadata |
Resources
CPU, memory, and disk resource allocation.
| Tool | Description | REST equivalent |
|---|---|---|
vm_resources_get | Get resource allocation | GET /vms/:id/resources |
vm_resources_update | Update resources (hot resize) | PATCH /vms/:id/resources |
Usage
Per-VM billing, usage tracking, and credits.
| Tool | Description | REST equivalent |
|---|---|---|
vm_usage | Get usage breakdown | GET /vms/:id/usage |
vm_usage_totals | Get usage totals | GET /vms/:id/usage/totals |
vm_usage_tracking_start | Start usage tracking | POST /vms/:id/usage/tracking/start |
vm_usage_tracking_stop | Stop usage tracking | POST /vms/:id/usage/tracking/stop |
vm_credits_chart | Credits usage chart data | GET /vms/:id/usage/credits/chart |
vm_usage_wipe | Wipe usage data | DELETE /vms/:id/usage |
Public Access
Expose VM ports to the internet.
| Tool | Description | REST equivalent |
|---|---|---|
vm_public_access_list | List exposed ports | GET /vms/:id/public-access |
vm_public_access_expose | Expose a port publicly | POST /vms/:id/public-access |
vm_public_access_revoke | Revoke public access | DELETE /vms/:id/public-access/:port |
Runtime API Access
Enable and manage the HTTP API running inside VMs.
| Tool | Description | REST equivalent |
|---|---|---|
vm_api_access_status | Get API access status | GET /vms/:id/runtime-api-access |
vm_api_access_enable | Enable Runtime API | POST /vms/:id/runtime-api-access/enable |
vm_api_access_disable | Disable Runtime API | POST /vms/:id/runtime-api-access/disable |
vm_api_access_token | Get gateway connection token | GET /vms/:id/runtime-api-access/token |
vm_api_access_token_rotate | Rotate connection token | POST /vms/:id/runtime-api-access/token |
vm_api_access_token_raw | Get raw connection token | GET /vms/:id/runtime-api-access/token/raw |
Details
| Tool | Description | REST equivalent |
|---|---|---|
vm_details | Full VM details (combined info) | GET /vms/:id/details |
VM Domains
Custom domain management for VMs.
| Tool | Description | REST equivalent |
|---|---|---|
vm_domain_get | Get custom domain info | GET /vms/:id/domain |
vm_domain_connect | Connect a custom domain | POST /vms/:id/domain |
vm_domain_disconnect | Disconnect custom domain | DELETE /vms/:id/domain |
vm_domain_check_dns | Check DNS before connecting | POST /vms/:id/domain/check |
vm_domain_ssl_renew | Renew SSL certificate | POST /vms/:id/domain/ssl/renew |
Pages
Static page deployments from VM filesystem.
| Tool | Description | REST equivalent |
|---|---|---|
page_list | List all deployed pages | GET /pages |
page_get | Get a page by slug | GET /pages/:slug |
page_create | Create a page from a VM folder | POST /pages |
page_deploy | Re-deploy files to an existing page | POST /pages/:slug/deploy |
page_update | Update page name or slug | PUT /pages/:slug |
page_enable | Enable a disabled page | POST /pages/:slug/enable |
page_disable | Disable a page (keeps files) | POST /pages/:slug/disable |
page_delete | Permanently delete a page | DELETE /pages/:slug |
page_domain_get | Get custom domain info for a page | GET /pages/:slug/domain |
page_domain_connect | Connect a custom domain | POST /pages/:slug/domain |
page_domain_disconnect | Disconnect custom domain | DELETE /pages/:slug/domain |
page_domain_check_dns | Check DNS before connecting | POST /pages/:slug/domain/check |
page_domain_ssl_renew | Renew SSL certificate | POST /pages/:slug/domain/ssl/renew |
Domain Checks
Slug availability and custom domain DNS verification — pre-flight checks before claiming subdomains or connecting custom domains.
| Tool | Description | REST equivalent |
|---|---|---|
domain_check_slug | Check if a slug is available on a wildcard domain | POST /domain/check-slug |
domain_verify | Verify DNS configuration for a custom domain | POST /domain/verify |
Edge Proxy
Reverse proxy routes through subdomains (enterprise only).
| Tool | Description | REST equivalent |
|---|---|---|
edge_proxy_list | List all edge proxies | GET /edge-proxy |
edge_proxy_get | Get an edge proxy by ID | GET /edge-proxy/:id |
edge_proxy_create | Create a new edge proxy | POST /edge-proxy |
edge_proxy_update | Update an edge proxy | PUT /edge-proxy/:id |
edge_proxy_enable | Enable a disabled proxy | POST /edge-proxy/:id/enable |
edge_proxy_disable | Disable a proxy | POST /edge-proxy/:id/disable |
edge_proxy_delete | Permanently delete a proxy | DELETE /edge-proxy/:id |
Namespaces
Operations use the authenticated account and any namespace or VM restriction attached to the credential. On collection tools that accept a namespace filter, select it explicitly:
{
"name": "vm_list",
"arguments": {
"namespace": "team-backend"
}
}The credential must authorize that namespace. An API key or OAuth connection bound to one namespace cannot switch namespaces through tool arguments.
Error handling
Tool calls that fail return a standard MCP error object:
{
"isError": true,
"content": [
{
"type": "text",
"text": "{\"error\":\"vm_not_found\",\"message\":\"VM ws_abc123 not found\"}"
}
]
}HTTP status codes from the underlying API are mapped to descriptive error messages. Common errors:
| Error | Cause |
|---|---|
auth_failed | Missing or invalid credentials |
vm_not_found | Invalid VM ID or no access |
forbidden | Key lacks required scope |
quota_exceeded | Account resource limit reached |
IPv6 rotation is destructive to existing connections and idempotent for an identical request. Read rotation.available, limits and next allowed time first. A pending response is accepted work; poll state or replay the same ID and original revision. Never generate another ID to resolve an uncertain outcome. The provider owns address allocation and recovery.
Per-route wake (API v2)
vm_route_wake_get reads one VM hostname's wake permission, revision and VM idle status. vm_route_wake_set changes it with hostname, auto_wake and expected_revision. Set the SDK MCP server’s API base to https://api.oblien.com/v2 for these tools. They use the same owner/namespace authorization and conflict handling as HTTP. Automatic sleep remains a separate VM setting.
vm_firewall_update on v2 accepts edge_port_ranges for gateway TCP, plus inclusive private_port_ranges and public_tcp_port_ranges, plus public_tcp_allow_all. Allow-all exposes every listening TCP service when IPv6 is enabled, except reserved runtime ports. Read and review the current policy before changing it; do not retry a stale revision automatically.