Kopilot-MCP-test
0
Kopilot MCP is a project that creates an AI Kubernetes agent using the Model Context Protocol (MCP) to interact with Kubernetes resources through natural language commands. It allows customization of large language models to perform operations resembling kubectl commands and facilitates standardized tool integration using MCP.
Kopilot MCP
A MCP remake of a previous project.
Key Features
- Create an AI Kubernetes agent using MCP.
- Interact with Kubernetes resources using natural language.
- Customize LLM provider to perform "kubectl-like" commands.
- Learn how to use MCP to standardize tool calling.
Tech Stack
- Dynaconf
- Kubernetes
- LangChain
- Loguru
- OpenAI
Getting Started
Prerequisites
- Python 3.12+
- uv
- API key from LLM provider
- Kubernetes cluster
Setup
- Clone this repository.
- Configure and rename
example.toml
. - Install dependencies.
Run
- Run the MCP client.
- Interact using natural language.
Project Structure
kopilot-mcp/
README.md
config/
mcp_client.py
mcp_server.py
mcp_server_factory.py
pyproject.toml
scheme/
utils/
uv.lock
Contributing
- Fork the repository.
- Create your feature branch.
- Submit a pull request.
License
MIT License.