### Install kMCP CLI Source: https://github.com/kagent-dev/kmcp/blob/main/README.md Installs the kMCP CLI on your local machine using a curl script. Verify the installation with `kmcp --help`. ```bash curl -fsSL https://raw.githubusercontent.com/kagent-dev/kmcp/refs/heads/main/scripts/get-kmcp.sh | bash ``` ```bash kmcp --help ``` -------------------------------- ### Install KMCP Helm Chart Source: https://github.com/kagent-dev/kmcp/blob/main/helm/kmcp/README.md Installs the KMCP Helm chart. Default installation, installation in a specific namespace, and installation with custom values are shown. ```bash helm install kmcp kmcp/kmcp ``` ```bash helm install kmcp kmcp/kmcp --namespace kmcp-system --create-namespace ``` ```bash helm install kmcp kmcp/kmcp --values values.yaml ``` -------------------------------- ### Verify kMCP CLI Installation Source: https://github.com/kagent-dev/kmcp/blob/main/pkg/cli/README.md After installation, run this command to confirm that the kMCP CLI is accessible and to view its available options. ```bash kmcp --help ``` -------------------------------- ### Install kMCP CLI Source: https://github.com/kagent-dev/kmcp/blob/main/pkg/cli/README.md Use this command to download and install the kMCP CLI script on your local machine. It fetches the latest version from the official repository. ```bash curl -fsSL https://raw.githubusercontent.com/kagent-dev/kmcp/refs/heads/main/scripts/get-kmcp.sh | bash ``` -------------------------------- ### Install KMCP Helm Chart Source: https://github.com/kagent-dev/kmcp/blob/main/DEVELOPMENT.md Install the KMCP Helm chart into a Kubernetes cluster. Ensure the namespace `kmcp-system` is created or available. ```shell helm install kmcp dist/kmcp-.tgz --namespace kmcp-system --create-namespace ``` -------------------------------- ### MCPServer Custom Resource Example Source: https://github.com/kagent-dev/kmcp/blob/main/helm/kmcp/README.md Example of an MCPServer custom resource definition used to create MCP servers within Kubernetes. ```yaml apiVersion: kagent.dev/v1alpha1 kind: MCPServer metadata: name: my-mcp-server spec: transportType: http deployment: image: my-mcp-server:latest port: 8080 httpTransport: targetPort: 8080 ``` -------------------------------- ### Add KMCP Helm Repository Source: https://github.com/kagent-dev/kmcp/blob/main/helm/kmcp/README.md Adds the KMCP Helm chart repository to your Helm configuration. Run this command once before installing the chart. ```bash helm repo add kmcp https://charts.kagent.dev helm repo update ``` -------------------------------- ### Conventional Commit Message Example Source: https://github.com/kagent-dev/kmcp/blob/main/CONTRIBUTING.md Example of a commit message following the Conventional Commits specification, including type, scope, description, and body. ```git feat(controller): add support for custom resource validation This adds validation for the MCPServer custom resource to ensure that the configuration is valid before applying it to the cluster. Closes #123 ``` -------------------------------- ### Upgrade KMCP Helm Chart Source: https://github.com/kagent-dev/kmcp/blob/main/helm/kmcp/README.md Upgrades an existing KMCP Helm chart installation to the latest version. ```bash helm upgrade kmcp kmcp/kmcp ``` -------------------------------- ### Initialize MCP Project Source: https://github.com/kagent-dev/kmcp/blob/main/DEVELOPMENT.md Create a new MCP project with the specified language. Ensure the KMCP CLI is built before running this command. ```shell dist/kmcp init python my-mcp-python ``` -------------------------------- ### Create Kubernetes Cluster Source: https://github.com/kagent-dev/kmcp/blob/main/DEVELOPMENT.md Set up a local Kubernetes cluster using kind. This is necessary for deploying KMCP in a Kubernetes environment. ```shell kind create cluster --name kind ``` -------------------------------- ### Build and Load Docker Image for Kind Source: https://github.com/kagent-dev/kmcp/blob/main/DEVELOPMENT.md Build your MCP project's Docker image and load it into the kind Kubernetes cluster. This prepares your application for deployment. ```bash dist/kmcp build --project-dir my-mcp-python --kind-load ``` -------------------------------- ### Run Built kMCP CLI Source: https://github.com/kagent-dev/kmcp/blob/main/pkg/cli/README.md Once the kMCP CLI is built locally, use this command to run the binary and view its help information. ```shell dist/kmcp --help ``` -------------------------------- ### Build kMCP CLI Locally Source: https://github.com/kagent-dev/kmcp/blob/main/pkg/cli/README.md Execute this command to build the kMCP CLI binary from the source code. The binary will be placed in the 'dist/kmcp' directory. ```shell make build-cli ``` -------------------------------- ### Run Go Linters and Tests Source: https://github.com/kagent-dev/kmcp/blob/main/CONTRIBUTING.md Execute `make lint` to check code formatting and `make test` to run all tests for Go code. ```bash make lint ``` ```bash make test ``` -------------------------------- ### Clone kmcp Repository Source: https://github.com/kagent-dev/kmcp/blob/main/CONTRIBUTING.md Clone your forked repository locally and navigate into the project directory. ```bash git clone https://github.com/YOUR-USERNAME/kmcp.git cd kmcp ``` -------------------------------- ### Deploy MCP Server Source: https://github.com/kagent-dev/kmcp/blob/main/DEVELOPMENT.md Deploy your MCP server using the specified configuration file. This command will also port-forward the server and spin up the MCP inspector. ```bash kmcp deploy --file my-mcp-python/kmcp.yaml ``` -------------------------------- ### Check Python Formatting and Linting Source: https://github.com/kagent-dev/kmcp/blob/main/CONTRIBUTING.md Use `uv run ruff check` for formatting and `uv run ruff format` for linting Python code. ```bash uv run ruff check ``` ```bash uv run ruff format ``` -------------------------------- ### Package KMCP Helm Chart Source: https://github.com/kagent-dev/kmcp/blob/main/DEVELOPMENT.md Package the KMCP Helm chart for deployment. Replace `` with your desired version. ```shell make helm-package VERSION= ``` -------------------------------- ### Add Upstream Remote Repository Source: https://github.com/kagent-dev/kmcp/blob/main/CONTRIBUTING.md Add the original kmcp repository as an upstream remote to fetch changes. ```bash git remote add upstream https://github.com/kagent-dev/kmcp.git ``` -------------------------------- ### Run MCP Project Locally Source: https://github.com/kagent-dev/kmcp/blob/main/DEVELOPMENT.md Execute your MCP project locally using the mcp inspector. This command requires the project directory to be specified. ```shell dist/kmcp run --project-dir ./my-mcp-python/ ``` -------------------------------- ### Create a New Feature Branch Source: https://github.com/kagent-dev/kmcp/blob/main/CONTRIBUTING.md Create a new branch for your feature or bug fix. ```bash git checkout -b feature/your-feature-name ``` -------------------------------- ### Run Python Tests Source: https://github.com/kagent-dev/kmcp/blob/main/CONTRIBUTING.md Execute the test suite for Python code using `uv run pytest`. ```bash uv run pytest ``` -------------------------------- ### Update Pull Request After Review Source: https://github.com/kagent-dev/kmcp/blob/main/CONTRIBUTING.md Stage all changes, commit them with a message indicating review comment resolution, and push to your fork. ```bash git add . git commit -m "address review comments" git push origin feature/your-feature-name ``` -------------------------------- ### Push Changes to Fork Source: https://github.com/kagent-dev/kmcp/blob/main/CONTRIBUTING.md Push your local branch with new changes to your fork on the remote repository. ```bash git push origin feature/your-feature-name ``` -------------------------------- ### Update Local Repository with Upstream Changes Source: https://github.com/kagent-dev/kmcp/blob/main/CONTRIBUTING.md Fetch the latest changes from the upstream repository and rebase your current branch onto them. ```bash git fetch upstream git rebase upstream/main ``` -------------------------------- ### Uninstall KMCP Helm Chart Source: https://github.com/kagent-dev/kmcp/blob/main/helm/kmcp/README.md Uninstalls the KMCP Helm chart and removes all associated Kubernetes resources. ```bash helm uninstall kmcp ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.