@centrali-io/centrali-mcp 4.4.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tools/describe.js
CHANGED
|
@@ -235,7 +235,7 @@ function registerDescribeTools(server) {
|
|
|
235
235
|
"Reference fields create relationships between collections — use 'expand' parameter in queries to join them",
|
|
236
236
|
"Use create_collection to define new data schemas with typed properties",
|
|
237
237
|
"Properties array defines the fields — each needs at minimum a name and type",
|
|
238
|
-
"Use schemaDiscoveryMode: '
|
|
238
|
+
"Use schemaDiscoveryMode: 'auto-evolving' to auto-add new fields when records are created",
|
|
239
239
|
"For enum/select behavior, use type 'string' with an 'enum' array — there is no 'select' type",
|
|
240
240
|
"For multi-line text, use type 'string' with renderAs: 'textarea'",
|
|
241
241
|
"For JSON blobs, use type 'object' with strictProperties: false",
|
package/dist/tools/structures.js
CHANGED
|
@@ -145,9 +145,9 @@ function registerCollectionTools(server, sdk) {
|
|
|
145
145
|
.describe("Array of property definitions. Each property needs 'name' and 'type' (string|number|boolean|datetime|array|object|reference). Type-specific options go at the top level, NOT inside a 'config' key. Use describe_collections for full schema reference."),
|
|
146
146
|
enableVersioning: zod_1.z.boolean().optional().describe("Enable record versioning (default: false)"),
|
|
147
147
|
schemaDiscoveryMode: zod_1.z
|
|
148
|
-
.enum(["strict", "
|
|
148
|
+
.enum(["strict", "schemaless", "auto-evolving"])
|
|
149
149
|
.optional()
|
|
150
|
-
.describe("Schema discovery mode: 'strict' rejects unknown fields, '
|
|
150
|
+
.describe("Schema discovery mode: 'strict' rejects unknown fields, 'schemaless' accepts any data, 'auto-evolving' allows extra fields"),
|
|
151
151
|
tags: zod_1.z.array(zod_1.z.string()).optional().describe("Optional tags for organizing collections"),
|
|
152
152
|
}, (_a) => __awaiter(this, [_a], void 0, function* ({ name, recordSlug, description, properties, enableVersioning, schemaDiscoveryMode, tags }) {
|
|
153
153
|
try {
|
package/package.json
CHANGED
package/src/tools/describe.ts
CHANGED
|
@@ -263,7 +263,7 @@ export function registerDescribeTools(server: McpServer) {
|
|
|
263
263
|
"Reference fields create relationships between collections — use 'expand' parameter in queries to join them",
|
|
264
264
|
"Use create_collection to define new data schemas with typed properties",
|
|
265
265
|
"Properties array defines the fields — each needs at minimum a name and type",
|
|
266
|
-
"Use schemaDiscoveryMode: '
|
|
266
|
+
"Use schemaDiscoveryMode: 'auto-evolving' to auto-add new fields when records are created",
|
|
267
267
|
"For enum/select behavior, use type 'string' with an 'enum' array — there is no 'select' type",
|
|
268
268
|
"For multi-line text, use type 'string' with renderAs: 'textarea'",
|
|
269
269
|
"For JSON blobs, use type 'object' with strictProperties: false",
|
package/src/tools/structures.ts
CHANGED
|
@@ -159,9 +159,9 @@ export function registerCollectionTools(server: McpServer, sdk: CentraliSDK) {
|
|
|
159
159
|
),
|
|
160
160
|
enableVersioning: z.boolean().optional().describe("Enable record versioning (default: false)"),
|
|
161
161
|
schemaDiscoveryMode: z
|
|
162
|
-
.enum(["strict", "
|
|
162
|
+
.enum(["strict", "schemaless", "auto-evolving"])
|
|
163
163
|
.optional()
|
|
164
|
-
.describe("Schema discovery mode: 'strict' rejects unknown fields, '
|
|
164
|
+
.describe("Schema discovery mode: 'strict' rejects unknown fields, 'schemaless' accepts any data, 'auto-evolving' allows extra fields"),
|
|
165
165
|
tags: z.array(z.string()).optional().describe("Optional tags for organizing collections"),
|
|
166
166
|
},
|
|
167
167
|
async ({ name, recordSlug, description, properties, enableVersioning, schemaDiscoveryMode, tags }) => {
|