- cmd: Contains the code for KMCP CLI.
- pkg/transportadapter: Contains the code for the kubernetes controller.
- pkg/frameworks: Contains the generator code for the supported MCP frameworks (fastmcp-python, mcp-go).
Running locally.
- Build the KMCP CLI.
make build-cli- Create your mcp project.
dist/kmcp init python my-mcp-python- Run project locally via the mcp inspector
dist/kmcp run --project-dir ./my-mcp-python/Running in a kubernetes environment.
- Create a cluster.
kind create cluster --name kind- Package the helm chart.
make helm-package VERSION=<version_number>- Install the KMCP helm chart.
helm install kmcp dist/kmcp-<version_number>.tgz --namespace kmcp-system --create-namespace- Build and load your mcp docker image into the kind cluster.
dist/kmcp build --project-dir my-mcp-python --kind-load- Deploy your mcp server.
kmcp deploy --file my-mcp-python/kmcp.yamlYour MCP server will be automatically port-forwarded on port 3000 and the MCP inspector will be spun up so you can access it on http://localhost:6274.