quarkus-mcp-server-example

by anmiralles

334 downloads
Not rated
GitHub

About

Quarkus example about how to create mcp server which allows to interact with our REST api through Tools definition.

Details

Author
anmiralles
Downloads
334
Categories
Other

- Built on Quarkus framework
- Integrates with a REST API via MCP Tools
- Uses PostgreSQL for data storage
- Runs as a Java JAR extension for Goose
- Demonstrates MCP server creation in Quarkus

Build the project with Maven, start a PostgreSQL database in Podman, run the dependent microservice, create a sample application via curl, then launch the MCP server with Goose using goose session --with-extension="java -jar ...".

# quarkus-mcp-server-example Quarkus example about how to create mcp server which allows to interact with our REST api through Tools definition. ## Prerequisites * _maven_ * podman * _java 21_ * goose ## Running the Example For running the example we need to follow the steps: ```console $ mvn clean package ``` ```console $ podman run -d --name db-server -e POSTGRES_USER=test -e POSTGRES_PASSWORD=test -e POSTGRES_DB=applications -p 5432:5432 postgres:16 ``` ```console $ cd quarkus-applications-ms && mvn quarkus:dev ``` ```console $ curl -i -X POST \ -F "name=Angel" \ -F "surname=Miralles" \ -F "personalId=12345R" \ -F "country=Spain" \ http://localhost:8080/application.html ``` ```console goose session --with-extension="java -jar quarkus-mcp-server/target/quarkus-mcp-server-1.0.0-SNAPSHOT.jar" ```
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.