MCP Server Reference
Eryxon Flow MCP Server v2.5.0
Section titled “Eryxon Flow MCP Server v2.5.0”Universal MCP server for Eryxon Flow MES - Works in both self-hosted and cloud SaaS deployments.
Features
Section titled “Features”- Auto-detects direct Supabase or REST API connection
- 55 tools across 9 modules for jobs, parts, operations, quality, shipping, analytics
- Production-grade validation with Zod runtime type checking
- Tool factory pattern reducing code duplication by 60%
- Multi-tenant safe via API keys or RLS
- Deploy to Railway, Fly.io, or run locally
- 90-test suite with 100% pass rate
Quick Start
Section titled “Quick Start”Cloud SaaS (Recommended for Hosted Deployment)
Section titled “Cloud SaaS (Recommended for Hosted Deployment)”Users connect to YOUR hosted MCP server using their API key:
cd mcp-servernpm installnpm run build
# Set your API endpoint (your project)export ERYXON_API_URL="https://your-project.supabase.co"
# Users provide their own API keyexport ERYXON_API_KEY="ery_live_xxxxx" # From Settings → API Keys
npm startUser’s Claude Desktop config:
{ "mcpServers": { "eryxon-flow": { "command": "node", "args": ["/path/to/eryxon-flow/mcp-server/dist/index.js"], "env": { "ERYXON_API_URL": "https://your-project.supabase.co", "ERYXON_API_KEY": "ery_live_xxxxx" } } }}Self-Hosted (Direct Supabase)
Section titled “Self-Hosted (Direct Supabase)”For single-tenant self-hosted deployments:
cd mcp-servernpm installnpm run build
export SUPABASE_URL="https://your-project.supabase.co"export SUPABASE_SERVICE_KEY="eyJhbGc..." # Service role key
npm startMode Detection
Section titled “Mode Detection”The server automatically detects which mode to use:
- Has
ERYXON_API_KEY? → API Mode (cloud, multi-tenant) - Has
SUPABASE_SERVICE_KEY? → Direct Mode (self-hosted, single-tenant)
Architecture
Section titled “Architecture”Claude Desktop (User) ↓ MCP ProtocolMCP Server (Your deployment or local) ↓ REST API (if cloud) OR Direct Supabase (if self-hosted)Supabase Edge Functions / Database ↓ RLS (tenant isolation)Your DataTool Modules
Section titled “Tool Modules”- Jobs (7 tools) - Job lifecycle and management
- Parts (2 tools) - Part tracking
- Operations (5 tools) - Operation workflow with state transitions
- Tasks (2 tools) - Task management
- Issues (8 tools) - Quality issues and NCRs
- Substeps (5 tools) - Operation substeps
- Dashboard (3 tools) - Production metrics
- Scrap (7 tools) - Scrap tracking and analytics
- Agent Batch (16 tools) - Batch operations optimized for AI agents
Documentation
Section titled “Documentation”- MCP Demo Guide - Complete tool reference and usage
- Self-Hosting Guide - Self-hosted setup
- Documentation Home - Full documentation
Development
Section titled “Development”# Install dependenciesnpm install
# Run testsnpm test
# Buildnpm run build
# Start in development modenpm run dev