diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/mcp.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/mcp.sh b/scripts/mcp.sh index eb016b3..d712838 100755 --- a/scripts/mcp.sh +++ b/scripts/mcp.sh @@ -131,7 +131,12 @@ recovery-functions() { # @cmd Generate function declarations for the mcp tools generate-declarations() { - curl -sS http://localhost:$MCP_BRIDGE_PORT/tools + pid="$(get-server-pid)" + if [[ -n "$pid" ]]; then + curl -sS http://localhost:$MCP_BRIDGE_PORT/tools + else + echo "[]" + fi } # @cmd Wait for the mcp bridge server to ready |
