|
| 1 | +project_name: mcp-k8s |
| 2 | + |
| 3 | +before: |
| 4 | + hooks: |
| 5 | + # You may remove this if you don't use go modules. |
| 6 | + - go mod tidy |
| 7 | + |
| 8 | +builds: |
| 9 | + - id: mcp-k8s |
| 10 | + main: ./cmd/server/main.go |
| 11 | + binary: mcp-k8s |
| 12 | + goos: |
| 13 | + - linux |
| 14 | + - windows |
| 15 | + - darwin |
| 16 | + goarch: |
| 17 | + - amd64 |
| 18 | + - arm64 |
| 19 | + # Exclude Windows ARM64 as it's not commonly needed |
| 20 | + ignore: |
| 21 | + - goos: windows |
| 22 | + goarch: arm64 |
| 23 | + env: |
| 24 | + - CGO_ENABLED=0 |
| 25 | + flags: |
| 26 | + - -trimpath |
| 27 | + ldflags: |
| 28 | + - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} |
| 29 | + |
| 30 | +archives: |
| 31 | + - format: tar.gz |
| 32 | + # Use zip for Windows archives |
| 33 | + format_overrides: |
| 34 | + - goos: windows |
| 35 | + format: zip |
| 36 | + name_template: >- |
| 37 | + {{ .ProjectName }}_ |
| 38 | + {{- title .Os }}_ |
| 39 | + {{- if eq .Arch "amd64" }}x86_64 |
| 40 | + {{- else if eq .Arch "386" }}i386 |
| 41 | + {{- else }}{{ .Arch }}{{ end }} |
| 42 | + {{- if .Arm }}v{{ .Arm }}{{ end }} |
| 43 | +
|
| 44 | +checksum: |
| 45 | + name_template: "checksums.txt" |
| 46 | + |
| 47 | +snapshot: |
| 48 | + name_template: "{{ incpatch .Version }}-next" |
| 49 | + |
| 50 | +changelog: |
| 51 | + sort: asc |
| 52 | + use: github |
| 53 | + filters: |
| 54 | + exclude: |
| 55 | + - "^docs:" |
| 56 | + - "^test:" |
| 57 | + - "^ci:" |
| 58 | + - "^build:" |
| 59 | + - "^chore:" |
| 60 | + - typo |
| 61 | + groups: |
| 62 | + - title: "New Features" |
| 63 | + regexp: "^.*feat[(\\w)]*:+.*$" |
| 64 | + order: 0 |
| 65 | + - title: "Bug Fixes" |
| 66 | + regexp: "^.*fix[(\\w)]*:+.*$" |
| 67 | + order: 1 |
| 68 | + - title: "Refactoring" |
| 69 | + regexp: "^.*refactor[(\\w)]*:+.*$" |
| 70 | + order: 2 |
| 71 | + - title: "Documentation" |
| 72 | + regexp: "^.*docs[(\\w)]*:+.*$" |
| 73 | + order: 3 |
| 74 | + - title: "Other" |
| 75 | + order: 999 |
| 76 | + |
| 77 | +release: |
| 78 | + # If set to auto, will mark the release as not ready for production |
| 79 | + # in case there is an indicator for this in the tag e.g. v1.0.0-rc1 |
| 80 | + # If set to true, will mark the release as not ready for production. |
| 81 | + prerelease: auto |
| 82 | + |
| 83 | + # What to do with the release notes in case there the release already exists. |
| 84 | + mode: replace |
| 85 | + |
| 86 | + # Header template for the release body. |
| 87 | + header: | |
| 88 | + ## MCP Kubernetes Server {{ .Tag }} |
| 89 | +
|
| 90 | + This release contains the MCP (Model Context Protocol) server for Kubernetes operations. |
| 91 | +
|
| 92 | + # Footer template for the release body. |
| 93 | + footer: | |
| 94 | + ## Installation |
| 95 | +
|
| 96 | + ### Download Binary |
| 97 | + Download the appropriate binary for your platform from the assets above. |
| 98 | +
|
| 99 | + ### macOS/Linux |
| 100 | + ```bash |
| 101 | + # Make executable |
| 102 | + chmod +x mcp-k8s |
| 103 | + # Move to PATH |
| 104 | + sudo mv mcp-k8s /usr/local/bin/ |
| 105 | + ``` |
| 106 | +
|
| 107 | + ### Windows |
| 108 | + Add the executable to your PATH or place it in a directory that's already in your PATH. |
| 109 | +
|
| 110 | + ## Requirements |
| 111 | +
|
| 112 | + A kubeconfig providing access to a kubernetes cluster (if you can kubectl you can use this MCP) |
| 113 | +
|
| 114 | + ## Usage |
| 115 | +
|
| 116 | + The MCP server is designed to be used with Claude and other MCP clients: |
| 117 | +
|
| 118 | + ```bash |
| 119 | + # Run the server (communicates via stdio) |
| 120 | + mcp-k8s |
| 121 | +
|
| 122 | + # Install with Claude Code |
| 123 | + claude mcp add k8s mcp-k8s |
| 124 | +
|
| 125 | + # Use inspector to browse (requires nodejs) |
| 126 | + npx @modelcontextprotocol/inspector mcp-k8s |
| 127 | + ``` |
| 128 | + --- |
| 129 | + **Full Changelog**: https://github.com/krmcbride/mcp-k8s/compare/{{ .PreviousTag }}...{{ .Tag }} |
| 130 | +
|
| 131 | + # Disable the release if true. |
| 132 | + disable: false |
| 133 | + |
0 commit comments