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:
parent
ef738f4787
commit
0eec640c37
1 changed files with 1 additions and 1 deletions
|
|
@ -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!"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue