This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch CAMEL-26298-mcp-stdio-startup
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/CAMEL-26298-mcp-stdio-startup 
by this push:
     new bf99669f7098 CAMEL-26298: camel-mcp-server - Test that stream:out 
stays out of the MCP stream
bf99669f7098 is described below

commit bf99669f70984a6857ef290c9302368182ca3eaf
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 2 09:49:56 2026 +0100

    CAMEL-26298: camel-mcp-server - Test that stream:out stays out of the MCP 
stream
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 components/camel-ai/camel-mcp-server/pom.xml                         | 5 +++++
 .../apache/camel/component/mcp/server/stdio/McpStdioHarnessMain.java | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/components/camel-ai/camel-mcp-server/pom.xml 
b/components/camel-ai/camel-mcp-server/pom.xml
index 2faf453d725a..eb827fc23b7c 100644
--- a/components/camel-ai/camel-mcp-server/pom.xml
+++ b/components/camel-ai/camel-mcp-server/pom.xml
@@ -95,6 +95,11 @@
             <artifactId>camel-openai</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-stream</artifactId>
+            <scope>test</scope>
+        </dependency>
         <dependency>
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-test-infra-ollama</artifactId>
diff --git 
a/components/camel-ai/camel-mcp-server/src/test/java/org/apache/camel/component/mcp/server/stdio/McpStdioHarnessMain.java
 
b/components/camel-ai/camel-mcp-server/src/test/java/org/apache/camel/component/mcp/server/stdio/McpStdioHarnessMain.java
index e84bc1530779..39b621ffe8e0 100644
--- 
a/components/camel-ai/camel-mcp-server/src/test/java/org/apache/camel/component/mcp/server/stdio/McpStdioHarnessMain.java
+++ 
b/components/camel-ai/camel-mcp-server/src/test/java/org/apache/camel/component/mcp/server/stdio/McpStdioHarnessMain.java
@@ -59,6 +59,8 @@ public final class McpStdioHarnessMain {
                 // writes to System.out, which in stdio mode must not reach 
the MCP stream
                 from("ai-tool:print_tool?tags=" + tags + "&description=Print 
to System.out")
                         .process(e -> System.out.println("printed by a route"))
+                        .setBody(constant("printed by stream:out"))
+                        .to("stream:out")
                         .setBody(constant("printed"));
 
                 from("ai-tool:hidden_tool?description=Untagged tool, must not 
be exposed")

Reply via email to