Skip to main content
Glama
dvvincent

VergeOS MCP Server

by dvvincent

reset_vm

Restart a virtual machine in VergeOS by specifying its ID to resolve issues or apply configuration changes.

Instructions

Reset/reboot a virtual machine

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesVM ID to reset

Implementation Reference

  • The core handler function for the 'reset_vm' tool. It invokes the generic vmAction method with the 'reset' action to perform the VM reset via the VergeOS API.
    async resetVM(id) {
      return this.vmAction(id, "reset");
    }
  • Supporting helper function that performs generic VM actions by sending a POST request to the VergeOS /api/v4/vm_actions endpoint.
    async vmAction(id, action) {
      return this.request("/api/v4/vm_actions", {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({ vm: id, action }),
      });
    }
  • Tool schema definition including name, description, and input schema requiring a numeric VM 'id'.
    {
      name: "reset_vm",
      description: "Reset/reboot a virtual machine",
      inputSchema: {
        type: "object",
        properties: {
          id: {
            type: "number",
            description: "VM ID to reset",
          },
        },
        required: ["id"],
      },
    },
  • src/index.js:554-556 (registration)
    Registration and dispatch logic in the MCP tool call handler switch statement, routing 'reset_vm' calls to the resetVM handler.
    case "reset_vm":
      result = await api.resetVM(args.id);
      break;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dvvincent/vergeos-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server