Skip to content

Commit 44f7478

Browse files
committed
Wait for mcp inspector to actually boot
1 parent 8389290 commit 44f7478

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
path: dist/
4242

4343
test-mcp:
44-
runs-on: ubuntu-latest
44+
runs-on: ubuntu-24.04
4545
needs: build
4646

4747
steps:
@@ -61,6 +61,7 @@ jobs:
6161
- name: Test with MCP Inspector
6262
run: |
6363
npx @modelcontextprotocol/inspector node dist/index.js &
64-
sleep 5
65-
kill %1
66-
continue-on-error: true
64+
curl -O https://raw.githubusercontent.com/vishnubob/wait-for-it/refs/heads/master/wait-for-it.sh
65+
chmod +x wait-for-it.sh
66+
./wait-for-it.sh --timeout=240 -h localhost -p 6274
67+
curl -v http://localhost:6277/config

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ logs/
2929
# Testing
3030
coverage/
3131
.nyc_output/
32+
wait-for-it.sh
3233

3334
# Package manager
3435
yarn.lock

0 commit comments

Comments
 (0)