learning_ai_common_plat/services/mcp-server/src
saravanakumardb1 af605a6e7d fix(mcp): align ChronoMind type enums with actual backend schema
Fix 3 type mismatches in MCP chronomind-client.ts + chronomind-tools.ts:

1. TimerDoc.type: Remove non-existent 'event', keep 'countdown'|'alarm'|'pomodoro'
2. TimerDoc.state: Remove non-existent 'idle', add missing 'snoozed'|'dismissed'
3. RoutineDoc.status: Replace wrong 'idle'|'running' with actual
   'template'|'ready'|'active'|'cancelled'

Fix cascading usages:
- chronomind.timers.create tool: default state 'idle' → 'active'
- chronomind.timers.list tool: update type/state enum in Zod schema + description
- calendar-import-pipeline.ts: 'idle' → 'active' for imported timers

MCP server typecheck passes. No runtime behavior change for existing tools.
2026-03-31 23:57:24 -07:00
..
lib fix(mcp): align ChronoMind type enums with actual backend schema 2026-03-31 23:57:24 -07:00
modules fix(mcp): align ChronoMind type enums with actual backend schema 2026-03-31 23:57:24 -07:00
server.ts feat(mcp-server): register NoteLett tools (notes, workspaces, tasks, artifacts, summarize) 2026-03-29 20:57:16 -07:00