fix: argc build reserve mcp functions (#183)

This commit is contained in:
sigoden
2025-04-01 19:50:57 +08:00
committed by GitHub
parent 358a539b55
commit e5f9a9806c
2 changed files with 9 additions and 1 deletions
+6 -1
View File
@@ -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