fix: argc build reserve mcp functions (#183)
This commit is contained in:
@@ -71,6 +71,9 @@ build() {
|
|||||||
else
|
else
|
||||||
echo 'Skipped building agents since agents.txt is missing'
|
echo 'Skipped building agents since agents.txt is missing'
|
||||||
fi
|
fi
|
||||||
|
if [[ -f mcp.json ]]; then
|
||||||
|
argc mcp merge-functions -S
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# @cmd Build tools
|
# @cmd Build tools
|
||||||
|
|||||||
+6
-1
@@ -131,7 +131,12 @@ recovery-functions() {
|
|||||||
|
|
||||||
# @cmd Generate function declarations for the mcp tools
|
# @cmd Generate function declarations for the mcp tools
|
||||||
generate-declarations() {
|
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
|
# @cmd Wait for the mcp bridge server to ready
|
||||||
|
|||||||
Reference in New Issue
Block a user