MCP发送消息模拟
使用项目
此存储库包含一个FastAPI服务器,该服务器公开了一个名为 send_message_service 使用两个模拟工具: send_email 和 send_sms.\ 主MCP端点安装在:
还有一条帮助路线:
运行服务器的方法
使用Python在本地运行
- 创建虚拟环境并安装依赖项:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt- 启动服务器:
python3 main.py --host 0.0.0.0 --port 8765使用Docker(镜像和容器)
docker compose -f docker-compose.yml up -d --build客户端
作为MCP客户端,您可以使用 快速聊天MCP 并传递以下配置:
{
"messages_simulation": {
"protocol": "httpstream",
"httpstream-url": "http://localhost:8765/send_message_service/mcp",
"name": "send_message_service",
"description": "This server specializes in send messages as simulation."
}
}