You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "oscerd (via GitHub)" <gi...@apache.org> on 2026/05/11 09:11:52 UTC
[PR] CAMEL-23472: camel-jbang-mcp - Deduplicate @ToolArg descriptions [camel]
oscerd opened a new pull request, #23119:
URL: https://github.com/apache/camel/pull/23119
## Summary
[CAMEL-23472](https://issues.apache.org/jira/browse/CAMEL-23472) — part of the ongoing effort to reduce token consumption of the `camel-jbang-mcp` MCP server.
Several `@ToolArg` descriptions were duplicated verbatim across the 31 MCP tools whose schemas are sent to the client on every session start. The largest duplicate clusters were:
- `Runtime type: main, spring-boot, or quarkus (default: main)` — 18 copies
- `Platform BOM coordinates in GAV format ...` (multi-line) — 16 copies
- `Camel version to use ...` — 12+ copies (with two minor variants)
- `Version to query ...` (multi-line, runtime-aware) — 3 copies
## Changes
- Introduces `ToolArgDocs` with five shared constants: `RUNTIME`, `RUNTIME_REQUIRED`, `CAMEL_VERSION`, `VERSION_QUERY`, `PLATFORM_BOM`.
- Trims each description to the minimum useful payload (e.g. `Runtime: main | spring-boot | quarkus (default: main)`).
- Replaces 50 duplicated `@ToolArg` descriptions across 11 tool classes (CatalogTools, ComponentPropertiesTools, ConfigurationValidateTools, DependencyCheckTools, DiagnoseTools, ExplainTools, HardenTools, MigrationTools, TestScaffoldTools, TransformTools, VersionTools).
No two `@ToolArg` annotations in the module now share the same multi-line description literal.
## Test plan
- [x] `mvn install` from `dsl/camel-jbang/camel-jbang-mcp` — 224 tests pass.
- [x] All `@ToolArg` references in the module verified to resolve against `ToolArgDocs` constants.
- [x] No public API changes.
----
_Claude Code on behalf of Andrea Cosentino_
--
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: [PR] CAMEL-23472: camel-jbang-mcp - Deduplicate @ToolArg descriptions [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23119:
URL: https://github.com/apache/camel/pull/23119#issuecomment-4419220789
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
* You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
:warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
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: [PR] CAMEL-23472: camel-jbang-mcp - Deduplicate @ToolArg descriptions [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23119:
URL: https://github.com/apache/camel/pull/23119#issuecomment-4419481901
<!-- ci-tested-modules -->
:test_tube: **CI tested the following changed modules:**
- `dsl/camel-jbang/camel-jbang-mcp`
:warning: **Some tests are disabled on GitHub Actions** (`@DisabledIfSystemProperty(named = "ci.env.name")`) and require manual verification:
- `dsl/camel-jbang/camel-jbang-mcp`: 1 test(s) disabled on GitHub Actions
---
:gear: [View full build and test results](https://github.com/apache/camel/actions/runs/25661124300)
--
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: [PR] CAMEL-23472: camel-jbang-mcp - Deduplicate @ToolArg descriptions [camel]
Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd merged PR #23119:
URL: https://github.com/apache/camel/pull/23119
--
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