Skip to main content
Glama

mcp-nutanix

vm.go780 B
package resources import ( "context" "github.com/thunderboltsid/mcp-nutanix/internal/client" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" ) // VM defines the VM resource template func VM() mcp.ResourceTemplate { return mcp.NewResourceTemplate( string(ResourceURIPrefix(ResourceTypeVM))+"{uuid}", string(ResourceTypeVM), mcp.WithTemplateDescription("Virtual Machine resource"), mcp.WithTemplateMIMEType("application/json"), ) } // VMHandler implements the handler for the VM resource func VMHandler() server.ResourceTemplateHandlerFunc { return CreateResourceHandler(ResourceTypeVM, func(ctx context.Context, client *client.NutanixClient, uuid string) (interface{}, error) { // Get the VM return client.V3().GetVM(ctx, uuid) }) }

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/thunderboltsid/mcp-nutanix'

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