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
2 changes: 1 addition & 1 deletion src/copilot/mcp-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"wdio-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@wdio/mcp"],
"args": ["-y", "@wdio/mcp@0.1.0"],
"tools": [
"start_browser",
"navigate",
Expand Down
41 changes: 13 additions & 28 deletions src/scripts/install_browsers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,24 @@ fi

apt-get update

# Try Chromium first; fall back between package names across distros
if ! apt-get install -y --no-install-recommends \
chromium-browser \
libnss3 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libx11-xcb1 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libgbm1 \
libasound2 \
fonts-liberation; then
apt-get install -y --no-install-recommends \
chromium \
libnss3 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libx11-xcb1 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libgbm1 \
libasound2 \
fonts-liberation
fi
# Install Google Chrome from the official APT repository to avoid snap-based Chromium packages
apt-get install -y --no-install-recommends wget gnupg ca-certificates

install -m 0755 -d /etc/apt/keyrings
wget -qO- https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /etc/apt/keyrings/google-chrome.gpg
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list

apt-get update
apt-get install -y --no-install-recommends google-chrome-stable

apt-get clean && rm -rf /var/lib/apt/lists/*

if command -v chromium-browser >/dev/null 2>&1; then
if command -v google-chrome >/dev/null 2>&1; then
echo "Google Chrome installed: $(google-chrome --version || true)"
elif command -v chromium-browser >/dev/null 2>&1; then
echo "Chromium installed: $(chromium-browser --version || true)"
elif command -v chromium >/dev/null 2>&1; then
echo "Chromium installed: $(chromium --version || true)"
else
echo "Browser install completed, but no Chromium binary found on PATH." >&2
echo "Browser install completed, but no supported browser binary found on PATH." >&2
fi
Loading