Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 1.36 KB

File metadata and controls

63 lines (41 loc) · 1.36 KB

Development

  • 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).

How to run everything locally

Running locally.

  1. Build the KMCP CLI.
make build-cli
  1. Create your mcp project.
dist/kmcp init python my-mcp-python
  1. Run project locally via the mcp inspector
dist/kmcp run --project-dir ./my-mcp-python/

Running in a kubernetes environment.

  1. Create a cluster.
kind create cluster --name kind
  1. Package the helm chart.
make helm-package VERSION=<version_number>
  1. Install the KMCP helm chart.
helm install kmcp dist/kmcp-<version_number>.tgz --namespace kmcp-system --create-namespace
  1. Build and load your mcp docker image into the kind cluster.
dist/kmcp build --project-dir my-mcp-python --kind-load
  1. Deploy your mcp server.
kmcp deploy --file my-mcp-python/kmcp.yaml

Your 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.