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

View File

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