erp-mecanicas-diesel-backen.../src/modules/analytics
Adrian Flores Cortes e26ab24aa5 feat: Connect MCP tools to real services
Analytics Module:
- Created AnalyticsService with sales/financial reporting
- Supports sales summary, reports, top products/customers, KPIs
- Uses analytics schema and service_management tables

MCP Tools Connected:
- products-tools → PartService (real inventory data)
- sales-tools → AnalyticsService (real sales analytics)
- financial-tools → AnalyticsService (real P&L and KPIs)

Updated tool registry to pass DataSource to connected tools.

MCP Tools Status:
- orders-tools: Connected to ServiceOrderService
- inventory-tools: Connected to PartService
- customers-tools: Connected to CustomersService
- products-tools: Connected to PartService (NEW)
- sales-tools: Connected to AnalyticsService (NEW)
- financial-tools: Connected to AnalyticsService (NEW)
- fiados-tools: Mock (needs FiadosService)
- branch-tools: Mock (single tenant)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 07:56:10 -06:00
..
services feat: Connect MCP tools to real services 2026-01-25 07:56:10 -06:00
index.ts feat: Connect MCP tools to real services 2026-01-25 07:56:10 -06:00