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>
This commit is contained in:
parent
81a18ed02e
commit
d4c4a2517f
1 changed files with 20 additions and 11 deletions
|
|
@ -54,7 +54,7 @@ cd conformance-tests/client-jdk-http-client
|
|||
|
||||
This creates an executable JAR at:
|
||||
```
|
||||
target/client-jdk-http-client-1.0.0-SNAPSHOT.jar
|
||||
target/client-jdk-http-client-1.1.0-SNAPSHOT.jar
|
||||
```
|
||||
|
||||
## Running Tests
|
||||
|
|
@ -65,19 +65,19 @@ Run a single scenario:
|
|||
|
||||
```bash
|
||||
npx @modelcontextprotocol/conformance client \
|
||||
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar" \
|
||||
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar" \
|
||||
--scenario initialize
|
||||
|
||||
npx @modelcontextprotocol/conformance client \
|
||||
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar" \
|
||||
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar" \
|
||||
--scenario tools_call
|
||||
|
||||
npx @modelcontextprotocol/conformance client \
|
||||
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar" \
|
||||
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar" \
|
||||
--scenario elicitation-sep1034-client-defaults
|
||||
|
||||
npx @modelcontextprotocol/conformance client \
|
||||
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar" \
|
||||
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar" \
|
||||
--scenario sse-retry
|
||||
```
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ Run with verbose output:
|
|||
|
||||
```bash
|
||||
npx @modelcontextprotocol/conformance client \
|
||||
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar" \
|
||||
--command "java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar" \
|
||||
--scenario initialize \
|
||||
--verbose
|
||||
```
|
||||
|
|
@ -96,7 +96,7 @@ You can also run the client manually if you have a test server:
|
|||
|
||||
```bash
|
||||
export MCP_CONFORMANCE_SCENARIO=initialize
|
||||
java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.0.0-SNAPSHOT.jar http://localhost:3000/mcp
|
||||
java -jar conformance-tests/client-jdk-http-client/target/client-jdk-http-client-1.1.0-SNAPSHOT.jar http://localhost:3000/mcp
|
||||
```
|
||||
|
||||
## Test Results
|
||||
|
|
|
|||
Loading…
Reference in a new issue