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

NameTypeDescription
microvm_id requiredstringThe unique ID of the MicroVM.
argv requiredarrayThe command and its arguments.
cwdstringThe 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:

call_tool arguments
{
  "name": "digitalocean_api__microvms_run_command",
  "arguments": {
    "microvm_id": "…",
    "argv": []
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
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 ….

More from DigitalOcean API