🏓 MCP Ping-Pong Server by Remote Call
@kimtth
🏓 MCP Ping-Pong Server by Remote Call について
🏓 An experimental and educational script for Ping-pong server demonstrating remote MCP (Model Context Protocol) calls
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-remote-call-ping-pong": {
"command": "python",
"args": [
"mcp-api-server.py"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is MCP Ping-Pong Server by Remote Call?
An experimental, educational Ping-Pong server that demonstrates remote Model Context Protocol (MCP) calls via FastAPI. It provides API endpoints and Server-Sent Events (SSE) for invoking MCP tool commands like ping, pong, and count.
How to use MCP Ping-Pong Server by Remote Call?
After installing dependencies (poetry install), start the FastAPI server with python mcp-api-server.py (runs on http://localhost:8080). Use the web UI (mcp-api-client.html) or call GET /ping-pong?prompt_name=<name> / POST /ping-pong directly. Alternatively, run the SSE server (mcp-sse-server.py) and client (mcp-sse-client.py) for SSE-based communication.
Key features of MCP Ping-Pong Server by Remote Call
- FastAPI/FastMCP backend for remote MCP calls.
- Support for both API endpoints and SSE transport.
- Implements
ping,pong, andcountcommands. - Thread-safe session management.
- Includes a browser-based UI client.
Use cases of MCP Ping-Pong Server by Remote Call
- Learning how to integrate MCP with FastAPI.
- Testing remote MCP tool invocations via HTTP or SSE.
- Experimenting with command handling and session management.
- Demonstrating a minimal MCP server-client interaction.
FAQ from MCP Ping-Pong Server by Remote Call
What is this server for?
It is an experimental tool to learn and demonstrate how to make MCP calls remotely using FastAPI. It simulates a simple Ping-Pong exchange.
How do I start the server?
Run python mcp-api-server.py for the API mode, or python mcp-sse-server.py for SSE mode.
What commands does it support?
The MCP tool accepts three commands: ping (returns pong), pong (returns ping), and count (returns the number of interactions).
Does it require any external services or authentication?
No. The server runs locally and requires only Python and the dependencies installed via poetry install. No authentication or external data stores are mentioned.
What transports are available?
Two transports: direct HTTP API endpoints (GET/POST) and Server-Sent Events (SSE) for streaming communication.
「その他」の他のコンテンツ
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Website
FunnyWolfAdversary simulation and Red teaming platform with AI
コメント