Skip to content

The open alternative to Salesforce, designed for AI.

fix(mcp): declare containsAny operator for MULTI_SELECT filter schema (#26744) (#26748)

PINYO PATTANAWASANPORNc6943252e371
diff --git a/packages/twenty-server/src/engine/core-modules/record-crud/json-schemas/field-filters.json-schema.ts b/packages/twenty-server/src/engine/core-modules/record-crud/json-schemas/field-filters.json-schema.ts
index 53a5a3a9043..57a83113699 100644
--- a/packages/twenty-server/src/engine/core-modules/record-crud/json-schemas/field-filters.json-schema.ts
+++ b/packages/twenty-server/src/engine/core-modules/record-crud/json-schemas/field-filters.json-schema.ts
@@ -60,7 +60,7 @@ const buildOptionsFilter = ({
return {
type: 'object',
properties: {
- in: {
+ containsAny: {
description: 'Contains any of these values',
type: 'array',
items: option,
diff --git a/packages/twenty-server/test/integration/ai/suites/__snapshots__/mcp-database-tool-input-schemas.integration-spec.ts.snap b/packages/twenty-server/test/integration/ai/suites/__snapshots__/mcp-database-tool-input-schemas.integration-spec.ts.snap
index 0006b69496b..91612d4446d 100644
--- a/packages/twenty-server/test/integration/ai/suites/__snapshots__/mcp-database-tool-input-schemas.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/ai/suites/__snapshots__/mcp-database-tool-input-schemas.integration-spec.ts.snap
@@ -2943,7 +2943,7 @@ exports[`MCP database tool input schemas should list the input schemas of the pe
},
"traits": {
"properties": {
- "in": {
+ "containsAny": {
"description": "Contains any of these values",
"items": {
"enum": [
@@ -4719,7 +4719,7 @@ exports[`MCP database tool input schemas should list the input schemas of the pe
},
"traits": {
"properties": {
- "in": {
+ "containsAny": {
"description": "Contains any of these values",
"items": {
"enum": [
@@ -5581,7 +5581,7 @@ exports[`MCP database tool input schemas should list the input schemas of the pe
},
"traits": {
"properties": {
- "in": {
+ "containsAny": {
"description": "Contains any of these values",
"items": {
"enum": [
@@ -6440,7 +6440,7 @@ exports[`MCP database tool input schemas should list the input schemas of the pe
},
"traits": {
"properties": {
- "in": {
+ "containsAny": {
"description": "Contains any of these values",
"items": {
"enum": [