list_nodes
Retrieve all nodes in a VergeOS cluster to monitor infrastructure, manage virtualization resources, and administer tenant operations.
Instructions
List all nodes in the VergeOS cluster
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:172-174 (handler)The core handler function in VergeOSAPI class that lists cluster nodes by making an authenticated API request to /api/v4/nodes?fields=most.async listNodes() { return this.request("/api/v4/nodes?fields=most"); }
- src/index.js:453-459 (registration)Tool registration entry in the TOOLS array, defining the tool name, description, and input schema (no parameters required). This list is returned by listTools handler.name: "list_nodes", description: "List all nodes in the VergeOS cluster", inputSchema: { type: "object", properties: {}, }, },
- src/index.js:587-589 (handler)Dispatch case in the main CallToolRequestSchema handler that calls the listNodes implementation when the tool is invoked.case "list_nodes": result = await api.listNodes(); break;
- src/mcp-http-server.js:482-482 (handler)Identical handler implementation in the HTTP+SSE server variant.async listNodes() { return this.request("/api/v4/nodes?fields=most"); }
- src/mcp-http-server.js:603-603 (registration)Compact tool registration in the HTTP server TOOLS array.{ name: "list_nodes", description: "List cluster nodes", inputSchema: { type: "object", properties: {} } },