Posts

Showing posts with the label spring-mcp

Springing into AI - Part 14: MCP Server - Tools Playground ( Sampling )

Image
About In MCP Server, Sampling refers to the process where the server itself may ask LLM on the client side to analyze information it gathered. Through means of system prompts we can instruct LLM from the server side to operate in defined boundaries. A typical example of this can be text summarization where we have our fetched database records and would like to have LLM summarize its observation about it.    Project In Hobbits Inc, we will create a  dumb hobbit food recipe analyzer tool simulating interaction between MCP Server and the LLM. Since we do not have a MCP Client for it with a LLM, MCP Inspector will be used to simulate real world LLM interaction with ability to add desired content and propagate back to MCP Server where the tool will obtain data and respond back.  An architecture overview of our tools playground is shown below: Setup Our project setup encompasses the following: Java:                    ...

Springing into AI - Part 12: MCP Server - Resources Playground

Image
About In MCP Server, we can expose certain kind of information (statis or dynamic) through means of Resources. The information here can be media, documents, images etc. Typical example of its use in real world can be a company server offering its portfolio, guidelines, work ethics etc to its employee.  Project Our company Hobbits Inc will be providing informtation related to hobbit portfolios, their mughosts as dynamic resources from our file path. MCP Inspector will be used as a testing tool for validating our sanity of the project. Some of the other capabilities would also demonstrate auto completion so that end user may search and select information for a given hobbit. An architecture overview is shown below: Setup Our project setup encompasses of the following setup: Java:                    17 Spring AI :           1.1.2 Spring Boot:        4.0.3 Testing tool :    ...