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
package resources
import (
"context"
"github.com/thunderboltsid/mcp-nutanix/internal/client"
"github.com/mark3labs/mcp-go/mcp"
"github.com/mark3labs/mcp-go/server"
)
// User defines the User resource template
func User() mcp.ResourceTemplate {
return mcp.NewResourceTemplate(
string(ResourceURIPrefix(ResourceTypeUser))+"{uuid}",
string(ResourceTypeUser),
mcp.WithTemplateDescription("User resource"),
mcp.WithTemplateMIMEType("application/json"),
)
}
// UserHandler implements the handler for the User resource
func UserHandler() server.ResourceTemplateHandlerFunc {
return CreateResourceHandler(ResourceTypeUser, func(ctx context.Context, client *client.NutanixClient, uuid string) (interface{}, error) {
// Get the User
return client.V3().GetUser(ctx, uuid)
})
}