fichapao-mcp-server
FichaPao MCP 服务器
用于 FichaPao AI 代理通过 Postgres 控制面包店技术表的 HTTP MCP 服务器。
该应用程序的目标是为代理提供安全工具,而不暴露原始 SQL。
架构
OpenWebUI
-> Agente FichaPao AI
-> MCP HTTP /mcp
-> fichapao-mcp-server
-> PostgresRelated MCP server: mcp-enterprise-starter
MCP 工具
search_recipe: 按名称搜索配方。get_recipe: 通过recipe_id、version_id或名称查询配方。create_recipe_draft: 创建0.1版本的草稿配方。update_draft: 更新草稿或修订版本。create_new_version: 创建新的草稿版本。approve_version: 如果没有阻塞性待办事项,则批准版本。list_pending_items: 列出待办事项。register_production_test: 记录生产测试。compare_versions: 比较两个版本。archive_recipe: 归档配方。get_database_stats: 数据库摘要。
已实现的规则
新配方始终以
草稿形式进入。初始版本为
0.1。已批准的配方不能直接编辑。
对已批准配方的更改必须成为新的草稿版本。
当存在关键待办事项时,批准将被阻止。
0.x版本的首次批准将变为1.0。数据库区分:
current_version_id: 最新/正在处理的版本。active_version_id: 生产中已批准的版本。
本地运行
cp .env.example .env
docker compose up --build健康检查:
curl http://localhost:3001/healthMCP 端点:
http://localhost:3001/mcp在 docker-compose.yml 中,本地端口映射为 3001:3000,以避免与已使用 3000 端口的常见应用程序冲突。
如果已填写 MCP_API_KEY,请发送:
Authorization: Bearer sua-chave在 EasyPanel 上部署
创建两个服务:
Postgres
指向此存储库的 Docker 应用程序
应用程序变量:
NODE_ENV=production
PORT=3000
DATABASE_URL=postgresql://usuario:senha@host:5432/fichapao
AUTO_MIGRATE=true
MCP_API_KEY=troque-por-uma-chave-forte
CORS_ORIGIN=*发布后,进行验证:
https://seu-dominio/health在 OpenWebUI 中:
Admin Settings -> External Tools -> Add MCP Server
URL: https://seu-dominio/mcp
Auth: Bearer token com o valor de MCP_API_KEY数据库
主要迁移:
migrations/001_init.sql表:
recipesrecipe_versionspending_itemsproduction_testschange_history
开发
npm install
npm run typecheck
npm run build
npm run devThis server cannot be deployed
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Butterbase MCP server — manage your backend: schemas, auth, functions, storage, RAG, deploys.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA production-ready MCP server that connects AI assistants to any PostgreSQL database with 25 tools and role-based access control.29 npmMIT
- AlicenseAqualityDmaintenanceA production-grade MCP server that gives AI agents safe, authenticated access to a PostgreSQL database.3MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that exposes tools to query DulceGestion business data (orders, stock, customers) and retrieve documentation via RAG, enabling Claude to assist with pastry shop management.-
- AlicenseAqualityDmaintenanceAn MCP server for AI-powered recipe generation and transformation, enabling users to create custom recipes from natural language descriptions and modify existing ones to meet dietary and nutritional goals.253 npm1MIT