Skip to main content
Glama

KVM MCP Server

by steveydevey
test_server.py923 B
import json import subprocess import sys def send_request(method, params): request = { "jsonrpc": "2.0", "method": method, "params": params, "id": 1 } # Start the server process server = subprocess.Popen( ["python3", "kvm_mcp_server.py"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True ) # Send the request server.stdin.write(json.dumps(request) + "\n") server.stdin.flush() # Get the response response = server.stdout.readline() # Clean up server.terminate() server.wait() return json.loads(response) if __name__ == "__main__": # Test list_vms print("Testing list_vms...") response = send_request("tools/call", { "name": "handle_list_vms", "arguments": {} }) print(json.dumps(response, indent=2))

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/steveydevey/kvm-mcp'

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