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
+3
View File
@@ -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
+5
View File
@@ -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() {
pid="$(get-server-pid)"
if [[ -n "$pid" ]]; then
curl -sS http://localhost:$MCP_BRIDGE_PORT/tools 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