Advanced PocketBase MCP Server

migrate_collection

Migrate and update collections in PocketBase databases by defining new schemas and applying field transformations. Simplifies database restructuring for enhanced data management.

Input Schema

NameRequiredDescriptionDefault
collectionYesCollection name
dataTransformsNoField transformation mappings
newSchemaYesNew collection schema

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "collection": { "description": "Collection name", "type": "string" }, "dataTransforms": { "additionalProperties": { "type": "string" }, "description": "Field transformation mappings", "type": "object" }, "newSchema": { "description": "New collection schema", "items": { "additionalProperties": false, "properties": { "name": { "type": "string" }, "options": { "additionalProperties": {}, "type": "object" }, "required": { "default": false, "type": "boolean" }, "type": { "type": "string" } }, "required": [ "name", "type" ], "type": "object" }, "type": "array" } }, "required": [ "collection", "newSchema" ], "type": "object" }
ID: 75jh9xb2sg