mcp-server-wazuh/tests/run_tests.sh
Gianluca Brigandi ce2460928a first commit
2025-05-07 11:16:24 -07:00

16 lines
396 B
Bash
Executable File

#!/bin/bash
echo "Running all tests..."
cargo test
echo "Building MCP client CLI..."
cargo build --bin mcp_client_cli
if nc -z localhost 8000 2>/dev/null; then
echo "Testing MCP client CLI against running server..."
./target/debug/mcp_client_cli health
./target/debug/mcp_client_cli get-data
else
echo "MCP server is not running. Start it with 'cargo run' to test the CLI."
fi