测试服务器运行工具

一个用于运行Python SDK测试服务器的工具,支持多模块部署和调试。

  • by oidebrett
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 oidebrett/mcp-test-servers

使用说明

测试MCP服务器

此仓库提供了一种从python-sdk运行测试服务器的方法。

安装

创建虚拟环境并安装需求

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cd identity-streamablehttp; pip install -e .;cd ..
cd identity-streamablehttp; pip install -e .;cd ..
cd simple-streamablehttp; pip install -e .;cd ..
cd simple-streamablehttp-stateless; pip install -e .;cd ..
cd simple-prompt; pip install -e .;cd ..
cd simple-resource; pip install -e .;cd ..
cd simple-tool; pip install -e .;cd ..

跑

# python -m simple-streamablehttp.mcp_simple_streamablehttp --log-level DEBUG --port 80 - dont use this use this....
#mcp-simple-streamablehttp --port 8080
identity-streamablehttp --port 80

与python sdk同步

目前,您需要手动将sdk代码复制到此目录。 从https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/servers

测试

部署到render.com