We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e74de commit 616d8d8Copy full SHA for 616d8d8
scripts/mcp.sh
@@ -145,7 +145,7 @@ generate-declarations() {
145
# @cmd Wait for the mcp bridge server to ready
146
wait-for-server() {
147
while true; do
148
- if [[ "$(curl -fsS http://localhost:$MCP_BRIDGE_PORT/health 2>&1)" == "OK" ]]; then
+ if [[ "$(curl -fsS --max-time 5 http://localhost:$MCP_BRIDGE_PORT/health 2>&1)" == "OK" ]]; then
149
break;
150
fi
151
sleep 1
@@ -154,7 +154,7 @@ wait-for-server() {
154
155
# @cmd Get the server pid
156
get-server-pid() {
157
- curl -fsSL http://localhost:$MCP_BRIDGE_PORT/pid 2>/dev/null || true
+ curl -fsS --max-time 5 http://localhost:$MCP_BRIDGE_PORT/pid 2>/dev/null || true
158
}
159
160
_ask_json_data() {
0 commit comments