-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_bn_mcp_bridge.sh
More file actions
executable file
·28 lines (22 loc) · 1020 Bytes
/
test_bn_mcp_bridge.sh
File metadata and controls
executable file
·28 lines (22 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -euo pipefail
# Compatibility smoke test for the optional Python multi-binary MCP bridge.
# The primary smartdiff path is now the Rust client against Binary Ninja GUI
# plugin REST servers; this script only checks the bridge if it is running.
BRIDGE_URL="${BRIDGE_URL:-http://localhost:8010}"
echo "=== Testing Optional Binary Ninja MCP Bridge ==="
echo ""
if ! curl -fsS "${BRIDGE_URL}/health" >/tmp/smartdiff-binja-bridge-health.json 2>/dev/null; then
echo "Bridge not found at ${BRIDGE_URL}."
echo "Primary path: use 'cargo run -p smart-diff-cli -- binja servers'."
exit 0
fi
echo "Bridge health:"
jq '.' /tmp/smartdiff-binja-bridge-health.json
echo ""
echo "If the bridge is configured for FastMCP, use its tool list_binary_servers()."
echo "For smartdiff itself, prefer the Rust CLI/MCP tools:"
echo " cargo run --quiet -p smart-diff-cli -- binja servers"
echo " cargo run --quiet -p smart-diff-cli -- binja functions port_9009 --limit 10"
echo ""
echo "=== Test Complete ==="