拉皮纳-MCP
   
MCP(模型上下文协议)服务器 拉皮纳 框架。
让AI助手对Rapina项目有原生的理解——在不离开对话的情况下,对应用程序进行脚手架、检查、诊断和反思。
安装
cargo install rapina-mcp设置
添加到MCP客户端配置中:
克劳德代码 (~/.claude/settings.json):
{
"mcpServers": {
"rapina": {
"command": "rapina-mcp"
}
}
}克劳德桌面版 (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"rapina": {
"command": "rapina-mcp"
}
}
}使用相同的模式与任何兼容MCP的客户端(Cursor、Windsurf等)配合使用。
工具
| 工具 | 说明 |
|---|---|
rapina_new | 搭建一个新的Rapina项目 |
rapina_add | 添加资源(处理程序、模型、迁移) |
rapina_routes | 列出所有已定义的路线 |
rapina_doctor | 运行项目诊断 |
rapina_openapi | 生成OpenAPI规范 |
rapina_codegen | 运行代码生成 |
rapina_migrate | 运行、回滚或检查迁移状态 |
rapina_test | 运行项目测试 |
rapina_explain | 反思项目结构并返回完整的架构摘要 |
大多数工具都包裹着 rapina CLI,因此您需要安装它(cargo install rapina-cli).这 rapina_explain 该工具通过直接读取文件系统独立工作。
测试
验证服务器是否与MCP检查器一起工作:
npx @modelcontextprotocol/inspector rapina-mcp许可证
麻省理工学院
