Skip to content

Commit 5c46626

Browse files
authored
chore: standardize client/server implementation names and version (#642)
Unifies client/server implementation names under "Java SDK" branding and updates all versions to 0.15.0. Resolves: #638 Signed-off-by: Christian Tzolov <[email protected]>
1 parent e91fe7f commit 5c46626

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

mcp-core/src/main/java/io/modelcontextprotocol/client/McpClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class SyncSpec {
167167

168168
private ClientCapabilities capabilities;
169169

170-
private Implementation clientInfo = new Implementation("Java SDK MCP Client", "1.0.0");
170+
private Implementation clientInfo = new Implementation("Java SDK MCP Client", "0.15.0");
171171

172172
private final Map<String, Root> roots = new HashMap<>();
173173

@@ -507,7 +507,7 @@ class AsyncSpec {
507507

508508
private ClientCapabilities capabilities;
509509

510-
private Implementation clientInfo = new Implementation("Spring AI MCP Client", "0.3.1");
510+
private Implementation clientInfo = new Implementation("Java SDK MCP Client", "0.15.0");
511511

512512
private final Map<String, Root> roots = new HashMap<>();
513513

mcp-core/src/main/java/io/modelcontextprotocol/server/McpServer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import java.util.HashMap;
1212
import java.util.List;
1313
import java.util.Map;
14-
import java.util.Objects;
1514
import java.util.function.BiConsumer;
1615
import java.util.function.BiFunction;
1716

@@ -134,7 +133,7 @@
134133
*/
135134
public interface McpServer {
136135

137-
McpSchema.Implementation DEFAULT_SERVER_INFO = new McpSchema.Implementation("mcp-server", "1.0.0");
136+
McpSchema.Implementation DEFAULT_SERVER_INFO = new McpSchema.Implementation("Java SDK MCP Server", "0.15.0");
138137

139138
/**
140139
* Starts building a synchronous MCP server that provides blocking operations.

mcp-core/src/test/java/io/modelcontextprotocol/client/transport/HttpClientStreamableHttpTransportEmptyJsonResponseTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ void testNotificationInitialized() throws URISyntaxException {
7878

7979
var initializeRequest = new McpSchema.InitializeRequest(ProtocolVersions.MCP_2025_03_26,
8080
McpSchema.ClientCapabilities.builder().roots(true).build(),
81-
new McpSchema.Implementation("Spring AI MCP Client", "0.3.1"));
81+
new McpSchema.Implementation("MCP Client", "0.3.1"));
8282
var testMessage = new McpSchema.JSONRPCRequest(McpSchema.JSONRPC_VERSION, McpSchema.METHOD_INITIALIZE,
8383
"test-id", initializeRequest);
8484

8585
StepVerifier.create(transport.sendMessage(testMessage)).verifyComplete();
8686

8787
// Verify the customizer was called
8888
verify(mockRequestCustomizer, atLeastOnce()).customize(any(), eq("POST"), eq(uri), eq(
89-
"{\"jsonrpc\":\"2.0\",\"method\":\"initialize\",\"id\":\"test-id\",\"params\":{\"protocolVersion\":\"2025-03-26\",\"capabilities\":{\"roots\":{\"listChanged\":true}},\"clientInfo\":{\"name\":\"Spring AI MCP Client\",\"version\":\"0.3.1\"}}}"),
89+
"{\"jsonrpc\":\"2.0\",\"method\":\"initialize\",\"id\":\"test-id\",\"params\":{\"protocolVersion\":\"2025-03-26\",\"capabilities\":{\"roots\":{\"listChanged\":true}},\"clientInfo\":{\"name\":\"MCP Client\",\"version\":\"0.3.1\"}}}"),
9090
any());
9191

9292
}

mcp-core/src/test/java/io/modelcontextprotocol/client/transport/HttpClientStreamableHttpTransportTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void testRequestCustomizer() throws URISyntaxException {
8080
// Send test message
8181
var initializeRequest = new McpSchema.InitializeRequest(McpSchema.LATEST_PROTOCOL_VERSION,
8282
McpSchema.ClientCapabilities.builder().roots(true).build(),
83-
new McpSchema.Implementation("Spring AI MCP Client", "0.3.1"));
83+
new McpSchema.Implementation("MCP Client", "0.3.1"));
8484
var testMessage = new McpSchema.JSONRPCRequest(McpSchema.JSONRPC_VERSION, McpSchema.METHOD_INITIALIZE,
8585
"test-id", initializeRequest);
8686

@@ -90,7 +90,7 @@ void testRequestCustomizer() throws URISyntaxException {
9090

9191
// Verify the customizer was called
9292
verify(mockRequestCustomizer, atLeastOnce()).customize(any(), eq("POST"), eq(uri), eq(
93-
"{\"jsonrpc\":\"2.0\",\"method\":\"initialize\",\"id\":\"test-id\",\"params\":{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{\"roots\":{\"listChanged\":true}},\"clientInfo\":{\"name\":\"Spring AI MCP Client\",\"version\":\"0.3.1\"}}}"),
93+
"{\"jsonrpc\":\"2.0\",\"method\":\"initialize\",\"id\":\"test-id\",\"params\":{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{\"roots\":{\"listChanged\":true}},\"clientInfo\":{\"name\":\"MCP Client\",\"version\":\"0.3.1\"}}}"),
9494
eq(context));
9595
});
9696
}
@@ -110,7 +110,7 @@ void testAsyncRequestCustomizer() throws URISyntaxException {
110110
// Send test message
111111
var initializeRequest = new McpSchema.InitializeRequest(McpSchema.LATEST_PROTOCOL_VERSION,
112112
McpSchema.ClientCapabilities.builder().roots(true).build(),
113-
new McpSchema.Implementation("Spring AI MCP Client", "0.3.1"));
113+
new McpSchema.Implementation("MCP Client", "0.3.1"));
114114
var testMessage = new McpSchema.JSONRPCRequest(McpSchema.JSONRPC_VERSION, McpSchema.METHOD_INITIALIZE,
115115
"test-id", initializeRequest);
116116

@@ -120,7 +120,7 @@ void testAsyncRequestCustomizer() throws URISyntaxException {
120120

121121
// Verify the customizer was called
122122
verify(mockRequestCustomizer, atLeastOnce()).customize(any(), eq("POST"), eq(uri), eq(
123-
"{\"jsonrpc\":\"2.0\",\"method\":\"initialize\",\"id\":\"test-id\",\"params\":{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{\"roots\":{\"listChanged\":true}},\"clientInfo\":{\"name\":\"Spring AI MCP Client\",\"version\":\"0.3.1\"}}}"),
123+
"{\"jsonrpc\":\"2.0\",\"method\":\"initialize\",\"id\":\"test-id\",\"params\":{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{\"roots\":{\"listChanged\":true}},\"clientInfo\":{\"name\":\"MCP Client\",\"version\":\"0.3.1\"}}}"),
124124
eq(context));
125125
});
126126
}
@@ -133,7 +133,7 @@ void testCloseUninitialized() {
133133

134134
var initializeRequest = new McpSchema.InitializeRequest(McpSchema.LATEST_PROTOCOL_VERSION,
135135
McpSchema.ClientCapabilities.builder().roots(true).build(),
136-
new McpSchema.Implementation("Spring AI MCP Client", "0.3.1"));
136+
new McpSchema.Implementation("MCP Client", "0.3.1"));
137137
var testMessage = new McpSchema.JSONRPCRequest(McpSchema.JSONRPC_VERSION, McpSchema.METHOD_INITIALIZE,
138138
"test-id", initializeRequest);
139139

@@ -148,7 +148,7 @@ void testCloseInitialized() {
148148

149149
var initializeRequest = new McpSchema.InitializeRequest(McpSchema.LATEST_PROTOCOL_VERSION,
150150
McpSchema.ClientCapabilities.builder().roots(true).build(),
151-
new McpSchema.Implementation("Spring AI MCP Client", "0.3.1"));
151+
new McpSchema.Implementation("MCP Client", "0.3.1"));
152152
var testMessage = new McpSchema.JSONRPCRequest(McpSchema.JSONRPC_VERSION, McpSchema.METHOD_INITIALIZE,
153153
"test-id", initializeRequest);
154154

mcp-spring/mcp-spring-webflux/src/test/java/io/modelcontextprotocol/client/transport/WebClientStreamableHttpTransportTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void testCloseUninitialized() {
4747

4848
var initializeRequest = new McpSchema.InitializeRequest(McpSchema.LATEST_PROTOCOL_VERSION,
4949
McpSchema.ClientCapabilities.builder().roots(true).build(),
50-
new McpSchema.Implementation("Spring AI MCP Client", "0.3.1"));
50+
new McpSchema.Implementation("MCP Client", "0.3.1"));
5151
var testMessage = new McpSchema.JSONRPCRequest(McpSchema.JSONRPC_VERSION, McpSchema.METHOD_INITIALIZE,
5252
"test-id", initializeRequest);
5353

@@ -62,7 +62,7 @@ void testCloseInitialized() {
6262

6363
var initializeRequest = new McpSchema.InitializeRequest(McpSchema.LATEST_PROTOCOL_VERSION,
6464
McpSchema.ClientCapabilities.builder().roots(true).build(),
65-
new McpSchema.Implementation("Spring AI MCP Client", "0.3.1"));
65+
new McpSchema.Implementation("MCP Client", "0.3.1"));
6666
var testMessage = new McpSchema.JSONRPCRequest(McpSchema.JSONRPC_VERSION, McpSchema.METHOD_INITIALIZE,
6767
"test-id", initializeRequest);
6868

0 commit comments

Comments
 (0)