Home / Servers / DigitalOcean API / microvms_run_command
Run a command in a MicroVM
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Run a command in a MicroVM To run a command in a MicroVM's workload container, send a POST request to /v2/microvms/{microvm_id}/exec. argv runs directly, not through a shell, with standard input closed. If the MicroVM is… [POST /v2/microvms/{microvm_id}/exec]
Name on the gateway: digitalocean_api__microvms_run_command · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
microvm_id required | string | The unique ID of the MicroVM. |
argv required | array | The command and its arguments. |
cwd | string | The working directory to run the command in. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "digitalocean_api__microvms_run_command",
"arguments": {
"microvm_id": "…",
"argv": []
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the run a command in a microvm tool with microvm_id set to ….