This repository is a playground for learning and experimenting new ideas in MCP using Spring AI
- Java Version: 21 (Execute java -version in command line after installation)
- Ollama: latest (Execute ollama -v in command line after installation)
- Integrated Development Environment: Any version IntelliJ Idea or Eclipse
ollama pull llama3.2:3b
./mvnw clean install
./mvnw clean install -DskipTests
./mvnw clean spring-boot:run -pl spring-ai-mcp-server1
./mvnw clean spring-boot:run -pl spring-ai-mcp-server2
./mvnw clean spring-boot:run -pl spring-ai-mcp-client
or to run the client against OpenAI
export OPEN_AI_KEY={open_ai_key}
./mvnw clean -Dspring-boot.run.profiles=openai spring-boot:run -pl spring-ai-mcp-client
or to run the client against AWS LLM Model
export AWS_AI_ACCESS_KEY_ID={aws_key_id}
export AWS_AI_SECRET_ACCESS_KEY={aws_secret_key}
./mvnw clean -Dspring-boot.run.profiles=aws spring-boot:run -pl spring-ai-mcp-client
export SPRING_PROFILES_ACTIVE="aws"
or
export SPRING_PROFILES_ACTIVE="openai"
./docker-compose-run.sh
./mvnw clean install -DskipE2E=false -pl spring-ai-mcp-e2e