MCP server registers all 10 CRUD and schema tools with correct input/output shapes.
Firestore env works, datamodel registry works, serialization works, CRUD helpers work.
Register exactly these 10 tools:
list_collectionsget_schemaget_doclist_docscreate_docupdate_docdelete_doccreate_docsupdate_docsdelete_docstype built from entityKey valuespathParams required for subcollection entitiestoJsonSafe and JSON.stringify(..., null, 2)transaction=false, enforce max 500 operationslist_collections reflects datamodel YAMLssrc/tools/crudTools.ts with registerCrudTools({ server, envService, repoRoot })loadEntityRegistry(repoRoot)type parameterlist_collections toolget_schema tool with timestampFormat and fieldsget_doc toollist_docs toolcreate_doc tool with buildCreateOrUpsertDataSchema validationupdate_doc tool with buildUpdateDataSchema validationdelete_doc toolcreate_docs batch toolupdate_docs batch tool with upsert supportdelete_docs batch toolsrc/index.ts to call registerCrudTools(...) after env init{ entityCount, toolCount: 10 } from registrationstring|number|boolean|timestamp|map|array|unknownrunTransaction() with tx.create/update/deleteWriteBatch with max 500 ops
Reacties