Skip to content

Commit 5348a3a

Browse files
committed
fix: use npm with inspect
1 parent 9be3e12 commit 5348a3a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/code_health.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,8 @@ jobs:
7474
node-version-file: package.json
7575
cache: "npm"
7676
- name: Install dependencies & build
77-
run: npm ci
78-
- name: Remove dev dependencies
79-
run: |
80-
rm -rf node_modules
81-
npm pkg set scripts.prepare="exit 0"
82-
npm install --omit=dev
83-
- run: npx -y @modelcontextprotocol/inspector --cli --method tools/list -- node dist/index.js --connectionString "mongodb://localhost"
77+
run: npm ci --omit=dev --include=@modelcontextprotocol/inspector
78+
- run: npm run inspect -- --cli --method tools/list --connectionString "mongodb://localhost"
8479

8580
coverage:
8681
name: Report Coverage

0 commit comments

Comments
 (0)