使用说明
MCP食谱服务器
使用模型上下文协议(MCP)向查询配方公开工具的服务器。
特性
- 按名称、配料、菜肴或ID查询食谱
安装
# Clone the repository
git clone <repository-url>
cd mcp-recipes
# Install dependencies
yarn install
用法
启动服务器
# Development mode
yarn dev
# Production mode
yarn build
yarn start
默认情况下,服务器将在端口3000上启动。您可以通过设置 PORT 环境变量。
运行客户端示例
# Make sure the server is running in another terminal
yarn client
许可证
麻省理工学院