* MCP Server 2.0 - Updated application version from 2.23.14 to 2.24.0 in package.json. - MCP Server improved with new features - Migrated functionality from Dev Tools to MCP Server - Improved getMonitoringProvider not to crash application when misconfigured
865 B
865 B
MCP Server Instructions
This package owns Makerkit MCP tool/resource registration and adapters.
Non-negotiables
- Use service pattern: keep business/domain logic in
*.service.ts, not MCP handlers. index.tsin each tool folder is adapter only: parse input, call service, map output/errors.- Inject deps via
create*Deps+create*Service; avoid hidden globals/singletons. - Keep schemas in
schema.ts; validate all tool input with zod before service call. - Export public registration + service factory/types from each tool
index.ts. - Add/maintain unit tests for service behavior and tool adapter behavior.
- Register new tools/resources in
src/index.ts. - Keep tool responses structured + stable; avoid breaking output shapes.
Service pattern is required to decouple logic from MCP server transport and keep logic testable/reusable.