MCP 服务器模板
用于创建 MCP(模型控制协议)服务器的 Cookiecutter 模板。
快速入门
前置条件
- 安装 Python 3.11 或更高版本。
- 安装 uv 工具:
curl -LsSf https://astral.sh/uv/install.sh | sh
- 安装 Cookiecutter:
uv pip install cookiecutter
创建项目
方法一:从 GitHub 直接创建
运行以下命令:
cookiecutter gh:codeium/mcp-cookie-cutter
方法二:从本地模板创建
- 克隆模板:
git clone https://github.com/codeium/mcp-cookie-cutter
- 使用本地模板创建项目:
cookiecutter path/to/mcp-cookie-cutter
配置模板
根据提示输入项目名称、描述、作者信息等。
后续步骤
- 查看并修改生成的 README.md。
- 根据 DEVELOPMENT.md 设置开发环境并运行服务。
- 在
tools/
目录中添加自定义工具。