test.sh 419 B

12345678910111213141516171819202122
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
  4. cd "$SCRIPT_DIR"
  5. PORT=8501
  6. BASE_URL="http://127.0.0.1:$PORT"
  7. echo "Checking /"
  8. curl -fsS "$BASE_URL/"
  9. echo
  10. echo "Calling MCP tool list_graphs"
  11. curl -sSf -X POST "$BASE_URL/mcp" \
  12. -H "Content-Type: application/json" \
  13. -d '{"tool":"list_graphs","input":{}}'
  14. echo
  15. echo "Tests passed (assuming HTTP 200 responses)"