Skip to main content

MCP AI Infrastructure

ReUp includes a sophisticated AI/MCP (Model Context Protocol) infrastructure for autonomous operations.

Overview

The MCP server exposes 28 tool modules that enable AI agents to interact with the platform:

┌─────────────────────────────────────────────────────────────┐
│ MCP Server Layer │
├─────────────────────────────────────────────────────────────┤
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ FastMCP │ │ Auth/RBAC │ │ Circuit │ │
│ │ Transport │ │ Middleware │ │ Breaker │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
├─────────────────────────────────────────────────────────────┤
│ 28 Tool Modules │
├─────────────────────────────────────────────────────────────┤
│ Analytics │ Approvals │ Commerce │ Cultivation │ Dashboard │
│ Delivery │ Dutchie │ Imports │ Inventory │ Invoices │
│ LabTest │ METRC* │ ML │ Notify │ Onboard │
│ Orders │ Products │ Receive │ Relations │ Sync │
│ Workflows │ ToolSearch│ │
└─────────────────────────────────────────────────────────────┘

Tool Categories

Inventory & Products

ToolPurpose
tools_inventoryQuery inventory levels, availability
tools_productsProduct catalog operations
tools_importsMulti-source product import

Orders & Commerce

ToolPurpose
tools_ordersOrder management operations
tools_commerceB2B marketplace operations
tools_invoicesInvoice lifecycle management

Compliance (METRC)

ToolPurpose
tools_metrcCore METRC operations
tools_metrc_readRead-only METRC data
tools_metrc_actionsQueued write operations
tools_metrc_executorsAction execution
tools_metrc_locationsFacility/location data
tools_metrc_write_extendedExtended write ops

Analytics & Intelligence

ToolPurpose
tools_analyticsAnalytics queries, forecasts
tools_dashboardDashboard metrics, KPIs
tools_ml_infrastructureML model inference

Operations

ToolPurpose
tools_deliveryDelivery operations
tools_cultivationCultivation data
tools_receivingReceiving workflows
tools_workflowsWorkflow orchestration
tools_approvalsAI approval workflows
tools_lab_testingLab testing data

Integration & Sync

ToolPurpose
tools_dutchieDutchie POS integration
tools_syncData synchronization
tools_onboardingOnboarding workflows
tools_relationshipsPartnership management
tools_notificationsNotification dispatch

Discovery

ToolPurpose
tools_tool_searchFind relevant tools for tasks

Authentication & Access Control

Persona-Based Access

The MCP server uses persona-based authentication:

  • Entity-scoped: Tools operate within entity boundaries
  • Role-filtered: Tools filtered by user role
  • Delegation: AI can act on behalf of users

Security Layers

  1. JWT authentication
  2. Entity context validation
  3. Role-based tool filtering
  4. Audit logging

ML Infrastructure (2026 Agentic Commerce)

Advanced ML capabilities:

ServicePurpose
autonomous_execution_serviceAutonomous agent execution
ml_orchestratorML pipeline management
ensemble_forecastingMulti-model forecasting
calibration_serviceModel calibration
explainability_serviceModel interpretability
feature_storeFeature engineering
outcome_trackerPrediction tracking
ab_testing_serviceA/B testing framework

Usage Examples

Tool Discovery

# Find tools for inventory management
result = await tools_tool_search.search("inventory levels low stock")

Inventory Query

# Get low stock items
result = await tools_inventory.get_low_stock(
entity_id="entity-uuid",
threshold=10
)

METRC Operations

# Read packages from METRC
packages = await tools_metrc_read.get_packages(
facility_license="C10-0000001",
active_only=True
)