We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 358a539 commit e5f9a98Copy full SHA for e5f9a98
Argcfile.sh
@@ -71,6 +71,9 @@ build() {
71
else
72
echo 'Skipped building agents since agents.txt is missing'
73
fi
74
+ if [[ -f mcp.json ]]; then
75
+ argc mcp merge-functions -S
76
+ fi
77
}
78
79
# @cmd Build tools
scripts/mcp.sh
@@ -131,7 +131,12 @@ recovery-functions() {
131
132
# @cmd Generate function declarations for the mcp tools
133
generate-declarations() {
134
- curl -sS http://localhost:$MCP_BRIDGE_PORT/tools
+ pid="$(get-server-pid)"
135
+ if [[ -n "$pid" ]]; then
136
+ curl -sS http://localhost:$MCP_BRIDGE_PORT/tools
137
+ else
138
+ echo "[]"
139
140
141
142
# @cmd Wait for the mcp bridge server to ready
0 commit comments