I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

MCP-Server-example-v2
模型上下文协议服务器实现的简单示例
1
Github Watches
1
Github Forks
2
Github Stars
Simple MCP Server Example
This is a basic implementation of a Model Context Protocol (MCP) server using FastAPI. The server demonstrates the core concepts of MCP by providing a simple context service.
Features
- Basic health check endpoint
- Context endpoint that processes prompt templates
- Support for parameterized prompts
Setup
-
Install dependencies:
pip install -r requirements.txt
-
Run the server:
uvicorn src.main:app --reload
Usage
The server provides two endpoints:
- GET / - Health check
- POST /context - Get context for a prompt
Example request:
curl -X POST http://localhost:8000/context \
-H "Content-Type: application/json" \
-d '{"prompt_id": "greeting", "parameters": {"time": "12:00 PM"}}'
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
This GPT assists in finding a top-rated business CPA - local or virtual. We account for their qualifications, experience, testimonials and reviews. Business operators provide a short description of your business, services wanted, and city or state.
Professional Flask/SQLAlchemy code guide. Follow: https://x.com/navid_re
Confidential guide on numerology and astrology, based of GG33 Public information
Reviews

user_LHZlZfhS
I'm a huge fan of Bitrise MCP Server by bitrise-io! This powerful tool significantly streamlines our CI/CD processes with its seamless integration and robust performance. The user interface is intuitive, making it easy to set up workflows and monitor builds. Highly recommend it to teams looking to enhance their development pipeline. Check it out at https://mcp.so/server/bitrise-mcp/bitrise-io.