BotQuangAnh Host MCP
BotQuangAnh Host MCP is a secure Model Context Protocol (MCP) host runtime and native desktop studio. It connects AI models to local host environments with capability gating, chat workspace isolation, and full audit logging.
Key Capabilities
- MCP 2.0 Super-Tools: Consolidates all host operations into eight high-performance tools.
- Pre-bind Capability Gating: Requires explicit chat binding before any workspace access.
- Isolated Chat Workspaces: Allocates dedicated directories with storage quotas and auto-sweeping.
- Guarded Command Execution: Runs shell commands safely with timeouts, process supervision, and async task handoff.
- Stateless HTTP Transport: Prevents connection drops and session conflicts over Cloudflare tunnels.
- Native Rust Studio: Delivers a lightweight desktop interface using Rust, WebKitGTK, and 0 MB browser RAM bloat.
MCP 2.0 Super-Tools
BQA MCP 2.0 provides eight structured tools:
Installation
Prerequisites
- Linux (Ubuntu, Debian, Fedora, Arch)
- Python >= 3.10 and
uv - Optional for Native Desktop: Rust toolchain,
libwebkit2gtk-4.1-dev,libgtk-3-dev
Automated Install
Run the official installer script:
curl -fsSL https://raw.githubusercontent.com/nmhuei/bqa-mcp/main/install.sh | bash
The installer configures virtual environment .venv, builds native desktop binaries if Rust is available, generates .env, and links bqa into ~/.local/bin/.
Essential Commands
1. Service Lifecycle
bqa start # Start runtime: server, tunnel, bridge, and print connector URL
bqa stop # Stop all background services
bqa restart # Restart MCP server while keeping active tunnel URL
bqa status # Show current runtime status and health
bqa url # Display active connector URL
2. User Interfaces
bqa ui # Launch BQA Native Studio (Rust Desktop)
bqa ui --classic # Launch fallback Tkinter interface
bqa tui # Launch terminal UI for headless or SSH sessions
3. Session and Workspace Operations
bqa session list # List recent agent sessions
bqa session new # Create and bind a new session
bqa chats list # List active chat workspaces
bqa chats show <id> # Display workspace path and STATE.md details
bqa chats prune # Clean expired workspaces
4. Diagnostics and Logs
bqa doctor # Run environment diagnostics and public tunnel checks
bqa logs all -f # Stream unified logs (server, tunnel, launcher, audit)
Key Configuration
All settings reside in .env. Core parameters include:
Verification
Run the test suite using pytest:
.venv/bin/pytest -q
All 790 integration, regression, and stress tests pass with full assertion coverage.
Documentation
License
MIT License. See SECURITY.md for vulnerability disclosure policies.