[ 
https://issues.apache.org/jira/browse/CAMEL-23475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino updated CAMEL-23475:
-------------------------------------
    Fix Version/s: 4.21.0

> camel-jbang-mcp: make ComponentDetailResult lean by default with option 
> filtering
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-23475
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23475
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>    Affects Versions: 4.21.0
>            Reporter: Andrea Cosentino
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 4.21.0
>
>
> h3. Context
> Part of an effort to reduce token consumption of the {{camel-jbang-mcp}} MCP 
> server. The module exposes 31 tools, 6 resources, and 3 prompts; both tool 
> schemas (loaded once per session) and tool results (per call) contribute to 
> LLM context-window pressure for every user of the server.
> Related tickets in this effort are linked via "Relates to".
> {{camel_catalog_component_doc}} returns every component option and every 
> endpoint option. Heavy components (Kafka has 80+ endpoint options at ~150 
> tokens each) produce 12K+ token responses when the LLM typically wants 3–5 
> options.
> Affected: {{ComponentDetailResult}} ({{CatalogTools.java:543}}), populated at 
> {{CatalogTools.java:398-437}}.
> h3. Proposed change
> * Add {{optionsFilter: String}} arg (substring match on option name).
> * Add {{includeOptions: "required" | "common" | "all"}} arg, defaulting to 
> {{"common"}} — excludes {{deprecated=true}} and {{advanced=true}} options 
> unless explicitly requested.
> * Split {{groupId}}/{{artifactId}}/{{version}} into a separate small tool 
> {{camel_catalog_component_maven}}, since these are only needed when adding 
> dependencies.
> h3. Acceptance
> Default call to {{camel_catalog_component_doc}} on Kafka returns ≤ 2K tokens.
> ----
> _Filed by Claude Code on behalf of Andrea Cosentino_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to