Fixed a bug that made it so any MCP servers with dashes in the name would not be automatically populated for each agent
CI / All (macos-latest) (push) Has been cancelled
CI / All (ubuntu-latest) (push) Has been cancelled
CI / All (windows-latest) (push) Has been cancelled

This commit is contained in:
2025-08-25 18:24:13 -06:00
parent 5b0240b0b4
commit bca8bc2c06
+1 -1
View File
@@ -129,7 +129,7 @@ merge-functions() {
jq -s 'add | unique' \ jq -s 'add | unique' \
<(jq '.' <<< "$tool_json") \ <(jq '.' <<< "$tool_json") \
<(jq --argjson prefixes "$mcp_function_prefixes" 'map(select(.name as $s | $prefixes | any(. as $p | $s | startswith($p))))' "$FUNCTIONS_JSON_PATH") \ <(jq --argjson prefixes "$mcp_function_prefixes" 'map(select(.mcp as $mcp | $prefixes | index($mcp)))' "$FUNCTIONS_JSON_PATH") \
>> "${agent}/functions.json" >> "${agent}/functions.json"
done done
} }