esxi_add_host
Register an ESXi or vCenter host and validate its connection before saving credentials, enabling the MCP server to manage its virtual machines.
Instructions
Register an ESXi/vCenter host. Validates connectivity with govc about unless test=false. Password can be given directly (stored in config file, 0600 best-effort) or via password_env (recommended).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"alias": "<alias>",
"host": "<host>",
"user": "<user>"
},
"name": "esxi_add_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | IP or hostname (https assumed) | |
| note | No | ||
| test | No | Test connection before saving, default true | |
| user | Yes | ||
| alias | Yes | ||
| insecure | No | Skip TLS verification, default true for self-signed ESXi | |
| password | No | ||
| datacenter | No | Optional datacenter name (vCenter only) | |
| password_env | No |