Skip to content

Commit 255ae33

Browse files
committed
pin to 0.16.2, add more verbose output
1 parent 608ac31 commit 255ae33

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"devDependencies": {
5050
"@eslint/js": "^9.25.1",
51-
"@modelcontextprotocol/inspector": "^0.16.2",
51+
"@modelcontextprotocol/inspector": "0.16.2",
5252
"@types/node": "^24.1.0",
5353
"@vitest/coverage-v8": "^3.2.4",
5454
"eslint": "^9.25.1",

tests/e2e/test-get-item-details.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,16 @@ cd "$TEMP_DIR"
6363
# Copy the tarball to temp dir for npx to use
6464
cp "$PROJECT_ROOT/$TARBALL" .
6565

66-
echo "Running: npx --yes --no-install @modelcontextprotocol/inspector --cli -e ROLLBAR_ACCESS_TOKEN=\$ROLLBAR_E2E_READ_TOKEN npx --yes ./$TARBALL --method tools/call --tool-name get-item-details --tool-arg counter=8 --tool-arg max_tokens=100"
66+
INSPECTOR_BIN="$PROJECT_ROOT/node_modules/.bin/mcp-inspector"
67+
if [ ! -x "$INSPECTOR_BIN" ]; then
68+
echo -e "${RED}✗ MCP inspector binary not found at $INSPECTOR_BIN${NC}"
69+
exit 1
70+
fi
71+
72+
echo "Running: $INSPECTOR_BIN --cli -e ROLLBAR_ACCESS_TOKEN=\$ROLLBAR_E2E_READ_TOKEN npx --yes ./$TARBALL --method tools/call --tool-name get-item-details --tool-arg counter=8 --tool-arg max_tokens=100"
6773

6874
# Run the command and capture output
69-
npx --yes --no-install @modelcontextprotocol/inspector --cli -e ROLLBAR_ACCESS_TOKEN=$ROLLBAR_E2E_READ_TOKEN npx --yes ./$TARBALL --method tools/call --tool-name get-item-details --tool-arg counter=8 --tool-arg max_tokens=100 > test-output.json 2>&1
75+
"$INSPECTOR_BIN" --cli -e ROLLBAR_ACCESS_TOKEN=$ROLLBAR_E2E_READ_TOKEN npx --yes ./$TARBALL --method tools/call --tool-name get-item-details --tool-arg counter=8 --tool-arg max_tokens=100 > test-output.json 2>&1
7076

7177
# Check the output using jq
7278
HAS_CONTENT=$(jq -r 'has("content")' test-output.json 2>/dev/null || echo "false")

0 commit comments

Comments
 (0)