Skip to content

Commit d4c4a25

Browse files
committed
Fix instructions for running conformance tests
- The server-servlet app depends on mcp, which must be either installed or included in the compile artifact for `mvn exec:java` to pick it up. - Change the build instructions to build from root, use a `-pl` flag to target the servlet app. - Disable the exec plugin from the root pom. Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
1 parent 81a18ed commit d4c4a25

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

conformance-tests/VALIDATION_RESULTS.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ Uses the `client-spring-http-client` module with Spring Security OAuth2 and the
7878
### Server
7979
```bash
8080
# Start server
81-
cd conformance-tests/server-servlet
82-
../../mvnw compile exec:java -Dexec.mainClass="io.modelcontextprotocol.conformance.server.ConformanceServlet"
81+
./mvnw compile -pl conformance-tests/server-servlet -am exec:java
8382

8483
# Run tests (in another terminal)
8584
npx @modelcontextprotocol/conformance server --url http://localhost:8080/mcp --suite active
@@ -94,7 +93,7 @@ cd conformance-tests/client-jdk-http-client
9493
# Run all scenarios
9594
for scenario in initialize tools_call elicitation-sep1034-client-defaults sse-retry; do
9695
npx @modelcontextprotocol/conformance client \
97-
--command "java -jar target/client-jdk-http-client-1.0.0-SNAPSHOT.jar" \
96+
--command "java -jar target/client-jdk-http-client-1.1.0-SNAPSHOT.jar" \
9897
--scenario $scenario
9998
done
10099
```
@@ -111,7 +110,7 @@ cd conformance-tests/client-spring-http-client
111110
# Run auth suite
112111
npx @modelcontextprotocol/conformance@0.1.15 client \
113112
--spec-version 2025-11-25 \
114-
--command "java -jar target/client-spring-http-client-0.18.0-SNAPSHOT.jar" \
113+
--command "java -jar target/client-spring-http-client-1.1.0-SNAPSHOT.jar" \
115114
--suite auth
116115
```
117116

conformance-tests/client-jdk-http-client/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ cd conformance-tests/client-jdk-http-client
5454

5555
This creates an executable JAR at:
5656
```
57-
target/client-jdk-http-client-1.0.0-SNAPSHOT.jar
57+
target/client-jdk-http-client-1.1.0-SNAPSHOT.jar
5858
```
5959

6060
## Running Tests
@@ -65,27 +65,27 @@ Run a single scenario:
6565

6666
```bash
6767
npx @modelcontextprotocol/conformance client \
68-
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar" \
68+
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar" \
6969
--scenario initialize
7070

7171
npx @modelcontextprotocol/conformance client \
72-
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar" \
72+
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar" \
7373
--scenario tools_call
7474

7575
npx @modelcontextprotocol/conformance client \
76-
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar" \
76+
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar" \
7777
--scenario elicitation-sep1034-client-defaults
7878

7979
npx @modelcontextprotocol/conformance client \
80-
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar" \
80+
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar" \
8181
--scenario sse-retry
8282
```
8383

8484
Run with verbose output:
8585

8686
```bash
8787
npx @modelcontextprotocol/conformance client \
88-
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar" \
88+
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar" \
8989
--scenario initialize \
9090
--verbose
9191
```
@@ -96,7 +96,7 @@ You can also run the client manually if you have a test server:
9696

9797
```bash
9898
export MCP_CONFORMANCE_SCENARIO=initialize
99-
java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar http://localhost:3000/mcp
99+
java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar http://localhost:3000/mcp
100100
```
101101

102102
## Test Results

conformance-tests/server-servlet/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
<version>3.1.0</version>
6666
<configuration>
6767
<mainClass>io.modelcontextprotocol.conformance.server.ConformanceServlet</mainClass>
68+
<skip>false</skip>
6869
</configuration>
6970
</plugin>
7071
</plugins>

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@
263263
<artifactId>maven-deploy-plugin</artifactId>
264264
<version>${maven-deploy-plugin.version}</version>
265265
</plugin>
266+
<plugin>
267+
<groupId>org.codehaus.mojo</groupId>
268+
<artifactId>exec-maven-plugin</artifactId>
269+
<version>3.1.0</version>
270+
<configuration>
271+
<skip>true</skip>
272+
<mainClass>ignored</mainClass>
273+
</configuration>
274+
</plugin>
266275
</plugins>
267276
</build>
268277

0 commit comments

Comments
 (0)