davsclaus opened a new pull request, #30023:
URL: https://github.com/apache/camel/pull/30023

   JIRA: [CAMEL-26932](https://issues.apache.org/jira/browse/CAMEL-26932), item 
8 (second part).
   
   `camel mcp` always starts the MCP server with `jbang`. Without JBang, for 
example with the launcher installed from the zip, `ProcessBuilder.start` threw 
an `IOException`, which the CLI reports as an internal error: exit 70, with a 
23-line stack trace.
   
   It now exits with 1 and says what to do:
   
   ```
   ERROR: camel mcp runs the MCP server with JBang, which is not installed 
(Cannot run program "jbang": error=2, No such file or directory). Install JBang 
(https://www.jbang.dev), or run the server without it: java -jar 
camel-jbang-mcp-4.24.0-runner.jar (see the Camel MCP server documentation)
   ```
   
   The MCP server docs already describe running it with `java -jar` without 
JBang.
   
   Not in this PR: running the server without JBang from `camel mcp` itself 
(resolving the runner JAR with Maven), and the first part of item 8 
(`camel_run` outside the launcher starts the `camel` on PATH).
   
   Tests: `McpCommandTest` (the plugin's first test, with junit-jupiter and 
assertj as test dependencies).
   
   _Claude Code on behalf of davsclaus_
   
   🤖 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]

Reply via email to