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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
