File tree Expand file tree Collapse file tree 13 files changed +17
-17
lines changed
src/main/java/org/springframework/ai/mcp/samples/filesystem
src/main/java/org/springframework/ai/mcp/samples/sqlite
src/main/java/org/springframework/ai/mcp/samples/sqlite
weather/starter-stdio-server
src/test/java/org/springframework/ai/mcp/sample/client Expand file tree Collapse file tree 13 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 1717
1818 <properties >
1919 <java .version>17</java .version>
20- <spring-ai .version>1.0.1</spring-ai .version>
2120 </properties >
2221
2322 <dependencyManagement >
2423 <dependencies >
2524 <dependency >
2625 <groupId >org.springframework.ai</groupId >
2726 <artifactId >spring-ai-bom</artifactId >
28- <version >1.0.1 </version >
27+ <version >1.1.0-SNAPSHOT </version >
2928 <type >pom</type >
3029 <scope >import</scope >
3130 </dependency >
Original file line number Diff line number Diff line change 1717
1818 <properties >
1919 <java .version>17</java .version>
20- <spring-ai .version>1.0.1</spring-ai .version>
2120 </properties >
2221
2322 <dependencyManagement >
2423 <dependencies >
2524 <dependency >
2625 <groupId >org.springframework.ai</groupId >
2726 <artifactId >spring-ai-bom</artifactId >
28- <version >1.0.1 </version >
27+ <version >1.1.0-SNAPSHOT </version >
2928 <type >pom</type >
3029 <scope >import</scope >
3130 </dependency >
Original file line number Diff line number Diff line change 1717
1818 <properties >
1919 <java .version>17</java .version>
20- <spring-ai .version>1.0.1</spring-ai .version>
2120 </properties >
2221
2322 <dependencyManagement >
2423 <dependencies >
2524 <dependency >
2625 <groupId >org.springframework.ai</groupId >
2726 <artifactId >spring-ai-bom</artifactId >
28- <version >1.0.1 </version >
27+ <version >1.1.0-SNAPSHOT </version >
2928 <type >pom</type >
3029 <scope >import</scope >
3130 </dependency >
Original file line number Diff line number Diff line change 1717
1818 <properties >
1919 <java .version>17</java .version>
20- <spring-ai .version>1.0.1</spring-ai .version>
2120 </properties >
2221
2322 <dependencyManagement >
2423 <dependencies >
2524 <dependency >
2625 <groupId >org.springframework.ai</groupId >
2726 <artifactId >spring-ai-bom</artifactId >
28- <version >1.0.1 </version >
27+ <version >1.1.0-SNAPSHOT </version >
2928 <type >pom</type >
3029 <scope >import</scope >
3130 </dependency >
Original file line number Diff line number Diff line change 2323 <dependency >
2424 <groupId >org.springframework.ai</groupId >
2525 <artifactId >spring-ai-bom</artifactId >
26- <version >1.0.1 </version >
26+ <version >1.1.0-SNAPSHOT </version >
2727 <type >pom</type >
2828 <scope >import</scope >
2929 </dependency >
Original file line number Diff line number Diff line change 2222 <dependency >
2323 <groupId >org.springframework.ai</groupId >
2424 <artifactId >spring-ai-bom</artifactId >
25- <version >1.0.1 </version >
25+ <version >1.1.0-SNAPSHOT </version >
2626 <type >pom</type >
2727 <scope >import</scope >
2828 </dependency >
Original file line number Diff line number Diff line change 77import io .modelcontextprotocol .client .McpSyncClient ;
88import io .modelcontextprotocol .client .transport .ServerParameters ;
99import io .modelcontextprotocol .client .transport .StdioClientTransport ;
10+ import io .modelcontextprotocol .json .McpJsonMapper ;
1011
1112import org .springframework .ai .chat .client .ChatClient ;
1213import org .springframework .ai .mcp .SyncMcpToolCallbackProvider ;
@@ -59,7 +60,7 @@ public McpSyncClient mcpClient() {
5960 .args ("-y" , "@modelcontextprotocol/server-filesystem" , getDbPath ())
6061 .build ();
6162
62- var mcpClient = McpClient .sync (new StdioClientTransport (stdioParams ))
63+ var mcpClient = McpClient .sync (new StdioClientTransport (stdioParams , McpJsonMapper . createDefault () ))
6364 .requestTimeout (Duration .ofSeconds (10 )).build ();
6465
6566 var init = mcpClient .initialize ();
Original file line number Diff line number Diff line change 2222 <dependency >
2323 <groupId >org.springframework.ai</groupId >
2424 <artifactId >spring-ai-bom</artifactId >
25- <version >1.0.1 </version >
25+ <version >1.1.0-SNAPSHOT </version >
2626 <type >pom</type >
2727 <scope >import</scope >
2828 </dependency >
Original file line number Diff line number Diff line change 99import io .modelcontextprotocol .client .McpSyncClient ;
1010import io .modelcontextprotocol .client .transport .ServerParameters ;
1111import io .modelcontextprotocol .client .transport .StdioClientTransport ;
12+ import io .modelcontextprotocol .json .McpJsonMapper ;
1213
1314import org .springframework .ai .chat .client .ChatClient ;
1415import org .springframework .ai .chat .client .advisor .MessageChatMemoryAdvisor ;
@@ -71,7 +72,7 @@ public McpSyncClient mcpClient() {
7172 getDbPath ())
7273 .build ();
7374
74- var mcpClient = McpClient .sync (new StdioClientTransport (stdioParams ))
75+ var mcpClient = McpClient .sync (new StdioClientTransport (stdioParams , McpJsonMapper . createDefault () ))
7576 .requestTimeout (Duration .ofSeconds (10 )).build ();
7677
7778 var init = mcpClient .initialize ();
Original file line number Diff line number Diff line change 2222 <dependency >
2323 <groupId >org.springframework.ai</groupId >
2424 <artifactId >spring-ai-bom</artifactId >
25- <version >1.0.1 </version >
25+ <version >1.1.0-SNAPSHOT </version >
2626 <type >pom</type >
2727 <scope >import</scope >
2828 </dependency >
You can’t perform that action at this time.
0 commit comments