davsclaus opened a new pull request, #26660: URL: https://github.com/apache/camel/pull/26660
## Description Two gaps met while an agent built an integration step by step through the camel-jbang-mcp server: - **`camel_run` started with the files of the moment.** It listed the directory's source files and passed them to `camel run`, so a file the agent added afterwards, a `beans.yaml`, a Java class under `src/main/java`, was not part of the app, and `restart` replayed the same list. With no files named, the tool now starts `camel run --source-dir=.` in the directory: the directory is watched, a changed or added file is reloaded in dev mode (with #26653, a directory created later as well), and a restart starts the same way. Naming files keeps the previous behaviour, for a directory that holds several apps. The result says `sourceDir: true` and the message says the directory is watched. - **`camel_control` had no reload.** It has stop, kill, restart, stop-routes, start-routes and reset-stats; the CLI has `camel cmd reload`, which writes the `reload` action the CLI connector hands to the reload strategy. A reload loads the routes again from their files without a restart: a changed stylesheet or a dropped data file takes effect, and a file consumed once is read again. The tool gets the same action, answered like reset-stats (the runtime writes no result for it; `camel_get_log` shows the routes reloaded summary). Live check through the tool code: `camel_run` on a directory started `camel run --source-dir=. --dev`, the `reload` action returned, `stop` stopped it; and with `camel cmd reload` on the same app, a file consumed once was read again after the reload. Tool descriptions, the MCP page's tool table and the upgrade guide updated. ## Tests `IntegrationLauncherTest.noFilesRunsTheDirectoryAsTheApp`: the `--source-dir=.` argument line with and without a name and extra arguments; the existing tests for the explicit file list unchanged. Launcher, authoring tools and tool registry tests (33) green, including the prompt budget test with the longer descriptions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj -- 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]
