This project demonstrates how to expose local documents as MCP (Model Context Protocol) resources using Spring AI.
It allows AI models (through the MCP protocol) to access files dynamically from a local directory โ such as .txt, .md, .json, or other text-based documents.
- ๐ Automatically registers all files in a given directory.
- ๐งฉ Exposes each file as a resource via
McpServerFeatures.SyncResourceSpecification - โ๏ธ Simple and extensible Spring Boot setup
- ๐ง Compatible with Spring AI MCP Client โ resources can be discovered and read by an AI model at runtime