[REQ-22001] Add MCP server support to apiService.mustache#22197
[REQ-22001] Add MCP server support to apiService.mustache#22197wing328 merged 4 commits intoOpenAPITools:masterfrom
Conversation
Refactor apiService.mustache to include MCP server support and enhance operation methods.
|
thanks for the PR please follow step 3 to update the samples so as to fix https://github.com/OpenAPITools/openapi-generator/actions/runs/18679590784/job/53712868648?pr=22197 |
|
Hello @wing328 , |
|
when you've time, can you please review the build failure? |
Hello, |
|
Hello @wing328 , I have just submitted the fix. Thanks |
|
Hello @wing328, |
|
thanks again for the contribution. let's give it a try |
|
can you please review the build failure after merging this change into master? https://github.com/OpenAPITools/openapi-generator/actions/runs/20296806573/job/58292320011 https://github.com/OpenAPITools/openapi-generator/actions/runs/20296806573/job/58292320017 error message: not sure why the jaxrs tests were skipped in the PR (maybe due to cloudflare outage) if we cannot find a fix, we will need to revert the change via #22551 |
…ls#22197) * Add MCP server support to apiService.mustache Refactor apiService.mustache to include MCP server support and enhance operation methods. * Update samples * update samples in wsl * remove useless import when mcp is disabled --------- Co-authored-by: RL6172 <thibaut.rety@external.engie.com>
Refactor apiService.mustache to include MCP server support and enhance operation methods.
The goal is to directly generate a MCP server in quarkus.
Two extensions are used :
The main intent is to transform our REST APIs as GEN-AI ready APIs.
Known Limitations
See also
An example of usage can be found here : https://github.com/thibautrety/quarkus_mcp/tree/main
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master(upcoming7.x.0minor release - breaking changes with fallbacks),8.0.x(breaking changes without fallbacks)"fixes #123"present in the PR description)