davsclaus opened a new pull request, #3405: URL: https://github.com/apache/camel-kamelets/pull/3405
`AiToolIT.aiTool()` (`ai-tool-source-mcp-test`) has failed on main in Integration Tests group 3 since 2026-11-27, for example run 46259526567. ## Cause [CAMEL-27516](https://issues.apache.org/jira/browse/CAMEL-27516) (apache/camel#30764, merged 2026-11-26) changed how the MCP server answers a tool call that the `allowedRoles` / `authorizationPolicy` check refuses. The result now carries a mark in its `_meta`, so a client can tell a refusal apart from a tool error. The text and `isError` are unchanged: ``` {"jsonrpc":"2.0","id":6,"result":{"content":[{"type":"text","text":"Access denied: not authorized to call tool 'pay_invoice'"}],"isError":true,"_meta":{"org.apache.camel/authorization":"denied"}}} ``` The refusal step of the test expected the result to end right after `"isError":true}}`, so it no longer matched. The Kamelet itself is unaffected. ## Fix The refusal step (`id 6`, a caller without a login calling `pay_invoice`, which has `allowedRoles: finance`) now expects `"isError":true,"_meta":{"org.apache.camel/authorization":"denied"}}}`. So the test also covers the new mark, instead of just tolerating it. ## Testing `mvn verify -Dtest=AiToolIT` in `tests/camel-kamelets-itest`, against a local Camel 4.24.0-SNAPSHOT that includes CAMEL-27516: `ai-tool-source-mcp-test` passes. `ai-tool-source` is new in 4.24 and isn't on the `4.22.x` / `4.18.x` branches, so there's nothing to backport. Together with #3404 (the `debezium-sqlserver` test), this should make the integration tests on main green again. _Claude Code on behalf of Claus Ibsen_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
