Claus Ibsen created CAMEL-25424:
-----------------------------------
Summary: camel-jbang - MCP camel_control ignores the name of the
integration and acts on the selected one
Key: CAMEL-25424
URL: https://issues.apache.org/jira/browse/CAMEL-25424
Project: Camel
Issue Type: Bug
Components: camel-jbang
Reporter: Claus Ibsen
Fix For: 4.23.0
In the MCP server of the camel-jbang monitor (camel tui --mcp), the
camel_control tool documents a name parameter ("Integration name or pid
(default: the selected one, or the only one running)"), but
McpFacade.controlIntegration takes only the action and always acts on the
selected integration. With nothing selected it answers "Error: no integration
selected", even when a name or pid is given.
An agent that asks to stop or restart integration A while B is selected stops
or restarts B.
The name should be resolved (name or pid) and used; the selected integration
only when no name is given (and the only running one when nothing is selected),
as the description says.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)