Skip to main content
Glama

MCP-K8sWizard

Makefileβ€’3.13 kB
# MCP-K8sWizard - The Kubernetes Wizard for Modern DevOps # Makefile for building and running the application .PHONY: help build install deps fmt lint vet clean # Variables BINARY_NAME=mcp-k8swizard VERSION=1.0.0 BUILD_TIME=$(shell date +%Y-%m-%dT%H:%M:%S) GIT_COMMIT=$(shell git rev-parse --short HEAD) LDFLAGS=-ldflags "-X main.version=$(VERSION) -X main.buildTime=$(BUILD_TIME) -X main.gitCommit=$(GIT_COMMIT)" # Default target help: ## Show this help message @echo "MCP-K8sWizard - The Kubernetes Wizard for Modern DevOps" @echo "Available targets:" @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}' # Build targets build: deps ## Build the application @echo "Building $(BINARY_NAME)..." @go build $(LDFLAGS) -o $(BINARY_NAME) . @chmod +x $(BINARY_NAME) @echo "Build complete: $(BINARY_NAME)" build-linux: deps ## Build for Linux @echo "Building $(BINARY_NAME) for Linux..." @GOOS=linux GOARCH=amd64 go build $(LDFLAGS) -o $(BINARY_NAME)-linux . @chmod +x $(BINARY_NAME)-linux @echo "Build complete: $(BINARY_NAME)-linux" build-all: build build-linux ## Build for all platforms # Install targets install: build ## Install the binary to system PATH (requires sudo) @echo "Installing $(BINARY_NAME) to system PATH..." @if [ -w "/usr/local/bin" ]; then \ cp $(BINARY_NAME) /usr/local/bin/; \ echo "Installed to /usr/local/bin/$(BINARY_NAME)"; \ elif [ -w "/bin" ]; then \ cp $(BINARY_NAME) /bin/; \ echo "Installed to /bin/$(BINARY_NAME)"; \ else \ echo "Attempting to install with sudo..."; \ sudo cp $(BINARY_NAME) /usr/local/bin/; \ echo "Installed to /usr/local/bin/$(BINARY_NAME)"; \ fi @echo "Installation complete!" install-user: build ## Install the binary to user PATH (no sudo required) @echo "Installing $(BINARY_NAME) to user PATH..." @mkdir -p ~/bin @cp $(BINARY_NAME) ~/bin/ @echo "Installed to ~/bin/$(BINARY_NAME)" @echo "Make sure ~/bin is in your PATH:" @echo 'export PATH="$$HOME/bin:$$PATH"' @echo "Installation complete!" install-go: ## Install using go install (no sudo required) @echo "Installing $(BINARY_NAME) using go install..." @go install $(LDFLAGS) . @echo "Installed to $(GOPATH)/bin/$(BINARY_NAME)" # Development targets deps: ## Download dependencies @echo "Downloading dependencies..." @go mod download @go mod tidy fmt: ## Format code @echo "Formatting code..." @go fmt ./... lint: ## Run linter @echo "Running linter..." @golangci-lint run vet: ## Run go vet @echo "Running go vet..." @go vet ./... # Clean targets clean: ## Clean build artifacts @echo "Cleaning build artifacts..." @rm -f $(BINARY_NAME) @rm -f $(BINARY_NAME)-linux @go clean # Quick start quickstart: install ## Quick start setup @echo "Quick start setup complete!" @echo "1. Configure your kubeconfig" @echo "2. Add to Cursor AI settings (~/.cursor/mcp.json):" @echo ' {"mcpServers": {"kubernetes": {"command": "mcp-k8swizard"}}}' @echo "3. Restart Cursor AI" @echo "4. Start using natural language queries in Cursor AI!" # Default target .DEFAULT_GOAL := help

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/heniv96/MCP-K8sWizard'

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