Skip to content

Commit fa28d1c

Browse files
committed
chore: Extract McpSchema to a dedicated module
Signed-off-by: He-Pin <[email protected]>
1 parent 2d22868 commit fa28d1c

File tree

8 files changed

+56
-3
lines changed

8 files changed

+56
-3
lines changed

mcp-bom/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
<dependencyManagement>
2828
<dependencies>
2929
<!-- Core MCP -->
30+
<dependency>
31+
<groupId>io.modelcontextprotocol.sdk</groupId>
32+
<artifactId>mcp-spec-schema</artifactId>
33+
<version>${project.version}</version>
34+
</dependency>
3035
<dependency>
3136
<groupId>io.modelcontextprotocol.sdk</groupId>
3237
<artifactId>mcp-core</artifactId>

mcp-core/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@
7070
<artifactId>mcp-json</artifactId>
7171
<version>0.17.0-SNAPSHOT</version>
7272
</dependency>
73-
73+
<dependency>
74+
<groupId>io.modelcontextprotocol.sdk</groupId>
75+
<artifactId>mcp-spec-schema</artifactId>
76+
<version>0.17.0-SNAPSHOT</version>
77+
</dependency>
7478
<dependency>
7579
<groupId>org.slf4j</groupId>
7680
<artifactId>slf4j-api</artifactId>

mcp-spec-schema/pom.xml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>io.modelcontextprotocol.sdk</groupId>
9+
<artifactId>mcp-parent</artifactId>
10+
<version>0.17.0-SNAPSHOT</version>
11+
</parent>
12+
13+
<groupId>io.modelcontextprotocol.sdk</groupId>
14+
<artifactId>mcp-spec-schema</artifactId>
15+
<version>0.17.0-SNAPSHOT</version>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>com.fasterxml.jackson.core</groupId>
20+
<artifactId>jackson-annotations</artifactId>
21+
<version>${jackson.version}</version>
22+
</dependency>
23+
<dependency>
24+
<groupId>io.modelcontextprotocol.sdk</groupId>
25+
<artifactId>mcp-json</artifactId>
26+
<version>0.17.0-SNAPSHOT</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.slf4j</groupId>
30+
<artifactId>slf4j-api</artifactId>
31+
<version>${slf4j-api.version}</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.jspecify</groupId>
35+
<artifactId>jspecify</artifactId>
36+
<version>1.0.0</version>
37+
</dependency>
38+
</dependencies>
39+
</project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* The Model Context Protocol (MCP) specification package.
3+
*/
4+
package io.modelcontextprotocol.spec;

mcp-core/src/main/java/io/modelcontextprotocol/util/Assert.java renamed to mcp-spec-schema/src/main/java/io/modelcontextprotocol/util/Assert.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
package io.modelcontextprotocol.util;
66

7-
import java.util.Collection;
7+
import org.jspecify.annotations.Nullable;
88

9-
import reactor.util.annotation.Nullable;
9+
import java.util.Collection;
1010

1111
/**
1212
* Assertion utility class that assists in validating arguments.

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
<module>mcp-bom</module>
105105
<module>mcp</module>
106106
<module>mcp-core</module>
107+
<module>mcp-spec-schema</module>
107108
<module>mcp-json-jackson2</module>
108109
<module>mcp-json</module>
109110
<module>mcp-spring/mcp-spring-webflux</module>

0 commit comments

Comments
 (0)