mirror of
https://github.com/gbrigandi/mcp-server-wazuh.git
synced 2025-12-20 20:32:20 -06:00
first commit
This commit is contained in:
15
tests/run_tests.sh
Executable file
15
tests/run_tests.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user