freedanfan_mcp_server
This project is an MCP server implemented in Python using FastAPI, designed for efficient interaction between AI models and development environments. It supports JSON-RPC 2.0, SSE for notifications, and allows easy integration and management of AI tasks with a modular and scalable architecture.
Overview
Built on FastAPI and Model Context Protocol (MCP), this project facilitates standardized context interaction between AI models and development environments. It offers features like JSON-RPC 2.0 communication, Server-Sent Events (SSE) connections, modular design for customization, and asynchronous processing. The project includes API endpoints for JSON-RPC, SSE, and server information, as well as a complete test client.
Features
- JSON-RPC 2.0 protocol
- SSE for real-time notifications
- Modular design for easy customization
- Asynchronous processing with FastAPI
- Includes a test client
Usage
To start the server, use the command line to run python mcp_server.py
and the server will start by default on 127.0.0.1:12000
. It supports environment variable configurations for host and port.
Troubleshooting
Common issues include connection errors, 405 errors, and SSE connection failures. Ensure the server is running and the correct endpoint URLs are used.