基本能力
产品定位
MCP-SSE-Custom-Server 是一个用于促进语言模型与客户端应用之间通信的服务器实现,支持实时数据流和事件驱动的通信。
核心功能
- 资源管理
- echo://{message} - 回显消息作为资源
- 工具调用
- echo_tool - 回显消息作为工具 - demo_tool - 通过相加两个数字来演示工具功能
- 提示生成
- echo_prompt - 创建回显提示
适用场景
- 实时数据流处理
- AI 模型交互
- 语言模型与客户端应用之间的通信
工具列表
echo_tool- 回显消息作为工具demo_tool- 演示工具功能
使用教程
使用依赖
- Python 3.10+
- MCP >= 0.3.0
- Docker (用于容器化部署)
- FastAPI 和 Uvicorn (用于 SSE 实现)
安装教程
克隆仓库并进入项目目录:
git clone git@github.com:AMasetti/MCP-SSE-Custom-Server.git
cd mcp-server-implementationsSSE 实现
运行 SSE 服务器:
# 使用 Docker
make build-sse
make run-sse
# 或直接使用 uvicorn
uvicorn app.main:app --host 0.0.0.0 --port 8000独立 MCP 实现
运行独立 MCP 服务器:
# 使用 Make 命令
make build-local
make run-local
# 或直接使用 Docker
docker build -t mcp/echo -f Dockerfile.mcp .
docker run -i --rm mcp/echo调试方式
服务器将在 http://localhost:8000 可访问。
常见问题解答
- 如何配置 Claude Desktop?
在配置文件中添加相应的服务器配置。
- 如何贡献代码?
欢迎提交 Pull Request。

