You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "aldettinger (via GitHub)" <gi...@apache.org> on 2026/10/16 12:32:03 UTC
[I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
aldettinger opened a new issue, #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342
Problem
_camel-quarkus-mcp-server_ currently depends on _quarkus-mcp-server-http_, which forces the HTTP transport on all users and makes camel-quarkus responsible for CVEs in that transport layer. The extension code itself uses only types from _quarkus-mcp-server-core_ (ToolManager, ToolResponse, TextContent) — the HTTP dependency is a gratuitous coupling.
Design rationale
The upstream Camel _McpServerEngine_ SPI explicitly separates bridge (tool selection, execution, timeout) from transport. The _QuarkusMcpServerEngine_ is a "native engine" — it delegates to the quarkiverse ToolManager and returns consumesServingConfiguration() = false, meaning Camel's own serving configuration is ignored in favor of _quarkus.mcp.server.*_. The engine never touches transport; that is Quarkus's responsibility. Depending on _quarkus-mcp-server-core_ only aligns the dependency graph with this already-established contract.
Users choose their transport by adding _quarkus-mcp-server-http_, _quarkus-mcp-server-stdio_, or _quarkus-mcp-server-websocket_ to their own application POM — the same pattern Quarkus uses elsewhere (e.g. choosing a REST JSON provider).
Changes required
Extension runtime (extensions/mcp-server/runtime/pom.xml):
- Replace io.quarkiverse.mcp:quarkus-mcp-server-http with io.quarkiverse.mcp:quarkus-mcp-server-core
Extension deployment (extensions/mcp-server/deployment/pom.xml):
- Replace _io.quarkiverse.mcp:quarkus-mcp-server-http-deployment_ with _io.quarkiverse.mcp:quarkus-mcp-server-core-deployment_
Runtime BOM (poms/bom/pom.xml):
- Replace the two _quarkus-mcp-server-http_ / _quarkus-mcp-server-http-deployment_ entries with _quarkus-mcp-server-core_ / _quarkus-mcp-server-core-deployment_ (same version ${quarkiverse-mcp-server.version})
Integration tests (integration-tests/mcp-server/pom.xml):
- Add _io.quarkiverse.mcp:quarkus-mcp-server-http_ as a test-scope dependency (the test app needs a transport to run against; existing test code uses McpAssured.newStreamableClient() over HTTP)
Extension metadata (extensions/mcp-server/runtime/pom.xml description + quarkus-extension.yaml):
- Update description from "Expose ai-tool routes as MCP tools over streamable HTTP" to "Expose ai-tool routes as MCP tools" (transport is no longer prescribed)
- Run mvn -N cq:update-quarkus-metadata to regenerate quarkus-extension.yaml
No Java code changes needed — all imports already resolve against quarkus-mcp-server-core.
Verification
1. mvn clean install -pl extensions/mcp-server/runtime,extensions/mcp-server/deployment -am -Dquickly — compiles successfully
2. mvn verify -pl integration-tests/mcp-server — JVM tests pass
3. mvn verify -pl integration-tests/mcp-server -Dnative — native tests pass
The documentation would probably need updates. Not sure it still make sense to document dual transport support if we adopt this architecture.
--
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: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "aldettinger (via GitHub)" <gi...@apache.org>.
aldettinger commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6215586849
@JiriOndrusek @jamesnetherton In case you have time to take a look and give advice about a potential architectural change for the future.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "aldettinger (via GitHub) via commits" <co...@camel.apache.org>.
aldettinger commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-7350306095
## Where this stands
**For users today:** adding `camel-quarkus-mcp-server` always starts an HTTP server. If you want stdio only — the shape every desktop client and IDE uses, launching the server as a subprocess — there is no clean way out. `quarkus.mcp.server.http.enabled=false` turns off the `/mcp` endpoint but leaves `quarkus-vertx-http` binding a port; Maven exclusions work but are fragile. Several MCP subprocesses on one laptop then contend for 8080.
That is the main user-facing reason to go core-only, and it lands where CQ is strongest: a subprocess-launched server pays its boot cost on *every* spawn, which is exactly what a native binary is for.
**Cost for users:** existing apps keep compiling, boot fine, and return 404 — silently. Mitigation: a CQ build-time warning when no transport is on the classpath. 4.0.0 already forces a POM revisit for Quarkus 4, so the extra dependency rides along in a migration guide people are already reading. If not now, realistically never.
**Transport facts, checked with upstream:**
- Multiple transports *are* supported; quarkiverse is adding a "Combining STDIO with Other Transports" guide section.
- But EOF on stdin shuts the whole process down, by spec and by design — so stdio+HTTP is a dev-machine combo, not something you deploy. Our docs should say so.
- No transport produces no upstream warning, and they are not adding one. Hence the CQ-side check.
**Architecture (secondary):** the extension uses only `io.quarkiverse.mcp.server.*` types, all in core — no Java changes. Dropping the transport dep also removes CQ from the triage path for every `-http`/`-stdio`/`-websocket` CVE (patching was never ours; assessment is).
*Investigated with Claude Opus 5 (Claude Code); findings verified against quarkus-mcp-server 2.1.0 and the upstream issue tracker, and reviewed by me.*
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "jiriOndrusek-agent (via GitHub)" <gi...@apache.org>.
jiriOndrusek-agent commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6412010042
Related: our own `extensions/mcp-server/runtime/src/main/doc/usage.adoc` ("Serving over stdio") currently says that with the stdio transport added, "the same Camel tools are then served over both transports". As part of this issue, I'd reword that section to "use one transport" (add stdio and disable HTTP), and drop the "both at once" statement until quarkus-mcp-server confirms it's supported.
_Generated with [Claude Code](https://claude.com/claude-code) on behalf of @JiriOndrusek_
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "aldettinger (via GitHub)" <gi...@apache.org>.
aldettinger commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6220635295
Overkill probably, quarkus could add/remove transports as they like, we shouldn't be on the hook for every change.
Maybe it would be possible to have a no transport extensive tests. And a simple test project with http transport with a nominal case, like only to prove the assembling is working...
We are on par with the CVE story.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "jamesnetherton (via GitHub) via commits" <co...@camel.apache.org>.
jamesnetherton commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-7381080253
Some additional thoughts that came to my mind on this:
1. With this proposed change we loose consistency with plain Camel and Spring Boot apps. Both provide a transport OOTB.
2. General UX - if someone prototypes an app using the Camel CLI, everything works because the HTTP transport will be enabled. Afterwards, the user exports as a Quarkus app and the app will stop working initially until a transport dep is added.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "aldettinger (via GitHub)" <gi...@apache.org>.
aldettinger commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6411581588
@JiriOndrusek Many thanks for inputs.
> HTTP + stdio together is a documented setup
Is it documented only in camel-quarkus or also elsewhere ? Up to now, I feel like switching easily from a transport to another is architecturally safe. However, I've not yet found clear evidence that running multiple transport simultaneously in the same app is a supported setup. I'm probably missing a link to a quarkus doc or mcp spec somewhere.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "jiriOndrusek-agent (via GitHub)" <gi...@apache.org>.
jiriOndrusek-agent commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6411963675
> HTTP + stdio together is a documented setup
You're right, I overstated it. The only doc I found is our own camel-quarkus `usage.adoc` ("Serving over stdio"). quarkus-mcp-server doesn't document running several transports at once, and I found nothing in the MCP spec suggesting it either.
So I agree with your proposal: 0 → warn, 1 → ok, 2+ → error, unless we find something showing that multiple transports are supported.
_Generated with [Claude Code](https://claude.com/claude-code) on behalf of @JiriOndrusek_
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "aldettinger (via GitHub)" <gi...@apache.org>.
aldettinger commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6412084554
Yes, camel-quarkus is probably over-committing beyond its responsibility with this doc statement. We should probably reword the doc to be more neutral. I think there is also Spring mentioned if I remember well, that too could be removed. And maybe it's even probably to be done in 3.40 and main.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "aldettinger (via GitHub) via commits" <co...@camel.apache.org>.
aldettinger commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-7383377656
Yes, we discussed the case with @zbendhiba that stdio only app make sense.
About Camel JBang we were proposing to flag a warn that no transport is available (quarkus-mcp-server won't do this).
These could have ecosystem level impacts that need to be discussed.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "aldettinger (via GitHub)" <gi...@apache.org>.
aldettinger commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6337121436
> Add build time checks?
>
> Should we warn or fail at build time when no transport is present? Without it, an app with only our extension starts but can't be reached.
Checking the available transports cardinality should probably be done at quarkus level:
- 0 Is warn ?
- 1 Is ok
- 2+ An error ?
Let's remind to check whether/how it is implemented on quarkus side.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "JiriOndrusek (via GitHub)" <gi...@apache.org>.
JiriOndrusek commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6494492658
Let me reword one claim:
> Q: Do we actually know whether the non-http transports work with our extensions?
~~Yes, stdio on JVM with the extension on core only: initialize, tools/list, tools/call and list_changed work. Native stdio isn't tested.~~
Partly. A one-off manual stdio session on JVM with the extension on core only was reported to handle initialize, tools/list, tools/call and list_changed, but there are no automated tests for it, and native stdio isn't tested
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "jiriOndrusek-agent (via GitHub)" <gi...@apache.org>.
jiriOndrusek-agent commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6364300196
+1 to the proposal. A few points that aren't in the thread yet:
- **Quarkus-level check:** quarkus-mcp-server doesn't implement it (checked 2.0.3, 2.1.0.Beta1 and main). An app without a transport starts silently and `/mcp` returns 404. 0 → warn makes sense, but 2+ shouldn't be an error: HTTP + stdio together is a documented setup. I'd propose the warning upstream rather than adding our own check.
- **Non-HTTP transports work:** stdio on JVM, with the extension on core only, handles `initialize`, `tools/list`, `tools/call` and `list_changed`. Native stdio isn't tested.
- **`integration-tests/openai`** also relies on the transitive HTTP transport, so it needs `-http` in compile scope like `integration-tests/mcp-server`.
- **Camel JBang `export --runtime=quarkus`:** exported apps would lose the transport, which needs a follow-up on the Camel side.
- **Scope:** main / 4.0.0 only, no 3.40.x backport. The MCP ITs are skipped on main (#9362), so this needs to be verified on a pre-Quarkus-4 base.
_Generated with [Claude Code](https://claude.com/claude-code) on behalf of @JiriOndrusek_
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6216007938
Also FWIW - I think the CVE impact is overstated. If there's a CVE anywhere in quarkus-mcp-server, the project will get updated for us in the Quarkus Platforn. It wouldn't require CQ to release (unless there was some kind of major breaking change).
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6217175576
> Having itests for each transports
I'm not sure if it's overkill or not? WDYT?
We could perhaps have some minimal coverage for popular transports like stdio & http.
> A CVE related to quarkus-mcp-server-core would make us bound to analyze impact in cq while probably a quarkus-mcp-server-* transport CVE would not ?
Yes, we'd have to asses the impact.
But my point was *any* CVE in quarkus-mcp-server would not be our responsibility to fix and patch. We'd eventually bump to a patched version in this project, but the actual version that users see, comes from the Quarkus Platform. i.e. we'll get patches for 'free' by way of a quarkus-mcp-server version bump in the platform.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6215940984
I think the proposal makes sense. Some minor corrections / additions:
**Integration tests**
Add the HTTP transport as a normal compile scope dependency, not test scope. Otherwise the native tests are built without a transport.
**Add build time checks?**
Should we warn or fail at build time when no transport is present? Without it, an app with only our extension starts but can't be reached.
**Docs**
Docs and migration: add something like a "choose a transport" section to usage.adoc and a 4.0 migration note saying to add quarkus-mcp-server-http to keep the current behaviour.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "aldettinger (via GitHub)" <gi...@apache.org>.
aldettinger commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-6216881572
@jamesnetherton Many thanks for constructive insights 👍
> Do we actually know whether the non-http transports work with our extensions? I forget how everything works but maybe having the http transport as a explicit dependency was a deliberate choice.
This is the central question, quarkus looks to be designed that way. And if the camel abstractions matches their intent to be transport agnostic, then it should be fine. This also raises the question of having non transport related itests or the opposite having itests for each transports. If I remember well, there is a kind of quarkus-mcp-server-core-helper or alike.
> Also FWIW - I think the CVE impact is overstated. If there's a CVE anywhere in quarkus-mcp-server, the project will get updated for us in the Quarkus Platforn. It wouldn't require CQ to release (unless there was some kind of major breaking change).
A CVE related to quarkus-mcp-server-core would make us bound to analyze impact in cq while probably a quarkus-mcp-server-* transport CVE would not ?
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Decouple camel-quarkus-mcp-server from quarkus-mcp-server-http — depend on core only [camel-quarkus]
Posted by "aldettinger (via GitHub) via commits" <co...@camel.apache.org>.
aldettinger commented on issue #9342:
URL: https://github.com/apache/camel-quarkus/issues/9342#issuecomment-7216016800
Checked the open transport questions with the quarkus-mcp-server folk.
**No transport.** Dropping the `0 → warn` idea, both in CQ and as an upstream proposal.
**Multiple transports.** Confirmed as a supported setup — see https://github.com/quarkiverse/quarkus-mcp-server/issues/192#issuecomment-2785323098. Dropping the `2+ → error` idea.
Caveats found while testing stdio + HTTP together, filed upstream:
- quarkiverse/quarkus-mcp-server#1175
- quarkiverse/quarkus-mcp-server#1176
Plus, by design, stdio takes over `System.out` — worth knowing for `stream:out` and any `println` in a route.
**Conclusion.** quarkus-mcp-server does not constrain the design here — no transport, one transport and several transports are intended to work. Camel Quarkus is free to choose, and the core-only dependency with a user-chosen transport remains a possibility.
*Investigated with Claude Opus 5 (Claude Code); findings reproduced locally and reviewed by me.*
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org