Skip to main content
Glama
tool.go944 B
package deploy import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" ) func GetTool(toolRefresher func()) server.ServerTool { return server.ServerTool{ Tool: lifecycleTool(), Handler: lifecycleHandler(toolRefresher), } } func lifecycleTool() mcp.Tool { return mcp.NewTool( toolName, mcp.WithDescription("Manage the deployment of Inspektor Gadget on target system"), mcp.WithReadOnlyHintAnnotation(false), mcp.WithString("action", mcp.Description("Lifecycle action to perform: "+ actionDeployIG+"(deploy Inspektor Gadget), "+ actionUndeployIG+"(undeploy Inspektor Gadget), "+ actionUpgradeIG+"(upgrade Inspektor Gadget), "+ actionIsDeployed+"(check if Inspektor Gadget is deployed)"), mcp.Enum(actions...), ), mcp.WithString("chart_version", mcp.Description("Version of the Inspektor Gadget Helm chart to deploy, only set if user explicitly specifies a version")), ) }

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/inspektor-gadget/ig-mcp-server'

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