Provides a list of Kubernetes deployment and pod management tool definitions for use in an MCP framework.
// Source: https://github.com/VersusControl/devops-ai-guidelines | License: MIT | Copyright 2025 VersusControl
// Provided via justclaw.it.com; keep this notice with the code.
package tools
import "github.com/mark3labs/mcp-go/mcp"
func GetToolDefinitions() []mcp.Tool {
return []mcp.Tool{
{
Name: "k8s_scale_deployment",
Description: "Scale a Kubernetes deployment to the specified number of replicas",
InputSchema: mcp.ToolInputSchema{
Type: "object",
Properties: map[string]interface{}{
"namespace": map[string]interface{}{
"type": "string",
"description": "Kubernetes namespace containing the deployment",
"pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
},
"name": map[string]interface{}{
"type": "string",
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key