Spring_MCP_Server

pranaygattu/Spring_MCP_Server

3.2

If you are the rightful owner of Spring_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.

This project demonstrates the implementation of a Model Context Protocol (MCP) server using Spring AI, showcasing a simple shopping cart service that can be interacted with through AI-powered tools.

Tools

Functions exposed to the LLM to take actions

addItem

Adds or updates items in the cart with parameters: name (String), quantity (int)

getItems

Retrieves all items in the cart and returns a list of ShoppingItem objects

removeItem

Removes items from the cart with parameters: name (String), quantity (int)

Prompts

Interactive templates invoked by user choice

No prompts

Resources

Contextual data attached and managed by the client

No resources