Skip to content

Commit 12a161f

Browse files
refactor: move conformance deps to root package.json
Remove the separate test/conformance/package.json — conformance runner is now a root devDependency. No more separate npm install step in CI. Scripts updated to run from repo root. Shell script paths adjusted. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 51900b9 commit 12a161f

File tree

6 files changed

+110
-1866
lines changed

6 files changed

+110
-1866
lines changed

.github/workflows/conformance.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
cache: npm
2626
- run: npm ci
2727
- run: npm run build
28-
- run: cd test/conformance && npm install
2928
- run: npm run test:conformance:client:all
3029

3130
server-conformance:
@@ -38,5 +37,4 @@ jobs:
3837
cache: npm
3938
- run: npm ci
4039
- run: npm run build
41-
- run: cd test/conformance && npm install
4240
- run: npm run test:conformance:server

package-lock.json

Lines changed: 101 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@
8484
"start": "npm run server",
8585
"server": "tsx watch --clear-screen=false scripts/cli.ts server",
8686
"client": "tsx scripts/cli.ts client",
87-
"test:conformance:server": "cd test/conformance && npm run test:server",
88-
"test:conformance:server:all": "cd test/conformance && npm run test:server:all",
89-
"test:conformance:server:run": "cd test/conformance && npm run test:server:run",
90-
"test:conformance:client": "cd test/conformance && npm run test:client",
91-
"test:conformance:client:all": "cd test/conformance && npm run test:client:all"
87+
"test:conformance:server": "test/conformance/scripts/run-server-conformance.sh --expected-failures test/conformance/conformance-baseline.yml",
88+
"test:conformance:server:all": "test/conformance/scripts/run-server-conformance.sh --suite all --expected-failures test/conformance/conformance-baseline.yml",
89+
"test:conformance:server:run": "npx tsx test/conformance/src/everythingServer.ts",
90+
"test:conformance:client": "npx @modelcontextprotocol/conformance client --command 'npx tsx test/conformance/src/everythingClient.ts' --expected-failures test/conformance/conformance-baseline.yml",
91+
"test:conformance:client:all": "npx @modelcontextprotocol/conformance client --command 'npx tsx test/conformance/src/everythingClient.ts' --suite all --expected-failures test/conformance/conformance-baseline.yml"
9292
},
9393
"dependencies": {
9494
"@hono/node-server": "^1.19.9",
@@ -123,6 +123,7 @@
123123
},
124124
"devDependencies": {
125125
"@cfworker/json-schema": "^4.1.1",
126+
"@modelcontextprotocol/conformance": "0.1.11",
126127
"@eslint/js": "^9.39.1",
127128
"@types/content-type": "^1.1.8",
128129
"@types/cors": "^2.8.17",

0 commit comments

Comments
 (0)