Fixed a bug that made it so any MCP servers with dashes in the name would not be automatically populated for each agent
This commit is contained in:
+1
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user