Skip to main content

What is Agent Cloud?

The Agent Cloud is a Model Context Protocol (MCP) server which allows any MCP-compatible AI agent (Claude Code, Cursor, Windsurf, etc.) to interact directly with io.net APIs. Instead of manual dashboard management, you can now manage your decentralized infrastructure through natural language.

Why Connect to Agent Cloud?

  • Agentic DevOps: Ask your agent to “Find the cheapest 4x H100 cluster and deploy my PyTorch image,” and let it handle the API calls.
  • Plug-and-Play: No custom SDKs to install. Use the universal MCP standard to bridge your AI tools to the large GPU cloud.
  • Enterprise Ready: Supports both simple API key headers for individuals and dynamic key forwarding for multi-tenant applications.
  • x402 Payments: When credits run short, a deploy returns an x402 payment request your agent can settle in USDC and retry, with no trip back to the dashboard.

Quickstart: Connect to the IO Cloud

You can link your AI agent to our hosted MCP server in seconds. Replace <YOUR_IO_NET_API_KEY> with your personal key from the io.net dashboard with io-cloud project scopes:

2. Verify Connection

Once added, restart your agent and try these prompts:
  • “What io-cloud tools are available to me?”
  • “List all active container deployments in my account.”
  • “Find available NVIDIA H100 hardware specs.”

Desktop Agent Configuration

If you prefer using GUI-based agents, copy and paste the configurations below. Replace <YOUR_IO_NET_API_KEY> with your actual key with io-cloud project scopes.

Claude Desktop

Add this to your claude_desktop_config.json (found in %AppData%\Claude on Windows or ~/Library/Application Support/Claude on macOS):

Cursor & Windsurf

  1. Open Settings > Features > MCP.
  2. Click + Add New MCP Server.
  3. Name: io-cloud
  4. Type: command (or http if supported).
  5. URL: https://mcp.io.solutions/mcp
  6. Header: x-api-key: <YOUR_IO_NET_API_KEY>

Capabilities & Documentation

Available MCP Tools

The recommended flow is: check credits, pick hardware from the catalog, estimate the hourly price, deploy, keep an eye on runway, and destroy the deployment when the work is done.

Billing: pay as you go by default

Both deploy tools default to billing_model: "payg":
  • The first hour is charged from your credits at deploy time. After that, usage is charged every few minutes.
  • A PayG deployment has no end time. It runs until you destroy it or your credits run out, and when credits run out it is terminated.
  • The first hour is not refunded. Destroying a deployment after 3 minutes still costs a full hour, so avoid deploy, destroy, redeploy loops.
  • On a PayG deployment, a finished_at about 30 years out and compute_minutes_remaining around 60 are placeholders, not an expiry.
  • duration_hours is not needed for PayG. The extend tools do not work on PayG deployments; destroy them to stop billing.
Use get_credit_status before deploying and while PayG deployments run. burn_rate.runway_hours_estimate is how many hours your credits last at the current burn rate; supplier prices can change, so treat it as an estimate. When runway drops under 24 hours the result includes a runway_warning, and the agent tells you and asks whether to top up and how much. It does not call top_up_credits or send a payment without your approval. Set billing_model: "duration" (with duration_hours) for a fixed number of hours paid up front.

Working with Hardware IDs

The catalog returns two kinds of hardware. Regional hardware uses string IDs and reports a location (for example gpu_1x_a6000 in US, or H100_sxm5x8 in CA); network hardware uses integer IDs with a null location. What you can pass back depends on the service. vmaas_deploy_vm and caas_get_price_estimate accept either form, so pass the ID exactly as the catalog returned it and do not coerce a string ID to an integer. caas_deploy_container and caas_get_available_replicas currently accept integer IDs only, so pick a network hardware entry for those calls. Every deploy needs a placement, so location_ids is not optional in practice: pass exactly one location, or a node_pool_id for a private node pool. Passing both is rejected, and so is passing neither. Only one location per deployment is supported today. caas_get_price_estimate requires location_ids as well. VMaaS accepts country codes such as ["US"]; caas_deploy_container currently takes integer location IDs through this server.
duration_hours on caas_extend_deployment_duration and vmaas_extend_cluster_duration is additive: it adds N hours to the time remaining, it does not set the new total. To reach a target total, subtract the current remaining hours yourself.

