ST

sevalla-templates/python-demo-mcp-server

Deployment & DevOps

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

16 stars 9 forks 品質 44 トレンド 21

Server-Sent Events(SSE) でモデルコンテキストプロトコル(MCP)を実装するデモンストレーションサーバです.

概要

Server-Sent Events(SSE) でモデルコンテキストプロトコル(MCP)を実装するデモンストレーションサーバです。 ストリーミングコンテンツの制作と管理を処理するサーバーを構築する方法の実用的な例を提供します。 サーバはデフォルトで[http://localhost:8080]を開始します。 Sevalla のデプロイでは、必ず Dockerfile ベースのビルド環境を選択してください! Cursor でこのサーバーを使用するには、次のファイルを mcp.json ファイルに貼り付けます。 サーバの実際のドメインと交換してください.

概要(AI 翻訳)

紹介

Server-Sent Events(SSE) でモデルコンテキストプロトコル(MCP)を実装するデモンストレーションサーバです。 ストリーミングコンテンツの制作と管理を処理するサーバーを構築する方法の実用的な例を提供します。

はじめる

  1. Python環境の設定

  2. 必要なパッケージをインストールする

サーバーの実行

###開発環境

サーバはデフォルトで[http://localhost:8080]を開始します。

生産環境

Sevalla のデプロイでは、必ず Dockerfile ベースのビルド環境を選択してください!

カーソルの使用法

Cursor でこのサーバーを使用するには、次の [mcp.json] ファイルに貼り付けます。

サーバの実際のドメインで[ を置き換えてください.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

Python Demo MCP Server

Introduction

This is a demonstration server implementing the Model Context Protocol (MCP) with Server-Sent Events (SSE). It provides a practical example of how to build a server that can handle streaming content production and management.

Getting Started

  1. Set up your Python environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install the required packages
uv pip install -r requirements.txt

Run the server

Development Environment

python server.py

The server will start on http://localhost:8080 by default.

Production Environment

For deployment on Sevalla, make sure to select Dockerfile based build environment!

Usage in Cursor

To use this server in Cursor, paste the following in your mcp.json file:

"demo-mcp": {
  "url": "https:///sse"
}

Make sure to replace `` with the actual domain of your server.

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →