Cover image
Try Now
2024-12-02

Ein einfaches Beispiel für eine Modellkontext -Protokollserver -Implementierung

3 years

Works with Finder

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

  1. Install dependencies:

    pip install -r requirements.txt
    
  2. Run the server:

    uvicorn src.main:app --reload
    

Usage

The server provides two endpoints:

  1. GET / - Health check
  2. 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"}}'

相关推荐

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

  • https://duotify.com
  • Professional code reviewer for a unique language, friendly and helpful.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Andris Teikmanis
  • Latvian GPT assistant for developing GPT applications

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Navid RezaeiSarchoghaei
  • Professional Flask/SQLAlchemy code guide. Follow: https://x.com/navid_re

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://cantaspinar.com
  • Summarizes videos and answers related questions.

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • OffchainLabs
  • GO -Umsetzung des Ethereum -Beweises des Anteils

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

  • oatpp
  • Die Implementierung des Modellkontextprotokolls von Anthropic für OAT ++

    Reviews

    5 (1)
    Avatar
    user_LHZlZfhS
    2025-04-15

    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.