Commit Graph

21 Commits

Author SHA1 Message Date
Mark Pollack
cba325ac5b Update spring boot and spring ai to latest, add some run-verify scripts for automation 2025-05-02 14:11:49 -04:00
Christian Tzolov
234d3ff919 refactor(mcp): update to use Spring Boot autoconfiguration and rename tool callbacks
Update MCP examples to use Spring Boot autoconfiguration instead of manual configuration.
Replace deprecated defaultTools method with defaultToolCallbacks across all examples.
Update documentation to reflect these changes and provide more detailed configuration examples.

- Update API from defaultTools to defaultToolCallbacks in all MCP examples
- Update README files with more detailed configuration examples

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
2025-05-02 14:28:22 +03:00
Soby Chacko
40e1b43d53 Updating the version to 1.0.0-SNAPSHOT 2025-04-28 21:03:22 -04:00
Soby Chacko
e0ba3438ba Update spring-ai version to 1.0.0-M7 (#22)
Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
2025-04-10 17:15:09 -04:00
Soby Chacko
7e04dc20f9 Update Spring AI dependencies to 1.0.0-SNAPSHOT (#21)
- Update Spring AI version from 1.0.0-M5 to 1.0.0-SNAPSHOT across all modules
- Update artifact IDs to match new naming convention (spring-ai-*-spring-boot-starter → spring-ai-starter-model-*)
- Add central-portal-snapshots repository to all projects for SNAPSHOT dependency resolution
- Standardize repository URLs to use repo.spring.io/milestone instead of libs-milestone-local
- Remove the obsolete spring-ai-core dependency in Kotlin modules
- Update QuestionAnswerAdvisor import path in rag-with-kotlin
- Reorganize root POM module ordering for better organization

Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
2025-04-10 20:27:35 +02:00
Christian Tzolov
41c921bc33 refactor: update MCP API usage to version 0.8.0
- Remove all book-library MCP examples (servlet, webflux, and webmvc implementations)
- Update weather example to use MCP version 0.8.0-SNAPSHOT
- Refactor transport handling to use transport providers instead of direct transport objects
- Update method calls from toSyncToolRegistration to toSyncToolSpecifications
- Add central-portal-snapshots repository to pom.xml for dependency resolution
- Align with the new MCP client class names

Add MCP Sampling capability with weather example

Adds MCP Sampling implementation that demonstrates how to delegate LLM requests to multiple providers.

- add a weather server that retrieves data and uses MCP Sampling to generate creative content
- add a client that routes requests to different LLM providers (OpenAI and Anthropic) based on model hints
- add README documentation explaining the MCP Sampling workflow and implementation details

The MCP Sampling capability enables applications to leverage multiple LLM providers within a single workflow,
allowing for creative content generation, model comparison, and specialized task delegation.

refactor: migrate to spring-ai-mcp-client-spring-boot-starter

- Replace spring-ai-mcp dependency with spring-ai-mcp-client-spring-boot-starter
- Update import statements from org.springframework.ai.mcp.* to io.modelcontextprotocol.client.*
- Replace McpFunctionCallback with SyncMcpToolCallbackProvider
- Update Spring AI version from 1.0.0-M5 to 1.0.0-SNAPSHOT in multiple projects
- Enable tool callback auto-configuration with spring.ai.mcp.client.toolcallback.enabled

refactor: update Spring AI artifact IDs to new naming convention

- Update all Spring AI dependencies to use the new naming convention:
spring-ai-*-spring-boot-starter → spring-ai-starter-*
spring-ai-openai-spring-boot-starter → spring-ai-starter-model-openai
spring-ai-mcp-client-spring-boot-starter → spring-ai-starter-mcp-client
- And similar patterns for other artifacts
- Enable debug mode in brave module's application.properties

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
2025-03-25 15:05:27 -04:00
Christian Tzolov
0ddbb686ad Update the mcp demos to latest 0.6.0 version 2025-01-24 19:10:21 +01:00
Christian Tzolov
9a7fcd517f Update MCP version to 0.5.1 2025-01-14 15:17:16 +01:00
Christian Tzolov
aad2e4c45b Update MCP samples to 0.5.0 2025-01-13 12:24:12 +01:00
Christian Tzolov
d5a016cbd2 Add MCP WebMvc Server + HttpClient sample 2025-01-11 17:31:35 +01:00
Christian Tzolov
144bc2836e Upgrade MCP demos to 0.4.1 2025-01-04 18:27:00 +01:00
Christian Tzolov
62e8bb064b Upgrade MCP demos to 0.4.0 2025-01-04 08:40:36 +01:00
Christian Tzolov
b52e96d7fb Upgrade MCP examples to 0.3.1 2024-12-30 13:34:24 +01:00
Christian Tzolov
544394fd97 Update the MCP examples to MCP 0.3.0 milestone (#6) 2024-12-29 18:22:54 +01:00
Mark Pollack
4ddd9135f0 Update to 1.0 M5 release 2024-12-23 13:13:36 -05:00
Christian Tzolov
813c989d91 Update MCP examples to version 0.2.0 2024-12-21 18:35:27 +01:00
Christian Tzolov
1ee0c9d00f add mcp filesystem demo 2024-12-11 12:14:12 +01:00
Christian Tzolov
908e0abbfd minor 2024-12-11 10:57:13 +01:00
Christian Tzolov
2e103b6245 improve the MCP sqlite demos 2024-12-11 10:52:16 +01:00
Mark Pollack
e921b08a3f Update to use spring-ai-mcp 0.1.0 2024-12-11 01:40:57 -05:00
Mark Pollack
4c7d5d31d5 Example application for Model Context Protocol 2024-12-10 23:38:00 -05:00