使用说明
简单远程服务器的步骤
- 安装
uv - 创建一个新文件夹
- 在 VS Code 中打开该文件夹
- 以...初始化
uvuv init - 添加FastMCP
uv add fastmcp - 创建一个简单的服务器
(编写你的服务器代码,例如,在main.py) - 运行服务器
uv run main.py - 使用MCP Inspector测试服务器
- 创建一个GitHub仓库
- 初始化 git
git init - 添加文件
git add . - 提交更改
git commit -m "Initial commit: Simple MCP server" - 添加远程仓库原点
git remote add origin https://github.com/yourusername/simple-mcp-server.git - 推送到GitHub
git push -u origin main - 在FastMCP云上创建一个账户
- 在FastMCP云上部署