[ 
https://issues.apache.org/jira/browse/CAMEL-26686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151223#comment-18151223
 ] 

Serdar Gökay commented on CAMEL-26686:
--------------------------------------

Hi Federico, thanks for the answer. Understood: {{camel mcp}} stays a local 
development assistant, and we will not ask for it to accept connections from 
integrations.

h3. Why we do not run locally

* *Reach:* the systems the integrations talk to (SAP, databases, brokers) are 
reachable only from inside the cluster; the developer's laptop is not on that 
network.
* *Secrets:* the users and passwords of those systems live in the cluster as 
Secrets. Running locally would put the credentials of near-production systems 
on every developer's machine, and in the hands of the coding agent that runs 
there. We do not want that: the agent should be able to run the integration 
without ever seeing a password.
* *Shared work:* several people work on the same running integration.
* *Installation:* nothing is installed on the developer's machine (no JDK, no 
Camel CLI, no VPN).

h3. How we use it

{{camel run}} runs in the cluster as a container. The developer's agent 
connects over MCP and works on that running integration: validate a route, look 
at errors and the log, send a test message, fix, try again. What works for us 
today is one {{camel mcp}} over HTTP in the same pod as each integration. For 
that process the integration is local, so your model stays as it is. The cost 
is a second JVM per integration, which we can live with.

h3. Two questions

# Can we rely on that arrangement ({{camel mcp}} over HTTP next to the 
integration it serves), or is the HTTP transport likely to go away?
# Which other tools did you have in mind? If there is a better fit for an agent 
working on an integration in a cluster, we would rather use it than bend 
{{camel mcp}}.

The issue can be closed from our side once we know that.

_Claude Code on behalf of etzel-mes_

> camel-jbang-mcp - development against integrations that run on a server: can 
> camel mcp serve integrations that connect to it (CAMEL-25197)?
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-26686
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26686
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>    Affects Versions: 4.23.0
>            Reporter: Serdar Gökay
>            Assignee: Ramu
>            Priority: Major
>
> We develop integrations with coding agents, and we would like to ask whether 
> the way we do it is one the MCP server is meant to cover.
> h3. What we do and why
> The integrations do not run on the developer's machine. Each one runs as a 
> {{camel run}} container on a shared development server (a Kubernetes cluster 
> in our case), next to the systems it talks to: SAP, databases, brokers. A 
> laptop cannot reach those systems, several people work on the same running 
> integration, and nothing has to be installed on the developer's machine. The 
> developer's agent (Claude Code or another client) connects over MCP and works 
> on the running integration: validate, look at routes and errors, send a 
> message, read the log, fix and try again.
> The Camel CLI and {{camel mcp}} are built around the developer's own machine: 
> {{camel mcp}} finds integrations through the files in {{~/.camel}} and a 
> check of the pid, so it serves the integrations of its own machine. 
> CAMEL-25197 names this limit for tools in general ("no containers, dev 
> containers or remote dev clusters") and added the integration's side of a way 
> out.
> h3. Where we are stuck
> Both ways we found work on 4.23.0, and each has a cost:
> || Way || What we get || Cost ||
> | The embedded server of {{camel run}} (its mcp option), one in each 
> integration | No second process | 72 tools without hints, no resources, no 
> prompts, and one process selection shared by all sessions |
> | {{camel mcp}} over HTTP next to each integration, sharing its PID 
> namespace, {{~/.camel}} and source directory | The whole surface: 86 tools 
> with hints, resources and prompts. The tools find the integration with no 
> selector, and a restarted integration is found again | A second JVM for every 
> integration: about 145 MiB resident when idle, 300 to 330 MiB after a catalog 
> search (heaps of 128 to 256 MB) |
> What we would like is one {{camel mcp}} for the server, with the integrations 
> connecting to it.
> h3. Questions
> # Is development against integrations on a server a use that {{camel mcp}} is 
> meant to cover? Or are we looking at it with the wrong architecture, and 
> there is a better shape than the two above?
> # With CAMEL-25197 an integration can dial out to a developer tool 
> ({{camel.cli.transport=websocket}}). Is {{camel mcp}} accepting such 
> connections, and serving the connected integrations like local ones (listed 
> by {{camel_runtime_processes}}, selected by {{nameOrPid}}), on the roadmap? 
> We found nothing in camel-jbang that accepts them, at 4.23.0 or on main.
> # Is there a reason not to have it? The transport is for development only (it 
> refuses the prod profile and asks for a token), which fits our use.
> # If the embedded server is the intended way for an integration that is not 
> local, is it planned to serve the CLI server's surface there?
> If one of these fits, we would like to work on it, and we can test against 
> real containers.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to