Skip to content

Commit db00a14

Browse files
authored
Merge branch 'main' into handle-ping
2 parents d121abe + b2d3e00 commit db00a14

File tree

8 files changed

+528
-611
lines changed

8 files changed

+528
-611
lines changed

mcp-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.modelcontextprotocol.sdk</groupId>
99
<artifactId>mcp-parent</artifactId>
10-
<version>0.10.0-SNAPSHOT</version>
10+
<version>0.11.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>mcp-bom</artifactId>

mcp-spring/mcp-spring-webflux/pom.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.modelcontextprotocol.sdk</groupId>
88
<artifactId>mcp-parent</artifactId>
9-
<version>0.10.0-SNAPSHOT</version>
9+
<version>0.11.0-SNAPSHOT</version>
1010
<relativePath>../../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>mcp-spring-webflux</artifactId>
@@ -25,13 +25,13 @@
2525
<dependency>
2626
<groupId>io.modelcontextprotocol.sdk</groupId>
2727
<artifactId>mcp</artifactId>
28-
<version>0.10.0-SNAPSHOT</version>
28+
<version>0.11.0-SNAPSHOT</version>
2929
</dependency>
3030

3131
<dependency>
3232
<groupId>io.modelcontextprotocol.sdk</groupId>
3333
<artifactId>mcp-test</artifactId>
34-
<version>0.10.0-SNAPSHOT</version>
34+
<version>0.11.0-SNAPSHOT</version>
3535
<scope>test</scope>
3636
</dependency>
3737

@@ -82,6 +82,12 @@
8282
<version>${mockito.version}</version>
8383
<scope>test</scope>
8484
</dependency>
85+
<dependency>
86+
<groupId>net.bytebuddy</groupId>
87+
<artifactId>byte-buddy</artifactId>
88+
<version>${byte-buddy.version}</version>
89+
<scope>test</scope>
90+
</dependency>
8591
<dependency>
8692
<groupId>io.projectreactor</groupId>
8793
<artifactId>reactor-test</artifactId>

mcp-spring/mcp-spring-webmvc/pom.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.modelcontextprotocol.sdk</groupId>
88
<artifactId>mcp-parent</artifactId>
9-
<version>0.10.0-SNAPSHOT</version>
9+
<version>0.11.0-SNAPSHOT</version>
1010
<relativePath>../../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>mcp-spring-webmvc</artifactId>
@@ -25,13 +25,13 @@
2525
<dependency>
2626
<groupId>io.modelcontextprotocol.sdk</groupId>
2727
<artifactId>mcp</artifactId>
28-
<version>0.10.0-SNAPSHOT</version>
28+
<version>0.11.0-SNAPSHOT</version>
2929
</dependency>
3030

3131
<dependency>
3232
<groupId>io.modelcontextprotocol.sdk</groupId>
3333
<artifactId>mcp-test</artifactId>
34-
<version>0.10.0-SNAPSHOT</version>
34+
<version>0.11.0-SNAPSHOT</version>
3535
<scope>test</scope>
3636
</dependency>
3737

@@ -77,6 +77,12 @@
7777
<version>${mockito.version}</version>
7878
<scope>test</scope>
7979
</dependency>
80+
<dependency>
81+
<groupId>net.bytebuddy</groupId>
82+
<artifactId>byte-buddy</artifactId>
83+
<version>${byte-buddy.version}</version>
84+
<scope>test</scope>
85+
</dependency>
8086
<dependency>
8187
<groupId>org.testcontainers</groupId>
8288
<artifactId>junit-jupiter</artifactId>

mcp-test/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.modelcontextprotocol.sdk</groupId>
88
<artifactId>mcp-parent</artifactId>
9-
<version>0.10.0-SNAPSHOT</version>
9+
<version>0.11.0-SNAPSHOT</version>
1010
</parent>
1111
<artifactId>mcp-test</artifactId>
1212
<packaging>jar</packaging>
@@ -24,7 +24,7 @@
2424
<dependency>
2525
<groupId>io.modelcontextprotocol.sdk</groupId>
2626
<artifactId>mcp</artifactId>
27-
<version>0.10.0-SNAPSHOT</version>
27+
<version>0.11.0-SNAPSHOT</version>
2828
</dependency>
2929

3030
<dependency>

mcp/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.modelcontextprotocol.sdk</groupId>
88
<artifactId>mcp-parent</artifactId>
9-
<version>0.10.0-SNAPSHOT</version>
9+
<version>0.11.0-SNAPSHOT</version>
1010
</parent>
1111
<artifactId>mcp</artifactId>
1212
<packaging>jar</packaging>

mcp/src/main/java/io/modelcontextprotocol/client/McpSyncClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ public McpSchema.Implementation getServerInfo() {
9797
return this.delegate.getServerInfo();
9898
}
9999

100+
/**
101+
* Check if the client-server connection is initialized.
102+
* @return true if the client-server connection is initialized
103+
*/
104+
public boolean isInitialized() {
105+
return this.delegate.isInitialized();
106+
}
107+
100108
/**
101109
* Get the client capabilities that define the supported features and functionality.
102110
* @return The client capabilities

0 commit comments

Comments
 (0)