Skip to content

Commit 165fb4d

Browse files
Copilotnetzulo
andauthored
fix: pin @wdio/mcp version and replace snap Chromium with Google Chrome (#15)
* Initial plan * fix: pin @wdio/mcp version and use Google Chrome over snap Chromium Co-authored-by: netzulo <11871932+netzulo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: netzulo <11871932+netzulo@users.noreply.github.com>
1 parent ad2a7e3 commit 165fb4d

File tree

2 files changed

+14
-29
lines changed

2 files changed

+14
-29
lines changed

src/copilot/mcp-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"wdio-mcp": {
44
"type": "stdio",
55
"command": "npx",
6-
"args": ["-y", "@wdio/mcp"],
6+
"args": ["-y", "@wdio/mcp@0.1.0"],
77
"tools": [
88
"start_browser",
99
"navigate",

src/scripts/install_browsers.sh

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,24 @@ fi
1212

1313
apt-get update
1414

15-
# Try Chromium first; fall back between package names across distros
16-
if ! apt-get install -y --no-install-recommends \
17-
chromium-browser \
18-
libnss3 \
19-
libatk-bridge2.0-0 \
20-
libgtk-3-0 \
21-
libx11-xcb1 \
22-
libxcomposite1 \
23-
libxdamage1 \
24-
libxrandr2 \
25-
libgbm1 \
26-
libasound2 \
27-
fonts-liberation; then
28-
apt-get install -y --no-install-recommends \
29-
chromium \
30-
libnss3 \
31-
libatk-bridge2.0-0 \
32-
libgtk-3-0 \
33-
libx11-xcb1 \
34-
libxcomposite1 \
35-
libxdamage1 \
36-
libxrandr2 \
37-
libgbm1 \
38-
libasound2 \
39-
fonts-liberation
40-
fi
15+
# Install Google Chrome from the official APT repository to avoid snap-based Chromium packages
16+
apt-get install -y --no-install-recommends wget gnupg ca-certificates
17+
18+
install -m 0755 -d /etc/apt/keyrings
19+
wget -qO- https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /etc/apt/keyrings/google-chrome.gpg
20+
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
21+
22+
apt-get update
23+
apt-get install -y --no-install-recommends google-chrome-stable
4124

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

44-
if command -v chromium-browser >/dev/null 2>&1; then
27+
if command -v google-chrome >/dev/null 2>&1; then
28+
echo "Google Chrome installed: $(google-chrome --version || true)"
29+
elif command -v chromium-browser >/dev/null 2>&1; then
4530
echo "Chromium installed: $(chromium-browser --version || true)"
4631
elif command -v chromium >/dev/null 2>&1; then
4732
echo "Chromium installed: $(chromium --version || true)"
4833
else
49-
echo "Browser install completed, but no Chromium binary found on PATH." >&2
34+
echo "Browser install completed, but no supported browser binary found on PATH." >&2
5035
fi

0 commit comments

Comments
 (0)