aldettinger opened a new pull request, #9535: URL: https://github.com/apache/camel-quarkus/pull/9535
Resources the application declares with @io.quarkiverse.mcp.server.Resource were neither tested nor documented; only the ResourceManager ones were. They are registered at build time, before any route starts, so an auto-started ai-resource route clashing with one is the only way to reach a refusal during startup. The existing clashing-resource-route cannot: it is autoStartup(false), its owner registering on StartupEvent with no ordering guarantee against route startup. Three annotated resources, one per outcome, each returning its own content so that a read tells which resource served it: - annotated_no_clash, listed and read next to the Camel resources; - annotated_uri_clash, owning the uri of the camel_uri_clash route, whose name is free, so the uri is the only cause of the refusal; - annotated_name_clash, owning the name of the route of the same name, whose uri is free, so the name is the only cause. Both branches of the quarkus-mcp-server uniqueness check are reachable this way; only the uri one was before. The ERROR logged on a refusal printed the uri in the identifier slot for both branches, so a name clash named a uri that was free. Log both. Documented in a new "Mixing with quarkus-mcp-server annotated resources" section, the counterpart of the one tools already have. <!-- Uncomment and fill this section if your PR is not trivial [ ] An issue should be filed for the change unless this is a trivial change (fixing a typo or similar). One issue should ideally be fixed by not more than one commit and the other way round, each commit should fix just one issue, without pulling in other changes. [ ] Each commit in the pull request should have a meaningful and properly spelled subject line and body. Copying the title of the associated issue is typically enough. Please include the issue number in the commit message prefixed by #. [ ] The pull request description should explain what the pull request does, how, and why. If the info is available in the associated issue or some other external document, a link is enough. [ ] Phrases like Fix #<issueNumber> or Fixes #<issueNumber> will auto-close the named issue upon merging the pull request. Using them is typically a good idea. [ ] Please run mvn process-resources -Pformat (and amend the changes if necessary) before sending the pull request. [ ] Contributor guide is your good friend: https://camel.apache.org/camel-quarkus/latest/contributor-guide.html --> -- 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]
