This is an automated email from the ASF dual-hosted git repository.

luigidemasi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kit.git

commit 33b6f9ce5799cd5c7d8044ae62a477977e16f57a
Author: Luigi De Masi <[email protected]>
AuthorDate: Thu Nov 26 15:02:31 2026 +0100

    Fix #195: Use the corrected Camel MCP runner for development
    
    Use Camel MCP 4.22.3-SNAPSHOT and select Quarkus platform 3.27.4 for
    Camel 4.14.7. Document the catalog results for the tested snapshot and
    keep the runner independent of the application version in both examples.
    
    Apply the existing release-version policy to the MCP runner before Kit
    staging. Development builds accept the snapshot.
    
    Co-authored-by: OpenAI Codex <[email protected]>
---
 CHANGELOG.md                                       |  3 +-
 distribution.properties                            |  4 +--
 docs/antora.yml                                    |  1 +
 docs/modules/ROOT/pages/contributing.adoc          |  5 +--
 docs/modules/ROOT/pages/getting-started.adoc       |  2 +-
 docs/modules/ROOT/pages/mcp.adoc                   | 38 ++++++++++++----------
 docs/releasing.md                                  |  4 ++-
 docs/security-model.md                             |  3 +-
 docs/security-model.yaml                           |  2 +-
 kit/README.md                                      |  2 +-
 .../kit/generator/ResourceConsistencyTest.java     | 13 ++++++++
 tools/release_target.py                            |  6 +++-
 tools/test_release_target.py                       | 15 +++++++--
 13 files changed, 67 insertions(+), 31 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index ef437252..6f371248 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,7 +15,8 @@ and this project adheres to [Semantic 
Versioning](https://semver.org/spec/v2.0.0
   catalog evidence. Spring Boot templates import the application starter, 
Camel core and framework BOMs. Existing
   projects resolve inherited BOM properties per module and can recover a 
transitive core from Maven's dependency tree.
   The workflow checks the configured runner before design approval. A core 
mismatch reports INCOMPLETE.
-  The MCP reference records the affected combinations for runner 4.22.1, 
including default Quarkus (#195).
+  The development distribution uses the Camel MCP 4.22.3-SNAPSHOT runner and 
maps Camel 4.14.7 to Quarkus
+  platform 3.27.4. The catalog check passes for all six shipped community 
targets (#195).
 
 - Graph files now use format 1.1. CLI output such as `graph stats` reports 
namespaced types
   (for example `mule:flow`). Existing 1.0 graphs and legacy filters remain 
readable.
diff --git a/distribution.properties b/distribution.properties
index 07c68ce3..f29a0597 100644
--- a/distribution.properties
+++ b/distribution.properties
@@ -40,7 +40,7 @@ camel.quarkus.supported=4.18.3,4.14.7
 #
 # Maps each supported Camel Quarkus version to its Quarkus platform BOM 
version.
 quarkus.platform.4.18.3=3.33.3.2
-quarkus.platform.4.14.7=3.27.3
+quarkus.platform.4.14.7=3.27.4
 
 # ─── Spring Boot Framework Mapping ─────────────────────────────────────────
 #
@@ -50,7 +50,7 @@ spring.boot.4.22.1=4.1.1
 spring.boot.4.18.4=3.5.16
 
 # ─── MCP Server Versions ───────────────────────────────────────────────────
-camel.mcp.version=4.22.1
+camel.mcp.version=4.22.3-SNAPSHOT
 knowledge.mcp.group-id=io.github.luigidemasi
 knowledge.mcp.version=0.0.2
 citrus.version=5.0.1
diff --git a/docs/antora.yml b/docs/antora.yml
index daaa6530..65015230 100644
--- a/docs/antora.yml
+++ b/docs/antora.yml
@@ -29,6 +29,7 @@ asciidoc:
     camel-kit-snapshot-version: 0.4.2-SNAPSHOT
     camel-kit-knowledge-version: 0.0.2
     camel-version: 4.22.1
+    camel-mcp-version: 4.22.3-SNAPSHOT
     camel-cli-version: 4.24.0-SNAPSHOT
     camel-quarkus-version: 4.18.3
     quarkus-platform-version: 3.33.3.2
diff --git a/docs/modules/ROOT/pages/contributing.adoc 
b/docs/modules/ROOT/pages/contributing.adoc
index a572347a..a3c9eef2 100644
--- a/docs/modules/ROOT/pages/contributing.adoc
+++ b/docs/modules/ROOT/pages/contributing.adoc
@@ -387,8 +387,9 @@ tests read, and `docs/user-guide.md`; keep them in step 
with these pages when be
 
 The shared parent, Kit and Knowledge have independent versions and release 
schedules.
 A product release references a published, released shared parent. All release 
jobs use Java 21.
-Kit release validation also requires a released `camel.cli.version` and a 
synchronized Maven mirror;
-snapshot and prerelease host pins cannot be staged. Verify the released 
Aesh-based host with the CLI compatibility suite. Use the corresponding
+Kit release validation requires released versions for `camel.cli.version` and 
`camel.mcp.version`, plus a
+synchronized Maven mirror for the CLI host. Verify the released host with the 
CLI compatibility suite and
+the MCP runner with the shipped target profiles. Use the corresponding
 POM (`pom.xml` with `-N`, `kit/pom.xml`, or `knowledge/pom.xml`) when 
preparing or staging a
 release; never deploy the root reactor to release one product.
 
diff --git a/docs/modules/ROOT/pages/getting-started.adoc 
b/docs/modules/ROOT/pages/getting-started.adoc
index 5a0c9e09..0ba1a02d 100644
--- a/docs/modules/ROOT/pages/getting-started.adoc
+++ b/docs/modules/ROOT/pages/getting-started.adoc
@@ -177,7 +177,7 @@ installation again. From the project root, preview the 
upgrade with `camel-kit i
 then use `--force` to apply it. Review any preserved skills, guides or 
commands using the procedure in <<existing-project>>.
 
 From 0.4.0::
-Camel Main, Camel Spring Boot and Camel MCP default to Camel {camel-version}; 
the supported older LTS patch is
+In Kit 0.4.1, Camel Main, Camel Spring Boot and Camel MCP default to Camel 
4.22.1; the supported older LTS patch is
 4.18.4. Spring Boot uses 4.1.1. Camel {camel-version} maps to Forage 1.6.1. 
Version {camel-kit-version} also updates
 the shared generation and review guidance to prefer verified declarative bean 
construction after Forage and component
 configuration (see xref:forage.adoc[]), and Knowledge MCP 
{camel-kit-knowledge-version} validates endpoints against
diff --git a/docs/modules/ROOT/pages/mcp.adoc b/docs/modules/ROOT/pages/mcp.adoc
index fa391dd1..7fc5820e 100644
--- a/docs/modules/ROOT/pages/mcp.adoc
+++ b/docs/modules/ROOT/pages/mcp.adoc
@@ -23,11 +23,11 @@ configured repositories.
 | The Citrus action and endpoint catalogs, the YAML DSL schema and the 
test-authoring guidance used by `camel-test`
 |===
 
-The JBang runner coordinates of this release:
+The development distribution configures these JBang runner coordinates.
 
 [subs="attributes+"]
 ----
-camel            org.apache.camel:camel-jbang-mcp:{camel-version}:runner
+camel            org.apache.camel:camel-jbang-mcp:{camel-mcp-version}:runner
 camel-knowledge  
io.github.luigidemasi:camel-kit-knowledge-mcp:{camel-kit-knowledge-version}:runner
 citrus           org.citrusframework:citrus-mcp-server:{citrus-version}:runner
 ----
@@ -45,7 +45,7 @@ The generated configuration is, in the target's JSON or TOML 
shape:
         "-Dcamel.catalog.repos=<configured catalog repositories>",
         "-Dquarkus.log.level=WARN",
         "-Dquarkus.http.port=-1",
-        "org.apache.camel:camel-jbang-mcp:{camel-version}:runner"
+        "org.apache.camel:camel-jbang-mcp:{camel-mcp-version}:runner"
       ]
     }
   }
@@ -92,29 +92,33 @@ For behaviour questions — YAML shape, runtime 
configuration, version changes,
 the catalog with documentation search; catalog tools (`camel_catalog_*`) 
remain on `camel`.
 
 The current defaults are Camel {camel-version} for Camel Main and Spring Boot, 
with Camel {camel-quarkus-version}
-on the Quarkus platform {quarkus-platform-version}; the catalog server 
artifact follows the Camel Main stream.
+on Quarkus platform {quarkus-platform-version}. The distribution sets the 
catalog runner independently with
+`camel.mcp.version`.
 
 [[catalog-compatibility]]
 === Catalog results for the tested runner
 
-These results were measured with Camel MCP 4.22.1 and the community targets 
listed below. The default
-Quarkus platform in that distribution was 3.33.3.2. The runner can return the 
selected starter or extension
-alongside its bundled core.
+The development distribution uses Apache's snapshot repository for the Camel 
MCP runner. The table records
+catalog checks against snapshot build `4.22.3-20261125.143528-32`. Each check 
verified both the returned
+Camel core and the version of the runtime's timer artifact.
 
-[cols="1,1,1,2",options="header"]
+[cols="1,2,1,1",options="header"]
 |===
-|Runtime |Requested core |Returned core |Required catalog check
-|Main |4.22.1 or 4.18.4 |Matches requested core |Pass
+|Runtime |Application BOM version |Requested and returned Camel core |Check
+|Main |None |4.22.1 |Pass
+|Main |None |4.18.4 |Pass
 |Spring Boot |4.22.1 |4.22.1 |Pass
-|Spring Boot |4.18.4 |4.22.1 |Incomplete
-|Quarkus |4.18.3 |4.22.1 |Incomplete (platform 3.33.3.2)
-|Quarkus |4.14.7 |4.22.1 |Incomplete (platform 3.27.3)
+|Spring Boot |4.18.4 |4.18.4 |Pass
+|Quarkus (default) |3.33.3.2 |4.18.3 |Pass
+|Quarkus |3.27.4 |4.14.7 |Pass
 |===
 
-The check applies to greenfield designs, existing applications and migrations. 
On an affected row the workflow
-cannot complete a design that requires verified catalog artifacts. The 
selected application version is preserved.
-For a different runner or platform, verify the actual responses. See the
-xref:existing-project.adoc#catalog-limitation[runtime catalog limitation].
+The Red Hat Spring Boot example with starter BOM `4.14.4.redhat-00010` 
resolved core `4.14.4.redhat-00008`
+in Maven. The tested runner returned its bundled `4.22.3-SNAPSHOT` core, so 
its catalog check was `INCOMPLETE`.
+
+The check applies to greenfield designs, existing applications and migrations. 
Snapshot contents can change.
+Verify the actual responses for the configured runner and target before using 
catalog evidence in a design.
+See the xref:existing-project.adoc#catalog-limitation[runtime catalog 
limitation].
 
 [[camel-tools]]
 == The Camel catalog server
diff --git a/docs/releasing.md b/docs/releasing.md
index 0f4047eb..1a001fca 100644
--- a/docs/releasing.md
+++ b/docs/releasing.md
@@ -21,7 +21,9 @@ Use JDK 21 or later for every release target; the release and 
snapshot workflows
 Kit release validation rejects snapshot, timestamped snapshot, and prerelease 
Camel CLI host pins.
 Set `camel.cli.version` in `distribution.properties` to a tested released 
Aesh-based Camel host
 (4.24.0 or later), synchronize the Maven mirror, and run the hosted 
compatibility suite before staging.
-Development builds may use the snapshot host. Generated integration pins are 
independent.
+Development builds may use snapshot versions of the host and the Camel MCP 
runner. Before staging Kit, set
+`camel.mcp.version` to the tested release in Maven Central and update 
`camel-mcp-version` in `docs/antora.yml`.
+Verify the shipped runtime profiles with that runner. Generated integration 
pins are independent.
 
 1. Start from reviewed source on a release branch. Change only the selected 
product
    POM version and its child parent versions (or only the root version for a 
parent
diff --git a/docs/security-model.md b/docs/security-model.md
index 22d756bf..536a3a7d 100644
--- a/docs/security-model.md
+++ b/docs/security-model.md
@@ -800,7 +800,8 @@ This is the most important section for a developer adopting 
Camel-Kit and for an
   `central_snap` entries in the default repository lists or for the 
development JBang alias *(documented — README
   "Release channels")*. Snapshots are retained for development with their 
mutability documented; release defaults
   pin released versions; "snapshot mutability does not waive any other 
security control" *(maintainer, 2026-10-27 —
-  Q4)*.
+  Q4)*. The development Camel MCP runner uses an Apache snapshot. Kit release 
validation requires
+  `camel.mcp.version` to have a release version before staging.
 - **Validation of generated routes is a quality gate, not a security audit.** 
The five security-checklist rules
   (no hardcoded credentials, TLS everywhere, no sensitive data in logs, input 
validation at every external ingress,
   authentication on external endpoints) all fail validation when violated 
*(documented —
diff --git a/docs/security-model.yaml b/docs/security-model.yaml
index 91b45097..724b7a92 100644
--- a/docs/security-model.yaml
+++ b/docs/security-model.yaml
@@ -220,7 +220,7 @@ configuration_variants:
     stance: ruled 2026-10-27 - the Claude wildcard pre-approval is NOT the 
accepted posture; accepted posture is explicit grants aligned with the manifest 
allowed_tools, verified in the generated behaviour (V3). Implemented by V3; old 
workspaces require regeneration; see security-verification.md.
   - knob: camel.mcp.repos, knowledge.mcp.repos, citrus.mcp.repos, 
camel.catalog.repos, JBang //REPOS
     default: Maven Central, ASF public, ASF snapshots, Central snapshots
-    effect: Snapshot repositories serve mutable artifacts.
+    effect: Snapshot repositories serve mutable artifacts, including the 
development Camel MCP runner. Kit release validation requires a release version 
for camel.mcp.version.
     security_relevant: true
     stance: ruled 2026-10-27 - snapshots retained for development with their 
mutability documented; release defaults pin released versions; snapshot 
mutability waives no other control
   - knob: knowledge.mcp.group-id / knowledge.mcp.version (Kit's pin of the 
Knowledge server)
diff --git a/kit/README.md b/kit/README.md
index a65257bf..867dd696 100644
--- a/kit/README.md
+++ b/kit/README.md
@@ -125,7 +125,7 @@ targets are replaced by `bob2` (the default) and 
`antigravity`; see the
 
 ### Upgrade from 0.4.0
 
-Camel Main, Camel Spring Boot, and Camel MCP now default to `4.22.1`; the 
supported
+In Kit `0.4.1`, Camel Main, Camel Spring Boot, and Camel MCP default to 
`4.22.1`; the supported
 older LTS patch remains `4.18.4`. Spring Boot uses `4.1.1`, matching the 
published Camel
 Spring Boot release. Quarkus retains its independently aligned platform 
versions.
 Camel `4.22.1` maps to Forage `1.6.1`, including its InfluxDB 1 and 2 client 
factories for
diff --git 
a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ResourceConsistencyTest.java
 
b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ResourceConsistencyTest.java
index 4421dca1..e9b97ae2 100644
--- 
a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ResourceConsistencyTest.java
+++ 
b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ResourceConsistencyTest.java
@@ -178,6 +178,19 @@ class ResourceConsistencyTest {
                 
.contains("org.apache.maven.plugins:maven-dependency-plugin:{maven-dependency-plugin-version}:tree"));
     }
 
+    @Test
+    void websiteUsesTheBundledCamelMcpRunnerInItsLauncherExamples() throws 
IOException {
+        Path docs = repositoryRoot().resolve("docs");
+        String version = DistributionConfig.loadBundled().camelMcpVersion();
+        
assertTrue(Files.readAllLines(docs.resolve("antora.yml")).stream().map(String::strip)
+                .anyMatch(("camel-mcp-version: " + version)::equals));
+        String page = 
Files.readString(docs.resolve("modules/ROOT/pages/mcp.adoc"));
+        String coordinate = "org.apache.camel:camel-jbang-mcp:";
+        assertTrue(page.contains(coordinate));
+        assertTrue(page.lines().filter(line -> line.contains(coordinate))
+                .allMatch(line -> line.contains(coordinate + 
"{camel-mcp-version}:runner")));
+    }
+
     @Test
     void catalogGuidesUseDistributionVersionsOrObservedResults() throws 
IOException {
         Path skills = 
repositoryRoot().resolve("kit/camel-kit-core/src/main/resources/skills");
diff --git a/tools/release_target.py b/tools/release_target.py
index 5d9292ba..f7f403fa 100644
--- a/tools/release_target.py
+++ b/tools/release_target.py
@@ -47,12 +47,16 @@ def validate(root, target, tag=None, snapshot=False):
                     or child.findtext(NS + "version", version) != version):
                 raise ValueError(f"{child_path}: module and product versions 
must match {version}")
     if target == "kit" and not snapshot:
-        host = load_properties(root / 
"distribution.properties").get("camel.cli.version", "")
+        distribution = load_properties(root / "distribution.properties")
+        host = distribution.get("camel.cli.version", "")
         if (not re.fullmatch(r"[0-9]+\.[0-9]+\.[0-9]+", host)
                 or tuple(map(int, host.split("."))) < (4, 24, 0)):
             raise ValueError(f"A released Camel CLI host 4.24.0 or newer is 
required, got {host!r}")
         if pom.findtext(f"{NS}properties/{NS}camel.cli.version") != host:
             raise ValueError("Synchronize the Camel CLI host version in 
kit/pom.xml before releasing")
+        runner = distribution.get("camel.mcp.version", "")
+        if not re.fullmatch(r"[0-9]+\.[0-9]+\.[0-9]+", runner):
+            raise ValueError(f"A released Camel MCP runner is required for 
camel.mcp.version, got {runner!r}")
     return version, list(arguments)
 
 
diff --git a/tools/test_release_target.py b/tools/test_release_target.py
index 15feef61..6622fec2 100644
--- a/tools/test_release_target.py
+++ b/tools/test_release_target.py
@@ -13,7 +13,7 @@ class ReleaseTargetTest(unittest.TestCase):
         self.tmp = tempfile.TemporaryDirectory()
         self.addCleanup(self.tmp.cleanup)
         self.root = Path(self.tmp.name)
-        (self.root / 
"distribution.properties").write_text("camel.cli.version=4.24.0\n")
+        (self.root / 
"distribution.properties").write_text("camel.cli.version=4.24.0\ncamel.mcp.version=4.22.3\n")
         self.pom("pom.xml", "camel-kit-parent", "1.0.0", modules=["kit", 
"knowledge"])
         self.pom("kit/pom.xml", "camel-kit", "0.4.2", "camel-kit-parent", 
"1.0.0", ["core"])
         self.pom("kit/core/pom.xml", "camel-kit-core", None, "camel-kit", 
"0.4.2")
@@ -48,8 +48,17 @@ class ReleaseTargetTest(unittest.TestCase):
                 with self.assertRaisesRegex(ValueError, "released Camel CLI 
host"):
                     validate(self.root, "kit", "camel-kit-0.4.2")
 
-    def test_host_snapshot_is_allowed_for_development_and_other_products(self):
-        (self.root / 
"distribution.properties").write_text("camel.cli.version=4.24.0-SNAPSHOT\n")
+    def test_kit_release_requires_a_release_version_for_the_mcp_runner(self):
+        for version in ("", "4.22.3-SNAPSHOT", "4.22.3-20261125.143528-32", 
"4.22.3-RC1"):
+            with self.subTest(version=version):
+                (self.root / "distribution.properties").write_text(
+                    f"camel.cli.version=4.24.0\ncamel.mcp.version={version}\n")
+                with self.assertRaisesRegex(ValueError, "released Camel MCP 
runner"):
+                    validate(self.root, "kit", "camel-kit-0.4.2")
+
+    def 
test_snapshot_pins_are_allowed_for_development_and_other_products(self):
+        (self.root / "distribution.properties").write_text(
+            
"camel.cli.version=4.24.0-SNAPSHOT\ncamel.mcp.version=4.22.3-SNAPSHOT\n")
         self.pom("kit/pom.xml", "camel-kit", "0.4.2-SNAPSHOT", 
"camel-kit-parent", "1.0.0", ["core"])
         self.pom("kit/core/pom.xml", "camel-kit-core", None, "camel-kit", 
"0.4.2-SNAPSHOT")
         self.assertEqual("0.4.2-SNAPSHOT", validate(self.root, "kit", 
snapshot=True)[0])

Reply via email to