Skip to content

Commit 3161e8b

Browse files
sam-heilbronpeterj
andauthored
README.md: Iterate on UX, pkg/cli: add colors, improve help text (#97)
# Description Propose a change to the landing page of the project to make it more user friendly # Context ## README Changes are fairly self-explanatory. I'm certainly open to feedback on the structure or syntax. The goal was to approach this with a more "show -over- tell". So instead of telling people what the value is of the project, show how they can access it. For the most part, this content existed before. ## devel/ folder There was some really useful content in the top level README, but I felt that it kind of diluted the message in that readme. My proposal here is to take the content and move it to a dedicated area, and link to it from the README ## CLI The CLI now has some color, and an improved help text. For posterity, I used https://carbon.now.sh to generate the image in the README representing the CLI --------- Signed-off-by: Sam Heilbron <samheilbron@gmail.com> Signed-off-by: Sam Heilbron <SamHeilbron@gmail.com> Co-authored-by: Peter Jausovec <peterj@users.noreply.github.com>
1 parent 088992b commit 3161e8b

18 files changed

Lines changed: 297 additions & 209 deletions

File tree

.githooks/prepare-commit-msg

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
# This script automatically adds a Signed-off-by trailer to each commit message, so that your commits
4+
# will adhere to the DCO (Developer Certificate of Origin) requirements.
5+
# To use, run `make init-git-hooks` or copy this file to .git/hooks/prepare-commit-msg in your copy of the repo.
6+
7+
NAME=$(git config user.name)
8+
EMAIL=$(git config user.email)
9+
10+
if [ -z "$NAME" ]; then
11+
echo "empty git config user.name"
12+
exit 1
13+
fi
14+
15+
if [ -z "$EMAIL" ]; then
16+
echo "empty git config user.email"
17+
exit 1
18+
fi
19+
20+
git interpret-trailers --if-exists doNothing --trailer \
21+
"Signed-off-by: $NAME <$EMAIL>" \
22+
--in-place "$1"

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ all: build
7070
help: ## Display this help.
7171
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
7272

73+
##@ Git
74+
75+
.PHONY: init-git-hooks
76+
init-git-hooks: ## Use the tracked version of Git hooks from this repo
77+
git config core.hooksPath .githooks
78+
7379
##@ Development
7480

7581
.PHONY: manifests

README.md

Lines changed: 80 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- markdownlint-disable MD033 -->
12
<div align="center">
23
<picture>
34
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/kagent-dev/kmcp/main/img/kmcp-logo-dark.svg" alt="kmcp" width="400">
@@ -22,217 +23,134 @@
2223
</a>
2324
</div>
2425
<h3>A development platform and control plane for the Model Context Protocol (MCP)</h3>
25-
<p>Build, deploy, and manage MCP servers with a seamless workflow from development to production</p>
26+
<p><i>MCP connectivity simplified, bring MCP service prototypes into production</i></p>
2627
</div>
28+
<!-- markdownlint-enable MD033 -->
2729

2830
---
31+
<!-- markdownlint-disable MD033 -->
32+
<table align="center">
33+
<tr>
34+
<td>
35+
<a href="#getting-started"><b><i>Getting Started</i></b></a>
36+
</td>
37+
<td>
38+
<a href="#from-prototype-to-production"><b><i>Prototype to Production</i><b></a>
39+
</td>
40+
<td>
41+
<a href="#technical-details"><b><i>Technical Details</i></b></a>
42+
</td>
43+
<td>
44+
<a href="#get-involved"><b><i>Get Involved</i></b></a>
45+
</td>
46+
<td>
47+
<a href="#reference"><b><i>Reference</i></b></a>
48+
</td>
49+
</tr>
50+
</table>
51+
<!-- markdownlint-disable MD033 -->
2952

30-
## Overview
31-
32-
`kmcp` is a comprehensive toolkit for building, deploying, and managing Model Context Protocol (MCP) servers. It provides a command-line interface (CLI) for local development and a Kubernetes controller for production deployments, enabling a seamless transition from development to production.
53+
---
3354

34-
Whether you're building AI agent tools, deploying production MCP infrastructure, or managing multiple MCP servers at scale, `kmcp` streamlines the entire lifecycle with familiar tooling and cloud-native deployment patterns.
55+
## Why kMCP?
3556

36-
<img src="img/kmcp.png" alt="kmcp architecture" width="800">
57+
Prototyping MPC services in isolation is quick and fun, but but production adoption introduces many challenges:
3758

38-
## Why kmcp?
59+
- **Ad-hoc scaffolding** - Configuring the MCP server, integrating it in Kubernetes, and operating it at Enterprise scale
60+
- **Transport fragmentation** – Supporting multiple protocols (HTTP, WebSocket, SSE, etc.) requires custom maintenance.
61+
- **Disconnected context** - Enforcing consistent security, observability, and governance for agent-to-tool communication
3962

40-
Building and deploying MCP servers today involves several challenges:
63+
**_We believe teams who have build MCP services should not experience friction when bringing those services to production. kMCP is designed to make MCP connectivity simple._**
4164

42-
- **Manual scaffolding**: Setting up project structure, dependencies, and boilerplate code for each new MCP server
43-
- **Inconsistent deployment**: No standardized way to deploy MCP servers to production environments
44-
- **Transport complexity**: Handling different transport protocols (HTTP, WebSocket, SSE) requires custom implementation
45-
- **Kubernetes integration**: Manually creating deployments, services, and configurations for each MCP server
46-
- **Dev-prod parity**: Different setups for local development versus production deployment
65+
## Getting Started
4766

48-
`kmcp` solves these problems by providing:
49-
50-
-**Rapid scaffolding** with support for FastMCP (Python) and MCP Go SDK
51-
- 🚀 **One-command deployment** to Kubernetes with pre-configured Transport Adapters
52-
- 🔄 **Consistent workflow** from local development to production
53-
- 🌐 **Built-in transport support** for HTTP, WebSocket, and Server-Sent Events
54-
- ☸️ **Kubernetes-native** using Custom Resource Definitions (CRDs)
55-
- 🔐 **Secrets management** integrated with Kubernetes secrets
56-
57-
## Quick Start
58-
59-
Get started with `kmcp` in under a minute:
67+
Install the kmcp CLI on your local machine.
6068

6169
```bash
62-
# Install kmcp CLI
6370
curl -fsSL https://raw.githubusercontent.com/kagent-dev/kmcp/refs/heads/main/scripts/get-kmcp.sh | bash
64-
65-
# Create a new MCP server
66-
kmcp init python my-weather-server
67-
68-
# Navigate to your project
69-
cd my-weather-server
70-
71-
# Add a tool
72-
kmcp add-tool get_weather --description "Get current weather for a location"
73-
74-
# Run locally for testing
75-
kmcp run
76-
77-
# Build and deploy to Kubernetes (requires cluster access)
78-
kmcp build
79-
kmcp install # Install controller (one-time setup)
80-
kmcp deploy
8171
```
8272

83-
Your MCP server is now running locally! Edit the generated tool in `src/tools/get_weather.py` to implement your logic.
84-
85-
## Core Concepts
86-
87-
`kmcp` is composed of three primary components that work together to provide a complete MCP server-management solution:
88-
89-
### 1. The `kmcp` CLI
90-
91-
The CLI is your primary tool for local development. It allows you to scaffold new MCP projects, manage tools, build container images, and run your MCP server locally for testing and development.
92-
93-
### 2. The Kubernetes Controller
94-
95-
The `kmcp` controller runs in your Kubernetes cluster and manages the lifecycle of your MCP server deployments. It uses a Custom Resource Definition (CRD) to define MCP servers as native Kubernetes objects, allowing you to manage them with familiar `kubectl` commands.
96-
97-
### 3. The Transport Adapter
98-
99-
In a Kubernetes environment, `kmcp` deploys your MCP server behind a dedicated Transport Adapter. `kmcp` acts as a control plane for this adapter, configuring it to provide features such as external traffic routing for your MCP server with support for multiple transport protocols without requiring any changes to your code.
73+
Verify that the kmcp CLI is installed.
10074

101-
## Features
102-
103-
The `kmcp` CLI provides a set of commands to manage the entire lifecycle of your MCP server:
104-
105-
| Command | Description |
106-
|---------|-------------|
107-
| `kmcp init` | Scaffolds a new MCP server project with FastMCP (Python) or MCP Go SDK |
108-
| `kmcp add-tool` | Adds a new tool to your project with automatic boilerplate and registration |
109-
| `kmcp run` | Runs the MCP server locally for development and testing |
110-
| `kmcp build` | Builds a Docker image for your MCP server |
111-
| `kmcp install` | Installs the `kmcp` controller and CRDs on a Kubernetes cluster (one-time setup) |
112-
| `kmcp deploy` | Deploys your MCP server to Kubernetes behind a pre-configured Transport Adapter |
113-
| `kmcp secrets` | Manages secrets for your MCP server deployment in Kubernetes |
114-
115-
116-
## Architecture
117-
118-
The following diagram illustrates the `kmcp` workflow, from local development to a production deployment in Kubernetes:
119-
120-
```mermaid
121-
graph TD
122-
subgraph Local Development
123-
A[Developer] -- kmcp init --> B(MCP Project);
124-
B -- kmcp add-tool --> B;
125-
B -- kmcp run --> C{Local MCP Server};
126-
A -- Edits Code --> B;
127-
end
128-
129-
subgraph Production Deployment
130-
B -- kmcp build --> D[Docker Image];
131-
D -- kmcp deploy --> E(Kubernetes Cluster);
132-
end
75+
```bash
76+
kmcp --help
77+
```
13378

134-
subgraph Kubernetes Cluster
135-
F[kmcp Controller] -- Manages --> G(MCP Server CRD);
136-
G -- Deploys --> H[Transport Adapter];
137-
H -- Proxies Traffic --> I[MCP Server Pod];
138-
end
79+
<img src="img/cli-help-nov-25.png" alt="kmcp cli help text" width="800">
13980

140-
A -- Interacts with --> C;
141-
E -- Contains --> F;
142-
E -- Contains --> G;
143-
E -- Contains --> H;
144-
E -- Contains --> I;
145-
```
81+
_You're ready to go! Continue on to [From Prototype to Production](#from-prototype-to-production) or explore our docs at [kagent.dev/docs/kmcp](https://kagent.dev/docs/kmcp)_
14682

147-
### How It Works
83+
## From Prototype to Production
14884

149-
1. **Local Development**: Developers use `kmcp init` to scaffold a new project and `kmcp add-tool` to add tools. The server runs locally with `kmcp run` for rapid iteration.
85+
<img src="img/kmcp.png" alt="kmcp architecture" width="800">
15086

151-
2. **Build Phase**: `kmcp build` packages your MCP server into a Docker image, handling all dependencies and configuration automatically.
87+
MCP connectivity affects everyone in an organization. Below are some common quickstart journeys that you may experience:
15288

153-
3. **Deployment**: `kmcp deploy` creates a Kubernetes custom resource that the controller watches. The controller then:
154-
- Deploys your MCP server as a pod
155-
- Configures and deploys a Transport Adapter as a sidecar or separate service
156-
- Sets up networking and ingress rules
157-
- Manages secrets and environment variables
89+
- [Your first MCP service prototype](https://kagent.dev/docs/kmcp/develop)
90+
- [AI/ML Engineer packaging an existing prototype](https://kagent.dev/docs/kmcp/deploy/server#option-1-deploy-an-mcp-server-with-npx-or-uvx)
91+
- [DevOps engineer building MCP infrastructure in Kubernetes](https://kagent.dev/docs/kmcp/deploy/server#option-2-build-and-deploy-an-mcp-server)
15892

159-
4. **Production Runtime**: The Transport Adapter receives external requests, handles protocol translation, and routes them to your MCP server. The controller continuously monitors and manages the deployment.
93+
## Technical Details
16094

161-
## Use Cases
95+
`kmcp` is a comprehensive toolkit for building, deploying, and managing Model Context Protocol (MCP) servers. For a more detailed breakdown of using kmcp in your workflow, check out our [achitecture overview](/devel/architecture/workflow.md).
16296

163-
`kmcp` is designed for:
97+
### Core Components
16498

165-
- **AI/ML Engineers**: Building custom tools and integrations for AI agents with rapid iteration and testing
166-
- **Platform Teams**: Managing multiple MCP servers across development, staging, and production environments
167-
- **DevOps Engineers**: Deploying and scaling MCP infrastructure using familiar Kubernetes patterns
168-
- **Enterprise Organizations**: Standardizing MCP server development and deployment across teams
169-
- **Startups**: Quickly prototyping and deploying AI-powered features without infrastructure overhead
99+
- **[CLI](/pkg/cli/README.md)** is your primary tool for development. It allows you to scaffold new MCP projects, manage tools, build container images, and run your MCP server locally for testing and development.
100+
- **Controller**: Manages the lifecycle of your MCP server deployments in your Kubernetes cluster. It uses a Custom Resource Definition (CRD) to define MCP servers as native Kubernetes objects, allowing you to manage them with familiar `kubectl` commands.
101+
- **Transport Adapater** - Fronts the MCP server and provides features such as external traffic routing for your MCP server with support for multiple transport protocols without requiring any changes to your code.
170102

171-
## Documentation
103+
### Core Principles
172104

173-
The kmcp documentation is available at [kagent.dev/docs/kmcp](https://kagent.dev/docs/kmcp).
105+
-**Rapid scaffolding** with support for FastMCP (Python) and MCP Go SDK
106+
- 🚀 **One-command deployment** to Kubernetes with pre-configured Transport Adapters
107+
- 🔄 **Consistent workflow** from local development to production
108+
- 🌐 **Built-in transport support** for HTTP, WebSocket, and Server-Sent Events
109+
- ☸️ **Kubernetes-native** using Custom Resource Definitions (CRDs)
110+
- 🔐 **Secrets management** integrated with Kubernetes secrets
174111

175-
## 🤝 Contributing
112+
## Get Involved
176113

177-
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
114+
_We welcome contributions! Contributors are expected to [respect the kagent Code of Conduct](https://github.com/kagent-dev/community/blob/main/CODE-OF-CONDUCT.md)_
178115

179-
### Ways to Contribute
116+
There are many ways to get involved:
180117

181-
- 🐛 Report bugs and issues
182-
- 💡 Suggest new features
183-
- 📖 Improve documentation
184-
- 🔧 Submit pull requests
118+
- 🐛 [Report bugs and issues](https://github.com/kagent-dev/kmcp/issues/)
119+
- 💡 [Suggest new features](https://github.com/kagent-dev/kmcp/issues/)
120+
- 📖 [Improve documentation](https://github.com/kagent-dev/website/)
121+
- 🔧 [Submit pull requests](/CONTRIBUTING.md)
185122
- ⭐ Star the repository
186-
- 💬 Help others in Discord
123+
- 💬 [Help others in Discord](https://discord.gg/Fu3k65f2k3)
124+
- 💬 [Join the kagent community meetings](https://calendar.google.com/calendar/u/0?cid=Y183OTI0OTdhNGU1N2NiNzVhNzE0Mjg0NWFkMzVkNTVmMTkxYTAwOWVhN2ZiN2E3ZTc5NDA5Yjk5NGJhOTRhMmVhQGdyb3VwLmNhbGVuZGFyLmdvb2dsZS5jb20)
125+
- 🤝 [Share tips in the CNCF #kagent slack channel](https://cloud-native.slack.com/archives/C08ETST0076)
126+
- 🔒 [Report security concerns](SECURITY.md)
187127

188128
Thanks to all contributors!
189129

190130
<a href="https://github.com/kagent-dev/kmcp/graphs/contributors">
191-
<img src="https://contrib.rocks/image?repo=kagent-dev/kmcp" />
192-
</a>
193-
194-
## 📈 Star History
195-
196-
<a href="https://www.star-history.com/#kagent-dev/kmcp&Date">
197-
<picture>
198-
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=kagent-dev/kmcp&type=Date&theme=dark" />
199-
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=kagent-dev/kmcp&type=Date" />
200-
<img alt="Star history of kagent-dev/kmcp over time" src="https://api.star-history.com/svg?repos=kagent-dev/kmcp&type=Date" />
201-
</picture>
131+
<img alt="kmcp contributors" src="https://contrib.rocks/image?repo=kagent-dev/kmcp" />
202132
</a>
203133

204-
## 📄 License
205-
206-
Copyright 2025.
207-
208-
Licensed under the Apache License, Version 2.0 (the "License");
209-
you may not use this file except in compliance with the License.
210-
You may obtain a copy of the License at
134+
## Reference
211135

212-
http://www.apache.org/licenses/LICENSE-2.0
136+
### Resources
213137

214-
Unless required by applicable law or agreed to in writing, software
215-
distributed under the License is distributed on an "AS IS" BASIS,
216-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
217-
See the License for the specific language governing permissions and
218-
limitations under the License.
138+
- [kMCP documentation](https://kagent.dev/docs/kmcp)
219139

220-
## 🔗 Resources
140+
### Ecosystem Resources
221141

222142
- [Model Context Protocol Specification](https://spec.modelcontextprotocol.io/)
223143
- [MCP Documentation](https://modelcontextprotocol.io/)
224144
- [Anthropic's MCP Announcement](https://www.anthropic.com/news/model-context-protocol)
225145
- [FastMCP Python Documentation](https://github.com/jlowin/fastmcp)
226146
- [MCP Go SDK](https://github.com/mark3labs/mcp-go)
227147

228-
---
148+
### License
149+
150+
This project is licensed under the [Apache 2.0 License.](/LICENSE)
151+
152+
---
229153

230154
<div align="center">
231-
<p>Built with ❤️ by the kagent team</p>
232-
<p>
233-
<a href="https://kagent.dev">Website</a> •
234-
<a href="https://kagent.dev/docs/kmcp">Documentation</a> •
235-
<a href="https://discord.gg/Fu3k65f2k3">Discord</a> •
236-
<a href="https://github.com/kagent-dev/kmcp">GitHub</a>
237-
</p>
155+
<p>Built with ❤️ by the <a href="https://github.com/kagent-dev">kagent team</a> </p>
238156
</div>

SECURITY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Security Policy
2+
3+
The kmcp project and broader kagent community takes security seriously! We appreciate your efforts to disclose your findings responsibly and will make every effort to acknowledge your contributions.
4+
5+
Please refer to the [Kagent Community Security Policy](https://github.com/kagent-dev/community/blob/main/SECURITY.md) for instructions around how security vulnerabilities are reported to the project, evaluated by the team, and eventually disclosed to the public.

devel/architecture/workflow.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# kMCP Workflow
2+
3+
The following diagram illustrates the `kmcp` workflow, from local development to a production deployment in Kubernetes:
4+
5+
```mermaid
6+
graph TD
7+
subgraph Local Development
8+
A[Developer] -- kmcp init --> B(MCP Project);
9+
B -- kmcp add-tool --> B;
10+
B -- kmcp run --> C{Local MCP Server};
11+
A -- Edits Code --> B;
12+
end
13+
14+
subgraph Production Deployment
15+
B -- kmcp build --> D[Docker Image];
16+
D -- kmcp deploy --> E(Kubernetes Cluster);
17+
end
18+
19+
subgraph Kubernetes Cluster
20+
F[kmcp Controller] -- Manages --> G(MCP Server CRD);
21+
G -- Deploys --> H[Transport Adapter];
22+
H -- Proxies Traffic --> I[MCP Server Pod];
23+
end
24+
25+
A -- Interacts with --> C;
26+
E -- Contains --> F;
27+
E -- Contains --> G;
28+
E -- Contains --> H;
29+
E -- Contains --> I;
30+
```
31+
32+
## How It Works
33+
34+
1. **Local Development**: Developers use `kmcp init` to scaffold a new project and `kmcp add-tool` to add tools. The server runs locally with `kmcp run` for rapid iteration.
35+
36+
2. **Build Phase**: `kmcp build` packages your MCP server into a Docker image, handling all dependencies and configuration automatically.
37+
38+
3. **Deployment**: `kmcp deploy` creates a Kubernetes custom resource that the controller watches. The controller then:
39+
- Deploys your MCP server as a pod
40+
- Configures and deploys a Transport Adapter as a sidecar or separate service
41+
- Sets up networking and ingress rules
42+
- Manages secrets and environment variables
43+
44+
4. **Production Runtime**: The Transport Adapter receives external requests, handles protocol translation, and routes them to your MCP server. The controller continuously monitors and manages the deployment.

0 commit comments

Comments
 (0)