genai-mcp-server-demo
2.5
This project provides a demonstration of a Mission Control Protocol (MCP) server, offering a straightforward approach to build and manage APIs using Python. Key features include the ability to quickly create tools and expose resources dynamically.
Overview
This project demonstrates an implementation of a server for the MCP (Mission Control Protocol). It provides a simple and efficient platform to create and manage resource-based APIs using the MCP protocol.
Features
- Quick tool creation via Python decorators
- Dynamic resource exposure with URL patterns
- Easy integration with existing systems
- Intuitive API for service development
Prerequisites
- Python 3.12 or higher
- pip (Python package manager)
Installation
- Clone the repository and navigate to the directory.
- Create a virtual environment (optional but recommended).
- Install dependencies.
Usage
Running the Server
The server runs locally and offers the endpoints defined in the file server.py
.
Project Structure
server.py
: MCP Server definitionmain.py
: Application entry pointtests/
: Automated tests
Development
Running Tests
Use pytest
to execute automated tests.