[ 
https://issues.apache.org/jira/browse/CAMEL-24312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18101745#comment-18101745
 ] 

Federico Mariani commented on CAMEL-24312:
------------------------------------------

Merged via https://github.com/apache/camel/pull/25306. Delivered by the 
McpServerBridge in camel-mcp-server-api: tool listing/invocation via the 
AiToolRegistry listener SPI, tools/list_changed notifications, tag opt-in, 
collision refusal, timeout and error sanitization.

_Claude Code on behalf of Federico Mariani_

> MCP tool listing, invocation and notifications over AiToolRegistry
> ------------------------------------------------------------------
>
>                 Key: CAMEL-24312
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24312
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-ai
>            Reporter: Federico Mariani
>            Assignee: Federico Mariani
>            Priority: Major
>              Labels: ai, mcp
>             Fix For: 4.22.0
>
>
> Wire the MCP server to the ai-tool abstraction:
> * {{tools/list}}: expose tools whose tags intersect {{mcp-tags}}. Do NOT 
> implicitly expose the untagged default pool — external MCP clients are 
> untrusted senders; exposure must be explicit opt-in per tool.
> * Fail fast at startup (or refuse the tool with a loud warning) on tool name 
> collisions across the selected tags — MCP has a flat tool namespace, no 
> silent first-wins.
> * {{tools/call}}: invoke via {{AiToolExecutor}} on an exchange created from 
> the tool's consumer, with a per-call timeout. Map 
> {{AiToolResult.ArgumentError}} to isError=true with the validation message; 
> {{AiToolResult.ExecutionError}} to isError=true with a generic message only 
> (log the cause server-side, never leak raw route exception messages to remote 
> clients).
> * {{notifications/tools/list_changed}}: push on registry listener events.
> ----
> _This issue was drafted by Claude Code on behalf of Federico Mariani._



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to