@centrali-io/centrali-mcp 4.2.13 → 4.2.14

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.
@@ -1208,13 +1208,16 @@ function registerDescribeTools(server) {
1208
1208
  fields: "FormFieldDef[] — array of field definitions directly on the block object",
1209
1209
  field_shape: {
1210
1210
  key: "string — maps to the record's data field name",
1211
- label: "string — display label",
1212
- type: "'text' | 'number' | 'email' | 'date' | 'boolean' | 'select' | 'textarea'",
1213
- required: "boolean (default: false)",
1211
+ label: "string — display label (unused for hidden fields)",
1212
+ type: "'text' | 'number' | 'email' | 'date' | 'boolean' | 'select' | 'textarea' | 'hidden'",
1213
+ required: "boolean (default: false) — ignored for hidden fields",
1214
1214
  placeholder: "string | null",
1215
+ defaultValue: "string | number | boolean | { source: 'auth' | 'system', field: string } — static value or derived default. For hidden fields, this is the value injected at submit time. For visible fields, this pre-populates the input. Derived sources: auth.userId, auth.email, auth.name (from logged-in user), system.now (server timestamp). Derived defaults are resolved server-side.",
1216
+ resolveErrorMessage: "string | null — custom error message shown when a derived defaultValue cannot be resolved (e.g. user not signed in). Defaults to 'This form requires you to be signed in' for auth source.",
1215
1217
  options: "For 'select' type: { label: string, value: string }[] — inline static options",
1216
1218
  optionSource: "For 'select' type (alternative): { type: 'static' | 'dynamic', staticOptions?: [{label, value}], dynamicRef?: 'collection-uuid', labelField?, valueField? }",
1217
1219
  },
1220
+ HIDDEN_FIELDS: "Fields with type 'hidden' are NOT rendered to end users but their defaultValue is included in the form submission payload. Use for auto-populated values like status, provider, userId, timestamps. Static defaults are injected directly; derived defaults (auth/system) are resolved securely on the server.",
1218
1221
  allowed_actions: ["create-record", "update-record", "invoke-trigger"],
1219
1222
  default_activation: "form-submit",
1220
1223
  param_source: "form",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centrali-io/centrali-mcp",
3
- "version": "4.2.13",
3
+ "version": "4.2.14",
4
4
  "description": "Centrali MCP Server - AI assistant integration for Centrali workspaces",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
@@ -1405,13 +1405,16 @@ export function registerDescribeTools(server: McpServer) {
1405
1405
  fields: "FormFieldDef[] — array of field definitions directly on the block object",
1406
1406
  field_shape: {
1407
1407
  key: "string — maps to the record's data field name",
1408
- label: "string — display label",
1409
- type: "'text' | 'number' | 'email' | 'date' | 'boolean' | 'select' | 'textarea'",
1410
- required: "boolean (default: false)",
1408
+ label: "string — display label (unused for hidden fields)",
1409
+ type: "'text' | 'number' | 'email' | 'date' | 'boolean' | 'select' | 'textarea' | 'hidden'",
1410
+ required: "boolean (default: false) — ignored for hidden fields",
1411
1411
  placeholder: "string | null",
1412
+ defaultValue: "string | number | boolean | { source: 'auth' | 'system', field: string } — static value or derived default. For hidden fields, this is the value injected at submit time. For visible fields, this pre-populates the input. Derived sources: auth.userId, auth.email, auth.name (from logged-in user), system.now (server timestamp). Derived defaults are resolved server-side.",
1413
+ resolveErrorMessage: "string | null — custom error message shown when a derived defaultValue cannot be resolved (e.g. user not signed in). Defaults to 'This form requires you to be signed in' for auth source.",
1412
1414
  options: "For 'select' type: { label: string, value: string }[] — inline static options",
1413
1415
  optionSource: "For 'select' type (alternative): { type: 'static' | 'dynamic', staticOptions?: [{label, value}], dynamicRef?: 'collection-uuid', labelField?, valueField? }",
1414
1416
  },
1417
+ HIDDEN_FIELDS: "Fields with type 'hidden' are NOT rendered to end users but their defaultValue is included in the form submission payload. Use for auto-populated values like status, provider, userId, timestamps. Static defaults are injected directly; derived defaults (auth/system) are resolved securely on the server.",
1415
1418
  allowed_actions: ["create-record", "update-record", "invoke-trigger"],
1416
1419
  default_activation: "form-submit",
1417
1420
  param_source: "form",