fixed mcpServers as array

This commit is contained in:
Quan HL
2025-04-15 15:41:29 +07:00
parent f567d985a0
commit f71dfb5c46
2 changed files with 9 additions and 16 deletions

View File

@@ -448,7 +448,7 @@
"toolHook": "object|string", "toolHook": "object|string",
"events": "array", "events": "array",
"llmOptions": "object", "llmOptions": "object",
"mcpServer": "#mcpServer" "mcpServers": "array"
}, },
"required": [ "required": [
"vendor", "vendor",
@@ -456,15 +456,6 @@
"llmOptions" "llmOptions"
] ]
}, },
"mcpServer": {
"properties": {
"url": "string",
"auth": "object"
},
"required": [
"url"
]
},
"message": { "message": {
"properties": { "properties": {
"id": "string", "id": "string",

View File

@@ -533,13 +533,15 @@ test("validate correct verbs", async (t) => {
"llmOptions": { "llmOptions": {
"firstSpeaker": 'FIRST_SPEAKER_AGENT', "firstSpeaker": 'FIRST_SPEAKER_AGENT',
}, },
"mcpServer": { "mcpServers": [
"url": 'https://mcp.example.com', {
"auth": { "url": 'https://mcp.example.com',
"username": 'username', "auth": {
"password": 'password' "username": 'username',
"password": 'password'
}
} }
} ]
} }
]; ];
try { try {