Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/daily-team-status.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions actions/setup/sh/check_mcp_servers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,15 @@ while IFS= read -r SERVER_NAME; do

echo "Server URL: $SERVER_URL"

# Extract authentication headers if present
# Extract authentication headers if present in config, otherwise use gateway API key
AUTH_HEADER=""
if echo "$SERVER_CONFIG" | jq -e '.headers.Authorization' >/dev/null 2>&1; then
AUTH_HEADER=$(echo "$SERVER_CONFIG" | jq -r '.headers.Authorization' 2>/dev/null)
echo "Authentication: Configured (${AUTH_HEADER:0:20}...)"
echo "Authentication: From config (${AUTH_HEADER:0:20}...)"
elif [ -n "$GATEWAY_API_KEY" ]; then
# Use gateway API key for all gatewayed servers
AUTH_HEADER="$GATEWAY_API_KEY"
echo "Authentication: Using gateway API key (${AUTH_HEADER:0:8}...)"
else
echo "Authentication: None"
fi
Expand Down
7 changes: 7 additions & 0 deletions actions/setup/sh/check_mcp_servers_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,13 @@ test_validation_functions_exist() {
else
print_result "Tool display logic missing" "FAIL"
fi

# Check for gateway API key fallback logic
if grep -q "Using gateway API key" "$SCRIPT_PATH"; then
print_result "Gateway API key fallback logic exists" "PASS"
else
print_result "Gateway API key fallback logic missing" "FAIL"
fi
}

# Run all tests
Expand Down
Loading