Sample code for Model Context Protocl (MCP) with Server Sent Event (SSE)
@edom18
关于 Sample code for Model Context Protocl (MCP) with Server Sent Event (SSE)
暂无概览
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"MCP-SSE-Server-Sample": {
"command": "uv",
"args": [
"run",
"mcp_server_sample",
"--port",
"8080",
"--transport",
"sse"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Sample code for Model Context Protocl (MCP) with Server Sent Event (SSE)?
This repository is a sample implementation of an MCP server using Server Sent Event (SSE) transport. It provides two simple, non‑useful methods (reverse text and uppercase) to help developers understand how an SSE‑based MCP server works. The server is based on the official simple-tool example from the modelcontextprotocol/python-sdk.
How to use Sample code for Model Context Protocl (MCP) with Server Sent Event (SSE)?
Launch the server with the uv command: uv run mcp_server_sample --port 8080 --transport sse. Then run the provided client script: python client.py.
Key features of Sample code for Model Context Protocl (MCP) with Server Sent Event (SSE)
- Demonstrates SSE transport for MCP servers
- Based on official
simple-toolexample from the Python SDK - Provides two simple utility methods (reverse text, uppercase)
- Includes a working client script (
client.py) - Minimal and easy to understand implementation
Use cases of Sample code for Model Context Protocl (MCP) with Server Sent Event (SSE)
- Learning how to implement an MCP server over SSE
- Testing MCP SSE transport mechanisms
- Prototyping SSE‑based MCP integrations
FAQ from Sample code for Model Context Protocl (MCP) with Server Sent Event (SSE)
What transport protocol does this sample use?
It uses Server Sent Event (SSE) transport.
What methods does the server provide?
The server provides two unhelpful methods that reverse text and convert text to uppercase.
What is this sample based on?
It is based on the simple-tool example from the modelcontextprotocol/python-sdk (official SDK).
How do I run the server and client?
Run the server with uv run mcp_server_sample --port 8080 --transport sse, then execute python client.py.
Is this sample intended for production use?
No, it is a sample code for understanding MCP SSE server behavior and is not useful for real‑world tasks.
开发工具 分类下的更多 MCP 服务器
test
cloudwegoThe ultimate LLM/AI application development framework in Go.
Smithery CLI
smithery-aiInstall, manage and develop MCP servers and skills for agents
test
harlancA simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀
mcp-excalidraw
yctimlinMCP server and Claude Code skill for Excalidraw — programmatic canvas toolkit to create, edit, and export diagrams via AI agents with real-time canvas sync.
Stakpak Agent CLI
stakpakShip your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. 🦀
评论