Files
patchy631--ai-engineering-hub/kitops-mcp/README.md
T
2026-07-13 12:37:47 +08:00

88 lines
3.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# KitOps MCP Server
We are going to implement an MCP server to orchestrate KitOps for managing and distributing machine learning models. Agents will be able to connect to discover tools for creating, inspecting, pushing, pulling, and removing ModelKits from remote registries like Jozu Hub.
What Makes ModelKits Different?
While Docker containers package applications, ModelKits are purpose-built for AI/ML workflows. They solve the unique challenges AI engineers face when moving projects between environments.
Key Advantages Over Traditional Docker:
- Selectively unpack kits — skip pulling what you dont need
- Doubles as your private model registry
- One-command deployment
We use:
- [KitOps](https://kitops.org/) for versioning, packaging, and distributing ML models
- [Jozu Hub](https://jozu.ml/) as a remote registry for storing and sharing ModelKits
- Cursor (MCP Host)
## Set Up
Follow these steps one by one:
### Install Kit CLI
Here is the documentation for downloading and installing the Kit CLI: [Kit CLI Installation](https://kitops.org/docs/cli/installation/) for your operating system.
After installing the Kit CLI, you can verify the installation by running:
```bash
kit version
```
### Create .env File
Create a `.env` file in the root directory of your project with the following content:
```env
JOZU_USERNAME=<your_jozu_hub_email>
JOZU_PASSWORD=<your_jozu_hub_account_password>
JOZU_NAMESPACE=<name_of_repository_in_jozu_hub>
```
All the values are associated with your Jozu Hub account. If you don't have a Jozu account, you can create one at [Jozu Hub](https://jozu.ml/).
For our demo, we used this Jozu Hub ModelKit: [wine-class-prediction](https://jozu.ml/repository/sitammeur/wine-class-prediction/latest). You can also use this ModelKit for your experiments.
### Install Dependencies
```bash
uv sync
```
## Use MCP Server
Run the MCP server with the created configuration file as `mcp.json` either globally or in the current project directory. Here's the code of configuring MCP globally to run the server:
```json
{
"mcpServers": {
"kitops_mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/akshay/Eigen/ai-engineering-hub/kitops-mcp",
"run",
"--with",
"mcp",
"server.py"
]
}
}
}
```
Refer to the `prompt.txt` file for some of the prompts you can use to interact with the MCP server through the MCP host - Cursor in our case.
## 📬 Stay Updated with Our Newsletter!
**Get a FREE Data Science eBook** 📖 with 150+ essential lessons in Data Science when you subscribe to our newsletter! Stay in the loop with the latest tutorials, insights, and exclusive resources. [Subscribe now!](https://join.dailydoseofds.com)
[![Daily Dose of Data Science Newsletter](https://github.com/patchy631/ai-engineering/blob/main/resources/join_ddods.png)](https://join.dailydoseofds.com)
## Contribution
Contributions are welcome! Feel free to fork this repository and submit pull requests with your improvements.