fix: correct MCP server install test in test-docker-mcp.sh

server-filesystem does not support --help; use timeout + /dev/null stdin
to verify installation and startup without hanging the test script
This commit is contained in:
yuchou87
2026-03-01 11:24:12 +08:00
parent ef738f4787
commit 0eec640c37
+1 -1
View File
@@ -39,7 +39,7 @@ docker compose -f "$COMPOSE_FILE" run --rm --entrypoint sh "$SERVICE" -c 'uv --v
# Test MCP server installation (quick)
echo "✅ Testing @modelcontextprotocol/server-filesystem MCP server install with npx..."
docker compose -f "$COMPOSE_FILE" run --rm --entrypoint sh "$SERVICE" -c 'npx -y @modelcontextprotocol/server-filesystem --help'
docker compose -f "$COMPOSE_FILE" run --rm --entrypoint sh "$SERVICE" -c '</dev/null timeout 5 npx -y @modelcontextprotocol/server-filesystem /tmp || true'
echo ""
echo "🎉 All MCP tools are working correctly!"