Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

feat: implement cli/mcp for browser session management - #3

Merged
bertxtrella merged 32 commits into
mainfrom
cli
Feb 19, 2026
Merged

bertxtrella merged 32 commits into
mainfrom
cli

Conversation

@bertxtrella

Copy link
Copy Markdown
Contributor

No description provided.

@bertxtrella bertxtrella self-assigned this Feb 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements comprehensive CLI/MCP functionality for browser session management in the Aluvia Python SDK. It adds a JSON-first command-line interface for AI agents, an MCP (Model Context Protocol) server for integration with AI frameworks, automatic block detection and unblocking capabilities, and session management with lock files.

Changes:

  • Added CLI with commands for session management, account operations, and geo-targeting via aluvia and aluvia-sdk binaries
  • Implemented MCP server (aluvia-mcp package) exposing 10 tools for AI agent frameworks (Claude Desktop, Claude Code, Cursor, etc.)
  • Added block detection engine with weighted scoring system (0.0-1.0) to detect 403s, CAPTCHAs, WAF challenges, and automatically unblock by routing through proxies
  • Implemented session management with lock files, daemon mode, and CDP (Chrome DevTools Protocol) connection support via connect() function
  • Added browser automation features including IP rotation, geo-targeting, and dynamic proxy routing rules
  • Version bumped from 1.1.0 to 1.2.0

Reviewed changes

Copilot reviewed 32 out of 41 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
aluvia_sdk/bin/*.py CLI implementation with session, account, geos commands and daemon mode
aluvia_sdk/session/lock.py Lock file management for session coordination
aluvia_sdk/client/block_detection.py Block detection engine with weighted scoring
aluvia_sdk/client/aluvia_client.py Integration of block detection and CDP support
aluvia_sdk/connect.py Connect to running sessions via CDP
aluvia_mcp/aluvia_mcp/*.py MCP server implementation with 10 tools
pyproject.toml SDK package configuration with new scripts
aluvia_mcp/pyproject.toml Separate MCP package configuration
test_cli.py, test_block_detection.py Manual test scripts for new features
docs/*.md, skills/*/SKILL.md Documentation for CLI, MCP, and skill integrations
.github/workflows/*.yml CI/CD updates for SDK and MCP testing
examples/block_detection_example.py Example demonstrating block detection usage

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread aluvia_mcp/aluvia_mcp/mcp_tools.py Outdated
Comment thread aluvia_sdk/connect.py
Comment thread CHANGELOG.md
Comment thread aluvia_mcp/pyproject.toml Outdated
Comment thread pyproject.toml
Comment thread test_cli.py Outdated
Comment thread test_block_detection.py Outdated
bertxtrella and others added 6 commits February 18, 2026 17:15
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 43 changed files in this pull request and generated 18 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread aluvia_sdk/session/lock.py Outdated
Comment thread docs/getting-started.md Outdated
Comment thread aluvia_mcp/README.md Outdated
Comment thread aluvia_mcp/pyproject.toml Outdated
Comment thread aluvia_sdk/client/aluvia_client.py Outdated
Comment thread aluvia_mcp/aluvia_mcp/mcp_server.py Outdated
Comment thread aluvia_sdk/session/lock.py Outdated
Comment thread skills/openclaw-skill/SKILL.md Outdated
Comment thread aluvia_mcp/pyproject.toml Outdated
Comment thread aluvia_sdk/client/aluvia_client.py
bertxtrella and others added 9 commits February 18, 2026 17:40
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bertxtrella
bertxtrella merged commit 3cd4bef into main Feb 19, 2026
11 checks passed
@bertxtrella
bertxtrella deleted the cli branch February 19, 2026 01:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants