mcp-python-sdk
用于stdio和可流式传输的http服务器/客户端的小型、脚本优先的MCP演示。
需求
- Python 3.13(参见
.python-version) - 依赖关系通过
uv或pip
快速开始
uv sync运行演示
python src/sample-server.py
python src/http-client.py
python src/stdio-mcp-server.py
python src/stdio-mcp-client.py测试
pytest项目布局
src/ # demo servers/clients
tests/ # pytest tests