Skip to content

Commit 2067026

Browse files
authored
CAMEL-23134 - Camel-jbang-mcp: Add camel_dependency_check MCP tool for dependency hygiene (#21724)
Add a new DependencyCheckTools MCP tool that analyzes a project's pom.xml and optional route definitions to detect outdated Camel versions, missing Maven dependencies for components used in routes, and version conflicts between the Camel BOM and explicit dependency overrides. Returns actionable recommendations with corrected Maven dependency snippets. Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
1 parent 6c8838e commit 2067026

3 files changed

Lines changed: 853 additions & 1 deletion

File tree

docs/user-manual/modules/ROOT/pages/camel-jbang-mcp.adoc

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ By default, the HTTP server is disabled. To enable it, set `quarkus.http.host-en
2424

2525
== Available Tools
2626

27-
The server exposes 25 tools organized into nine functional areas, plus 3 prompts that provide structured
27+
The server exposes 26 tools organized into ten functional areas, plus 3 prompts that provide structured
2828
multi-step workflows.
2929

3030
=== Catalog Exploration
@@ -113,6 +113,19 @@ multi-step workflows.
113113
involved, and returns common causes, suggested fixes, and links to relevant Camel documentation.
114114
|===
115115

116+
=== Dependency Check
117+
118+
[cols="1,3",options="header"]
119+
|===
120+
| Tool | Description
121+
122+
| `camel_dependency_check`
123+
| Checks Camel project dependency hygiene given a `pom.xml` and optional route definitions. Detects outdated
124+
Camel versions compared to the latest catalog release, identifies missing Maven dependencies for components
125+
used in routes, and flags version conflicts between the Camel BOM and explicit dependency overrides.
126+
Returns actionable recommendations with corrected dependency snippets.
127+
|===
128+
116129
=== Validation and Transformation
117130

118131
[cols="1,3",options="header"]
@@ -440,6 +453,19 @@ The assistant calls `camel_error_diagnose` which identifies all three exceptions
440453
`kafka` component, and returns common causes (missing `camel-kafka` dependency, typo in URI scheme), suggested
441454
fixes (add the dependency, verify the URI), and links to the relevant Camel documentation.
442455

456+
=== Checking Dependency Hygiene
457+
458+
----
459+
Here's my pom.xml and my main route. Can you check if I'm missing any dependencies
460+
or if anything is outdated?
461+
----
462+
463+
Provide your `pom.xml` and route content, and the assistant calls `camel_dependency_check`. It detects whether
464+
your Camel version is outdated compared to the latest release, identifies components used in the route that are
465+
missing from the pom (e.g., `camel-kafka` for `kafka:` endpoints), and flags version conflicts where a
466+
dependency has an explicit version override while a BOM is present. Each issue comes with a corrected Maven
467+
snippet you can paste directly into your pom.
468+
443469
=== Checking Camel Versions
444470

445471
----

0 commit comments

Comments
 (0)