Mcp-Server-Study
If you are the rightful owner of Mcp-Server-Study and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project is a learning initiative based on the Model Context Protocol (MCP) to understand how an MCP server is implemented.
The MCP Learning Project is designed to help users understand the implementation of an MCP server. It includes a set of API service interfaces implemented using the FastAPI library, simulating existing Java backend services. The project focuses on basic arithmetic operations such as addition, subtraction, multiplication, and division. The 'api_server' directory contains the API services, while the 'tests' directory includes unit tests for these services using Pytest. The 'mcp_server' directory contains the MCP server content, showcasing two implementation methods: stdio and SSE. The stdio method involves local execution, while the SSE method uses Uvicorn to generate a service, connecting via a remote server configuration.
Features
- Arithmetic Operations: Provides tools for basic arithmetic operations including addition, subtraction, multiplication, and division.
- SSE-Based Real-Time Messaging: Utilizes Server-Sent Events (SSE) for real-time message transmission.
- Asynchronous HTTP Client Support: Supports asynchronous operations using HTTP clients.
- Strong Type Input Validation: Ensures input data is strongly typed and validated.