You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/09/08 18:58:00 UTC
[jira] [Commented] (CAMEL-24352) camel-jbang - Serve ai-tool routes over the MCP stdio transport
[ https://issues.apache.org/jira/browse/CAMEL-24352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18112964#comment-18112964 ]
Claus Ibsen commented on CAMEL-24352:
-------------------------------------
Fixed via https://github.com/apache/camel/pull/26146 (merged as 963b900a0f9c0df061f0b717b7d8d92aa38b29f3).
_Claude Code on behalf of davsclaus_
> camel-jbang - Serve ai-tool routes over the MCP stdio transport
> ---------------------------------------------------------------
>
> Key: CAMEL-24352
> URL: https://issues.apache.org/jira/browse/CAMEL-24352
> Project: Camel
> Issue Type: Improvement
> Components: camel-ai, camel-jbang
> Reporter: Federico Mariani
> Assignee: Omar Atie
> Priority: Major
> Fix For: 4.23.0
>
>
> Follow-up to CAMEL-24308. Local coding agents and IDEs launch MCP servers as child processes speaking JSON-RPC over stdin/stdout (the {{"command": ...}} entry in an {{mcp.json}}). A developer should be able to register {{camel run tools.yaml}} that way and have the tagged {{ai-tool}} routes served as local tools — no port, no URL, process lifetime = session.
> The transport is nearly free: the MCP Java SDK ships {{StdioServerTransportProvider}}, so this is a thin engine variant behind the existing {{McpServerEngine}} SPI (e.g. a {{camel.server.mcp-transport=http|stdio}} option or a JBang flag such as {{--mcp-stdio}}), with the bridge unchanged.
> The actual work is stdout hygiene: in stdio mode stdout must carry only protocol frames, so JBang needs to route all logging, the banner and route-startup summaries to stderr (or a file) and suppress anything else printed to stdout.
> Spring Boot and Quarkus already document their stdio setups via their native MCP stacks (camel-mcp-server-starter / camel-quarkus-mcp-server usage docs); this issue covers Camel Main / JBang.
> _Filed by Claude Code on behalf of Federico Mariani_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)