Skip to main content
Glama

ProxmoxMCP-Plus

by davidpius95
test_vm_start.py•1.27 kB
#!/usr/bin/env python3 """ Test VM startup functionality """ import os import sys def test_start_vm_101(): """Test starting VM 101 (VPN-Server)""" # Set configuration os.environ['PROXMOX_MCP_CONFIG'] = 'proxmox-config/config.json' try: from proxmox_mcp.config.loader import load_config from proxmox_mcp.core.proxmox import ProxmoxManager from proxmox_mcp.tools.vm import VMTools config = load_config('proxmox-config/config.json') manager = ProxmoxManager(config.proxmox, config.auth) api = manager.get_api() vm_tools = VMTools(api) print("šŸš€ Test starting VPN-Server (VM 101)") print("=" * 50) # Start VM 101 result = vm_tools.start_vm(node="pve", vmid="101") for content in result: print(content.text) return True except Exception as e: print(f"āŒ Start failed: {e}") return False if __name__ == "__main__": print("šŸ” Test VM startup functionality") print("=" * 50) success = test_start_vm_101() if success: print("\nāœ… Test completed") else: print("\nāŒ Test failed") sys.exit(1)

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/davidpius95/Guildserver-proxmox-mcpServer'

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