From bca8bc2c06194db92b0e4741a3e3140f7df07f25 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Mon, 25 Aug 2025 18:24:13 -0600 Subject: [PATCH] Fixed a bug that made it so any MCP servers with dashes in the name would not be automatically populated for each agent --- scripts/mcp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mcp.sh b/scripts/mcp.sh index 556bb95..0cc4297 100755 --- a/scripts/mcp.sh +++ b/scripts/mcp.sh @@ -129,7 +129,7 @@ merge-functions() { jq -s 'add | unique' \ <(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" done }