Skip to content

Commit 2fa7e68

Browse files
authored
Merge pull request #1 from abarrac/fix/windows-powershell-installation
2 parents 3ed8362 + 53a43e7 commit 2fa7e68

File tree

6 files changed

+169
-76
lines changed

6 files changed

+169
-76
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@ All notable changes to MCP Selenium will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.1] - 2025-06-12
8+
9+
### Added
10+
- Added Windows installer (`install.bat`)
11+
- Fixed path handling in bash script for Windows
12+
- Proper JSON escaping for Windows paths
13+
- Updated documentation with platform-specific instructions
14+
715
## [1.0.0] - 2025-06-11
816

917
### Added
1018

1119
**Core MCP Server**
1220

13-
- Full MCP 2024-11-05 protocol implementation
21+
- Full MCP protocol implementation
1422
- JSON-RPC communication over stdin/stdout
1523
- Comprehensive tool discovery and validation
1624
- Graceful error handling and recovery

README.md

Lines changed: 18 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# MCP Selenium - The Industry Standard
22

33
[![Maven Central](https://img.shields.io/maven-central/v/io.github.abarrac/mcp-selenium.svg)](https://search.maven.org/artifact/io.github.abarrac/mcp-selenium)
4-
[![Build Status](https://github.com/abarrac/mcp-selenium/workflows/CI/badge.svg)](https://github.com/abarrac/mcp-selenium/actions)
54
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
65
[![Java](https://img.shields.io/badge/Java-11%2B-orange.svg)](https://openjdk.java.net/)
76

8-
> The professional-grade Selenium WebDriver MCP server for AI agents and automation tools, trusted by developers worldwide.
7+
> The professional-grade Selenium WebDriver MCP server for AI agents and automation tools.
98
109
MCP Selenium provides a comprehensive Model Context Protocol (MCP) implementation for browser automation, making it effortless for **any AI agent or automation tool** to interact with web applications. Built with enterprise-grade reliability and performance in mind.
1110

@@ -14,7 +13,7 @@ MCP Selenium provides a comprehensive Model Context Protocol (MCP) implementatio
1413
Before installing MCP Selenium, ensure you have:
1514

1615
- **Java 11+**
17-
- **Chrome Browser** - [Download here](https://www.google.com/chrome/) (recommended)
16+
- **Chrome Browser** - [Download here](https://www.google.com/chrome/)
1817
- **Claude Desktop** - [Download here](https://claude.ai/download) (for Claude integration)
1918

2019
### Quick Check
@@ -32,9 +31,11 @@ google-chrome --version # Linux
3231
## 🚀 Quick Start
3332

3433
### For Claude Desktop Users
35-
1. **Install & Configure:** `curl -sSL https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.sh | bash`
34+
1. **Install & Configure:**
35+
- **Windows**: `powershell -Command "Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.bat' -OutFile 'install.bat'; .\install.bat"`
36+
- **macOS/Linux**: `curl -sSL https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.sh | bash`
3637
2. **Restart:** Claude Desktop
37-
3. **Test:** Ask Claude to "take a screenshot of google.com"
38+
3. **Test:** Ask Claude to "using selenium MCP tools, navigate to google.com and take a screenshot"
3839

3940
For detailed installation options, see [Configuration](#-configuration).
4041

@@ -123,27 +124,34 @@ MCP Selenium Core
123124
Choose one of these installation methods:
124125

125126
**Option A: Quick Install (Recommended)**
127+
128+
**Windows:**
129+
```powershell
130+
powershell -Command "Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.bat' -OutFile 'install.bat'; .\install.bat"
131+
```
132+
133+
**macOS/Linux:**
126134
```bash
127135
curl -sSL https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.sh | bash
128136
```
129-
*This script automatically handles Step 2 configuration. Skip to Step 3 after installation.*
137+
*These scripts automatically handle Step 2 configuration. Skip to Step 3 after installation.*
130138

131139
**Option B: Manual Download**
132140
```bash
133141
# Download the latest release
134-
wget https://github.com/abarrac/mcp-selenium/releases/latest/download/mcp-selenium-1.0.0.jar
142+
wget https://github.com/abarrac/mcp-selenium/releases/latest/download/mcp-selenium-1.0.1.jar
135143

136144
# Move to a permanent location
137145
mkdir -p ~/.mcp-selenium
138-
mv mcp-selenium-1.0.0.jar ~/.mcp-selenium/mcp-selenium.jar
146+
mv mcp-selenium-1.0.1.jar ~/.mcp-selenium/mcp-selenium.jar
139147
```
140148

141149
**Option C: Build from Source**
142150
```bash
143151
git clone https://github.com/abarrac/mcp-selenium.git
144152
cd mcp-selenium
145153
mvn clean package
146-
cp target/mcp-selenium-1.0.0.jar ~/.mcp-selenium/mcp-selenium.jar
154+
cp target/mcp-selenium-1.0.1.jar ~/.mcp-selenium/mcp-selenium.jar
147155
```
148156

149157
#### Step 2: Configure Claude Desktop (Manual Installation Only)
@@ -172,7 +180,7 @@ Restart Claude Desktop for the changes to take effect.
172180
#### Step 4: Verify Installation
173181
Open Claude Desktop and try asking:
174182
```
175-
"Take a screenshot of google.com"
183+
"Take a screenshot of google.com using selenium MCP tools"
176184
```
177185

178186
If you see browser automation happening, you're all set! 🎉
@@ -227,27 +235,6 @@ MCP Selenium supports all major selector strategies:
227235
| Class | `class=value` | `class=btn-primary` |
228236
| Tag | `tag=value` | `tag=button` |
229237

230-
## 🚢 Installation Options
231-
232-
### Option 1: Quick Install Script
233-
```bash
234-
curl -sSL https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.sh | bash
235-
```
236-
237-
### Option 2: Maven/Gradle
238-
```xml
239-
<dependency>
240-
<groupId>io.github.abarrac</groupId>
241-
<artifactId>mcp-selenium</artifactId>
242-
<version>1.0.0</version>
243-
</dependency>
244-
```
245-
246-
### Option 3: GitHub Releases
247-
```bash
248-
wget https://github.com/abarrac/mcp-selenium/releases/latest/download/mcp-selenium-1.0.0.jar
249-
```
250-
251238
## 📋 Requirements
252239

253240
- **Java**: 11 or higher

README_es.md

Lines changed: 18 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# MCP Selenium - El Estándar de la Industria
22

33
[![Maven Central](https://img.shields.io/maven-central/v/io.github.abarrac/mcp-selenium.svg)](https://search.maven.org/artifact/io.github.abarrac/mcp-selenium)
4-
[![Build Status](https://github.com/abarrac/mcp-selenium/workflows/CI/badge.svg)](https://github.com/abarrac/mcp-selenium/actions)
54
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
65
[![Java](https://img.shields.io/badge/Java-11%2B-orange.svg)](https://openjdk.java.net/)
76

8-
> El servidor MCP de Selenium WebDriver de nivel profesional para agentes de IA y herramientas de automatización, en el que confían desarrolladores de todo el mundo.
7+
> El servidor MCP de Selenium WebDriver de nivel profesional para agentes de IA y herramientas de automatización.
98
109
MCP Selenium proporciona una implementación completa del Protocolo de Contexto de Modelo (MCP) para automatización de navegadores, haciendo que sea muy fácil para **cualquier agente de IA o herramienta de automatización** interactuar con aplicaciones web. Construido pensando en la fiabilidad y el rendimiento de nivel empresarial.
1110

@@ -14,7 +13,7 @@ MCP Selenium proporciona una implementación completa del Protocolo de Contexto
1413
Antes de instalar MCP Selenium, asegúrate de tener:
1514

1615
- **Java 11+**
17-
- **Navegador Chrome** - [Descargar aquí](https://www.google.com/chrome/) (recomendado)
16+
- **Navegador Chrome** - [Descargar aquí](https://www.google.com/chrome/)
1817
- **Claude Desktop** - [Descargar aquí](https://claude.ai/download) (para integración con Claude)
1918

2019
### Verificación Rápida
@@ -32,9 +31,11 @@ google-chrome --version # Linux
3231
## 🚀 Inicio Rápido
3332

3433
### Para Usuarios de Claude Desktop
35-
1. **Instalar y Configurar:** `curl -sSL https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.sh | bash`
34+
1. **Instalar y Configurar:**
35+
- **Windows**: `powershell -Command "Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.bat' -OutFile 'install.bat'; .\install.bat"`
36+
- **macOS/Linux**: `curl -sSL https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.sh | bash`
3637
2. **Reiniciar:** Claude Desktop
37-
3. **Probar:** Pregunta a Claude "toma una captura de pantalla de google.com"
38+
3. **Probar:** Pregunta a Claude "utilizando las herramientas de selenium MCP, navega a google.com y toma una captura de pantalla"
3839

3940
Para opciones de instalación detalladas, consulta [Configuración](#-configuración).
4041

@@ -123,27 +124,34 @@ MCP Selenium Core
123124
Elige uno de estos métodos de instalación:
124125

125126
**Opción A: Instalación Rápida (Recomendada)**
127+
128+
**Windows:**
129+
```powershell
130+
powershell -Command "Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.bat' -OutFile 'install.bat'; .\install.bat"
131+
```
132+
133+
**macOS/Linux:**
126134
```bash
127135
curl -sSL https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.sh | bash
128136
```
129-
*Este script maneja automáticamente la configuración del Paso 2. Salta al Paso 3 después de la instalación.*
137+
*Estos scripts manejan automáticamente la configuración del Paso 2. Salta al Paso 3 después de la instalación.*
130138

131139
**Opción B: Descarga Manual**
132140
```bash
133141
# Descargar la última versión
134-
wget https://github.com/abarrac/mcp-selenium/releases/latest/download/mcp-selenium-1.0.0.jar
142+
wget https://github.com/abarrac/mcp-selenium/releases/latest/download/mcp-selenium-1.0.1.jar
135143

136144
# Mover a una ubicación permanente
137145
mkdir -p ~/.mcp-selenium
138-
mv mcp-selenium-1.0.0.jar ~/.mcp-selenium/mcp-selenium.jar
146+
mv mcp-selenium-1.0.1.jar ~/.mcp-selenium/mcp-selenium.jar
139147
```
140148

141149
**Opción C: Compilar desde el Código Fuente**
142150
```bash
143151
git clone https://github.com/abarrac/mcp-selenium.git
144152
cd mcp-selenium
145153
mvn clean package
146-
cp target/mcp-selenium-1.0.0.jar ~/.mcp-selenium/mcp-selenium.jar
154+
cp target/mcp-selenium-1.0.1.jar ~/.mcp-selenium/mcp-selenium.jar
147155
```
148156

149157
#### Paso 2: Configurar Claude Desktop (Solo Instalación Manual)
@@ -174,7 +182,7 @@ Reinicia Claude Desktop para que los cambios surtan efecto.
174182
#### Paso 4: Verificar la Instalación
175183
Abre Claude Desktop y prueba preguntando:
176184
```
177-
"Toma una captura de pantalla de google.com"
185+
"Toma una captura de pantalla de google.com utilizando las herramientas de selenium MCP"
178186
```
179187

180188
¡Si ves que la automatización del navegador está funcionando, ya está todo listo! 🎉
@@ -229,27 +237,6 @@ MCP Selenium soporta todas las estrategias principales de selectores:
229237
| Class | `class=value` | `class=btn-primary` |
230238
| Tag | `tag=value` | `tag=button` |
231239

232-
## 🚢 Opciones de Instalación
233-
234-
### Opción 1: Script de Instalación Rápida
235-
```bash
236-
curl -sSL https://raw.githubusercontent.com/abarrac/mcp-selenium/main/install.sh | bash
237-
```
238-
239-
### Opción 2: Maven/Gradle
240-
```xml
241-
<dependency>
242-
<groupId>io.github.abarrac</groupId>
243-
<artifactId>mcp-selenium</artifactId>
244-
<version>1.0.0</version>
245-
</dependency>
246-
```
247-
248-
### Opción 3: Releases de GitHub
249-
```bash
250-
wget https://github.com/abarrac/mcp-selenium/releases/latest/download/mcp-selenium-1.0.0.jar
251-
```
252-
253240
## 📋 Requisitos
254241

255242
- **Java**: 11 o superior

install.bat

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
@echo off
2+
setlocal enabledelayedexpansion
3+
4+
echo Installing MCP Selenium for Windows...
5+
echo.
6+
7+
REM Check if Java is installed
8+
java -version >nul 2>&1
9+
if errorlevel 1 (
10+
echo ERROR: Java is not installed or not in PATH
11+
echo Please install Java 11+
12+
echo.
13+
pause
14+
exit /b 1
15+
)
16+
17+
echo Java found
18+
echo.
19+
20+
REM Create installation directory
21+
set INSTALL_DIR=%USERPROFILE%\.mcp-selenium
22+
if not exist "%INSTALL_DIR%" mkdir "%INSTALL_DIR%"
23+
24+
echo Downloading MCP Selenium...
25+
26+
REM Download using PowerShell (built into Windows)
27+
powershell -Command "try { Invoke-WebRequest -Uri 'https://github.com/abarrac/mcp-selenium/releases/latest/download/mcp-selenium-1.0.1.jar' -OutFile '%INSTALL_DIR%\mcp-selenium.jar' -UseBasicParsing; Write-Host 'Download completed' } catch { Write-Host 'Download failed'; exit 1 }"
28+
29+
if not exist "%INSTALL_DIR%\mcp-selenium.jar" (
30+
echo ERROR: Failed to download MCP Selenium JAR
31+
pause
32+
exit /b 1
33+
)
34+
35+
echo Download successful
36+
echo.
37+
38+
REM Claude Desktop config path for Windows
39+
set CONFIG_DIR=%APPDATA%\Claude
40+
set CONFIG_FILE=%CONFIG_DIR%\claude_desktop_config.json
41+
42+
echo Config location: %CONFIG_FILE%
43+
echo.
44+
45+
REM Create Claude config directory if it doesn't exist
46+
if not exist "%CONFIG_DIR%" mkdir "%CONFIG_DIR%"
47+
48+
REM Prepare JAR path with escaped backslashes for JSON
49+
set JAR_PATH=%INSTALL_DIR%\mcp-selenium.jar
50+
set JAR_PATH_JSON=!JAR_PATH:\=\\!
51+
52+
REM Check if config file exists
53+
if exist "%CONFIG_FILE%" (
54+
echo WARNING: Claude Desktop config already exists.
55+
echo Please manually add MCP Selenium to: %CONFIG_FILE%
56+
echo.
57+
echo Add this configuration to the mcpServers section:
58+
echo "selenium": {
59+
echo "command": "java",
60+
echo "args": ["-jar", "!JAR_PATH_JSON!"]
61+
echo }
62+
echo.
63+
) else (
64+
echo Creating Claude Desktop config...
65+
(
66+
echo {
67+
echo "mcpServers": {
68+
echo "selenium": {
69+
echo "command": "java",
70+
echo "args": ["-jar", "!JAR_PATH_JSON!"]
71+
echo }
72+
echo }
73+
echo }
74+
) > "%CONFIG_FILE%"
75+
echo Config created successfully
76+
echo.
77+
)
78+
79+
echo Installation completed!
80+
echo.
81+
echo Next steps:
82+
echo 1. Restart Claude Desktop
83+
echo 2. Test with: 'Using selenium MCP tools, navigate to google.com and take a screenshot'
84+
echo.
85+
echo For support, visit: https://github.com/abarrac/mcp-selenium
86+
echo.
87+
pause

0 commit comments

Comments
 (0)