Update the mcp demos to latest 0.6.0 version
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<dependency>
|
||||
<groupId>org.springframework.experimental</groupId>
|
||||
<artifactId>spring-ai-mcp</artifactId>
|
||||
<version>0.5.1</version>
|
||||
<version>0.6.0</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
@@ -78,8 +78,8 @@ public class Application {
|
||||
getDbPath())
|
||||
.build();
|
||||
|
||||
var mcpClient = McpClient.using(new StdioClientTransport(stdioParams))
|
||||
.requestTimeout(Duration.ofSeconds(10)).sync();
|
||||
var mcpClient = McpClient.sync(new StdioClientTransport(stdioParams))
|
||||
.requestTimeout(Duration.ofSeconds(10)).build();
|
||||
|
||||
var init = mcpClient.initialize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user