commerce-projects/simple-commerce-mcp-server
If you are the rightful owner of simple-commerce-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Model Context Protocol (MCP) Server is a specialized server designed to facilitate the integration and management of machine learning models within various applications, providing a seamless interface for model deployment and execution.
Getting Started
Reference Documentation
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- GraalVM Native Image Support
- Spring Boot DevTools
- Model Context Protocol Server
Additional Links
These additional references should also help you:
GraphQL code generation with DGS
This project has been configured to use the Netflix DGS Codegen plugin.
This plugin can be used to generate client files for accessing remote GraphQL services.
The default setup assumes that the GraphQL schema file for the remote service is added to the src/main/resources/graphql-client/
location.
You can learn more about the plugin configuration options and how to use the generated types to adapt the default setup.
GraalVM Native Support
This project has been configured to let you generate either a lightweight container or a native executable. It is also possible to run your tests in a native image.
Lightweight Container with Cloud Native Buildpacks
If you're already familiar with Spring Boot container images support, this is the easiest way to get started. Docker should be installed and configured on your machine prior to creating the image.
To create the image, run the following goal:
./gradlew bootBuildImage --imageName=juliuskrah/simple-commerce-mcp-server:0.0.1-SNAPSHOT
Then, you can run the app like any other container:
docker run -i --rm juliuskrah/simple-commerce-mcp-server:0.0.1-SNAPSHOT
Executable with Native Build Tools
Use this option if you want to explore more options such as running your tests in a native image.
The GraalVM native-image
compiler should be installed and configured on your machine.
NOTE: GraalVM 22.3+ is required.
To create the executable, run the following goal:
./gradlew nativeCompile
Then, you can run the app as follows:
build/native/nativeCompile/simple-commerce-mcp-server
You can also run your existing tests suite in a native image. This is an efficient way to validate the compatibility of your application.
To run your existing tests in a native image, run the following goal:
./gradlew nativeTest
Gradle Toolchain support
There are some limitations regarding Native Build Tools and Gradle toolchains. Native Build Tools disable toolchain support by default. Effectively, native image compilation is done with the JDK used to execute Gradle. You can read more about toolchain support in the Native Build Tools here.