Skip to content

Commit 6953d4d

Browse files
test(openapi): include advanced MCP agent tool
1 parent 13b9d07 commit 6953d4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/openapi/documents.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ describe('generated OpenAPI documents', () => {
307307
)
308308
})
309309

310-
it('publishes Agent tools as named integration, custom, and MCP schemas', () => {
310+
it('publishes Agent tools as integration, custom, MCP tool, and advanced MCP schemas', () => {
311311
const workflowsSpec = generatedDocument(workflowsOpenApiDocument)
312312
const schemas = (workflowsSpec.components as JsonObject).schemas as JsonObject
313313
const agentToolInput = schemas.AgentToolInput as JsonObject
@@ -332,6 +332,7 @@ describe('generated OpenAPI documents', () => {
332332
{ $ref: '#/components/schemas/AgentIntegrationTool' },
333333
{ $ref: '#/components/schemas/AgentCustomTool' },
334334
{ $ref: '#/components/schemas/AgentMcpTool' },
335+
{ $ref: '#/components/schemas/AgentMcpServerAdvanced' },
335336
])
336337
expect(agentToolInput).toEqual(
337338
expect.objectContaining({ type: 'array', maxItems: MAX_AGENT_TOOLS_PER_BLOCK })

0 commit comments

Comments
 (0)