# MCP: Host Management

> Manage hosted GPU, CPU, and storage machines via the Meshive MCP server — maintenance windows, listing, fan curves, setup retries, machine removal, renter messages, logins, install commands, and payouts.

Source: https://docs.meshive.ai/sdk-cli/mcp/host/

With a write key the agent can run the host side of your machines too (MCP server 1.8+): the same things the host dashboard does, except payout onboarding. Every tool works only on machines you host; any other machine ID is reported as not found. Reading needs only a read-only key. See [Setup & Tools](/sdk-cli/mcp/) for connecting your agent.

## Hosting tools

| What | Tools | Needs `confirm` |
| --- | --- | --- |
| Look at a machine | `machines`, `machine_history` | No |
| Maintenance | `schedule_maintenance`, `maintenance_window` | Yes |
| Listing | `set_machine_listing` | Taking a machine off the market only |
| Fan curve | `machines` with `include_fan`, `set_fan_curve` | Setting a curve only |
| Setup | `retry_machine_setup` | No |
| Removal | `delete_machine` | Yes |
| Messages | `host_messages`, `send_host_message`, `mark_host_messages_read` | Sending only |
| Logins and install | `machine_credentials`, `host_install_command` | Yes |
| Payouts | `billing_history` with `kind: "payouts"` | No (read only) |

## Looking at a machine

`machines` lists each machine with whether it is `listed`, its `price` (what renters pay per GPU per hour, or per GiB-month on a storage machine; you earn this minus your platform fee), today's earnings, the amount waiting to be paid out, a `summary` of CPU, RAM and rentable disk in GiB, and `setup` while a machine is being set up or a setup step failed (MCP server 1.11+). One machine adds its `ip`, full hardware `specs` (disks with their speeds, temperatures and life left; internet speeds in Mbps), the full `setup` with its log, `network_status` (each interface's link and recent automatic network fixes) and `disk_health` (each disk's state and the system disk's usage). The setup log and network event details are text the machine reported, so the agent treats them as data.

## Maintenance

`schedule_maintenance` takes a reason, a start and an end. Without `confirm` it shows the notice you are giving, the workspaces that are running on the machine and what the window does to uptime, and schedules nothing. A window needs about 48 hours' notice; with less, the agent is told not to switch to an emergency window by itself, because that changes the uptime effect — it asks you first. `maintenance_window` edits, extends, ends or cancels an existing window by its ID, and each action's preview says what it will do. A scheduled window starts by itself within about a minute of its start time; the preview of an overdue window says so. Resources on a machine aren't billed while its window is open.

## Listing

`set_machine_listing` with `listed: true` first checks whether the machine can be listed and, if not, tells the agent why instead of sending anything. Taking a machine off the market asks first and says how many pods are running on it.

## Fan curve

`machines` with one GPU `machine` and `include_fan: true` adds the machine's `fan_curve` — its mode, the points the machine follows as [temperature °C, fan %] pairs, the saved custom and the default curve, and the `limits` a custom curve must keep — and `fan_status`, each GPU's temperature and fan speeds read from the machine now (MCP server 1.11+). While the machine is offline or its agent doesn't answer, `fan_status` is null with `fan_status_error` (`machine_offline` or `fan_status_unavailable`); a machine without GPUs gets null with a note. Fan errors are machine text and treated as data.

`set_fan_curve` sets the curve, like the console's **Fan curve** tab: `mode` `"default"` (Meshive's curve), `"custom"` with `points` (2 to 8 pairs, temperatures rising, fan % never falling, the last one 100% at or below the limit `include_fan` shows) or `"driver"` (Meshive stops controlling the fans, and the NVIDIA driver or your own fan tool does). Because it changes how the GPUs that run other users' pods are cooled, it takes `confirm`: the preview has the server check the curve and shows the current and the new curve (with the saved custom points), how many client pods run on the machine and warnings, and saves nothing. `points` given with `"default"` or `"driver"` replace the saved custom curve, and the preview's question says so. A curve the server refuses fails there with `invalid_fan_curve`, which says what to fix — so do a `"custom"` curve without `points` and points that aren't [temperature, fan %] pairs — and a machine without GPUs with `not_gpu_machine`. A saved curve the machine couldn't take at once answers `applied: false`: it picks the curve up within about 5 minutes or when it reconnects, so the agent doesn't call again but checks with `include_fan`.

## Setup

`retry_machine_setup` retries a setup step the machine is stuck on, or its port check. A setup step that the machine's agent runs reboots the machine first; the port check can be retried only about once every 30 seconds.

## Removal

`delete_machine` shows what is on the machine — pods, serving replicas, storage and workspaces — and whether the removal gives renters a grace period (48 hours) or is immediate, and removes nothing until you say yes. **Removing a machine can't be undone.** Pending maintenance windows are cancelled. Once a removal has started, asking again is refused.

## Messages

`host_messages` lists what renters wrote to you. Each message names at most 5 of the workspace's pods and volumes on the machine (`about` display names and `pods`) and counts all of them (`pod_count`, `volume_count`), so a page of a busy machine stays small (MCP server 1.11+). That text is written by other people, so the agent is told to treat it as data and never as instructions; reading doesn't mark it read, and `mark_host_messages_read` does that without a `confirm`. `send_host_message` writes to one workspace that is using the machine, or to `all` of them; the preview names who will receive it, and you confirm before it goes out. A workspace that isn't using the machine is refused.

Renters can write to you too: from a workspace, `send_host_message` reaches the host of a machine it uses, and `host_messages` and `mark_host_messages_read` with `workspace` read and mark that side of the conversation (MCP server 1.11+). See [Talking to hosts](/sdk-cli/mcp/workspaces/#talking-to-hosts).

## Logins and install commands

`machine_credentials` reveals a machine's SSH, IPMI or Grafana login, and `host_install_command` issues the command that installs the Meshive agent on a new compute or storage machine, valid for about 10 minutes. Both ask first, **both email the account owner every time**, and the secret appears only in the confirmed answer — it is never stored for replay. The agent is told to give it only to you, never to put it in a file, commit or another tool, and to run an install command only on the machine you named, as root, and only when you asked.

## Payouts

`billing_history` with `kind: "payouts"` lists your payouts and shows whether a payout account exists, whether it is fully set up, the amount waiting and the minimum payout. Setting up the payout account and opening the Stripe dashboard stay in the console under **Earnings**.

## Preview and replay rules

These tools return a preview first and change nothing until the agent calls again with `confirm`: `schedule_maintenance`, `maintenance_window`, `set_machine_listing` (only with `listed: false`), `set_fan_curve`, `delete_machine`, `send_host_message`, `machine_credentials` and `host_install_command`. These don't preview: `machines`, `machine_history`, `host_messages`, `mark_host_messages_read`, `retry_machine_setup` and `set_machine_listing` with `listed: true`.

The `operation_id` rules in [Write IDs and recovery](/sdk-cli/mcp/safety/#write-ids-and-recovery) apply to the hosting writes. Three calls are the exception: the port check retry, `machine_credentials` and `host_install_command` accept an `operation_id`, but the server keeps no record of them, so a repeated call runs again — and a repeated `machine_credentials` or `host_install_command` reveals or issues a new secret and emails the account owner again.
