消息发送服务

一个基于FastAPI的MCP服务,提供模拟的电子邮件和短信发送功能。

  • by rb58853
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 rb58853/MCP-Send-Message-Simulation

使用说明

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."
        }
}