Topping Up Credits with x402

There are two ways to add credits with x402, the HTTP 402 payment protocol, without a human opening the dashboard:
  • Ahead of time: once the owner approves, call top_up_credits with amount_usd, the exact USDC amount you will send (1 to 10,000, at most 2 decimals). Pick a round number. The result has send_exactly and credits_usd, the credits you receive after the provider fee. Calling it again with the same amount returns the same quote. Use this to keep PayG deployments funded.
  • When a request is short: a deploy or extend that lacks credits returns an x402 quote for the shortfall.
The four tools that spend credits (caas_deploy_container, caas_extend_deployment_duration, vmaas_deploy_vm, vmaas_extend_cluster_duration) return status: "payment_required" instead of an error. This is a bill to pay and then retry, not a failure. Under payment you get a standard x402 envelope: x402Version: 2, an accepts array whose first entry uses the exact scheme, and an io_net object with the amounts in USD. Any x402-capable client can read it. Today the quote is payable in USDC on Solana, but take the chain and token from accepts[0].network and accepts[0].asset rather than assuming:
  • Pay exactly maxAmountRequired of the given asset, to the exact payTo address, on the stated network. maxAmountRequired is in the asset’s atomic units, so "16040000" means 16.04 USDC. The tool result also carries a send_exactly object with the amount already converted.
  • Always take payTo from the response you are acting on. Never send to an address cached from an earlier call. A plain transfer with no memo matches correctly.
  • Send it in a single transfer. Never split it across several.
  • Top-ups have a $1.00 minimum, so a shortfall under a dollar still requires a $1 payment.
io_net.shortfall_usd is the gap between the request’s cost and your balance. io_net.quote_usd is what the top-up actually costs, which is the shortfall grossed up for the payment provider’s fee and floored at the minimum. For a shortfall quote, pay exactly quote_usd, not shortfall_usd. The difference between the two (the fee gross-up and the $1 minimum) stays on your account as IO Credits.
The amount must match exactly. A quote of 16.04 USDC must be paid as 16.04 USDC, not 17 and not 16. Do not round up, do not add a buffer for fees, do not overpay to be safe. Any other amount, over or under, cannot be matched to the quote: no credits are applied, the deploy does not happen, and recovering the funds requires a manual refund through support@io.net.

Authentication Methods

  1. Static Header (Recommended for Individuals): Include your API key with io-cloud project scopes in the x-api-key HTTP header during setup.
  2. Dynamic Forwarding (For Multi-User Apps): Pass the key dynamically within the auth.api_key argument of any specific tool call.

Programmatic Usage (Python Example)

If you are building a custom integration, you can use the mcp Python SDK to interact with the IO Cloud server.

Troubleshooting

  • Authentication Failure (401/403): Verify your API key in the io.net dashboard.
  • “No API key provided”: Ensure the header is correctly set in your JSON config or passed in the tool arguments.
  • Connection Timeout: Verify your network allows outbound traffic to https://mcp.io.solutions.
  • status: "payment_required": Your account is short on credits. Send exactly the quoted amount (send_exactly.amount) in one transfer, then retry the call.
  • Paid but no credits: The amount sent did not exactly match maxAmountRequired. It cannot be matched automatically. Contact support@io.net with the io_net.quote_id, io_net.payment_intent_id and the transaction signature.
  • Empty hardware list: Filters match the catalog’s own values. Use gpu: "H100", not gpu: "NVIDIA H100".
Ready to scale your infrastructure? For high-volume requirements or custom integration support, contact us at support@io.net