Andrea Cosentino created CAMEL-23270:
----------------------------------------
Summary: Camel-Jbang-MCP: Add MCP tool annotations (readOnlyHint,
destructiveHint, openWorldHint) to all tools
Key: CAMEL-23270
URL: https://issues.apache.org/jira/browse/CAMEL-23270
Project: Camel
Issue Type: Improvement
Reporter: Andrea Cosentino
Assignee: Andrea Cosentino
Fix For: 4.19.0
The MCP specification supports tool annotations that help AI clients make
better decisions about when and how to use tools. All tools in the
camel-jbang-mcp module are read-only (they query catalogs, validate input,
generate scaffolds, none modify files or execute commands), but this was not
explicitly declared. Without annotations, MCP clients default to treating tools
as potentially destructive and requiring user confirmation for every call.
Added @Tool.Annotations(readOnlyHint = true, destructiveHint = false,
openWorldHint = false) to all 27 tool methods across 12 tool classes. The
Quarkus MCP Server SDK 1.11.0 already supports these annotations — no
dependency upgrade was needed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)