rapidtriage-mcp
v2.1.0
Published
YarlisAISolutions RapidTriage MCP - AI-powered browser debugging and triage platform using Model Context Protocol with Cloud Run support
Maintainers
Readme
🚀 RapidTriage MCP Server
Model Context Protocol server for AI-powered browser debugging and triage
📋 Table of Contents
- Overview
- Features
- Prerequisites
- Quick Start
- Installation
- Configuration
- Available Tools
- IDE Integration
- API Reference
- Troubleshooting
- Contributing
- Support
- License
🎯 Overview
RapidTriage MCP Server is a Model Context Protocol implementation that enables AI assistants to interact with browsers for debugging, testing, and analysis. It provides comprehensive browser control and inspection capabilities through a standardized protocol that works with any MCP-compatible IDE or AI platform.
What is MCP?
The Model Context Protocol (MCP) is an open standard that enables AI assistants to interact with external tools and services. RapidTriage MCP Server implements this protocol to provide browser debugging capabilities to AI coding assistants.
✨ Features
Core Capabilities
- 🔍 Browser Inspection - Access console logs, network requests, and DOM elements
- 📸 Screenshot Capture - Full-page and viewport screenshots with annotations
- 🎯 Element Selection - Inspect and interact with specific DOM elements
- 📊 Network Monitoring - Track all network requests and responses
- 🔬 Console Access - Read console logs, errors, and warnings in real-time
Advanced Auditing
- ♿ Accessibility Audits - WCAG 2.1 compliance checking
- ⚡ Performance Analysis - Core Web Vitals and performance metrics
- 🔍 SEO Audits - Search engine optimization analysis
- ✅ Best Practices - Security headers, HTTPS, and modern web standards
Developer Experience
- 🔄 Real-time Updates - Live browser state monitoring
- 🤖 AI-Optimized - Structured outputs for LLM consumption
- 🔧 Multi-IDE Support - Works with 10+ popular IDEs
- 📦 Zero Config - Works out of the box with sensible defaults
📋 Prerequisites
- Node.js 18.0.0 or higher
- npm or yarn package manager
- Chrome/Chromium browser (for audit features)
- RapidTriage Server running (see Quick Start)
🚀 Quick Start
# Step 1: Start the browser server
npx @yarlisai/rapidtriage-server@latest
# Step 2: In another terminal, start the MCP server
npx @yarlisai/rapidtriage-mcp@latest
# Step 3: Configure your IDE (see IDE Integration section)That's it! Your AI assistant can now interact with browsers.
📦 Installation
Using npx (Recommended)
npx @yarlisai/rapidtriage-mcp@latestGlobal Installation
npm install -g @yarlisai/rapidtriage-mcpLocal Development
# Clone the repository
git clone https://github.com/YarlisAISolutions/rapidtriageME.git
cd rapidtriageME/rapidtriage-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Start the server
npm start⚙️ Configuration
Environment Variables
# Server connection
BROWSER_TOOLS_PORT=3025 # Port for browser server connection
BROWSER_TOOLS_HOST=localhost # Host for browser server
# Debugging
DEBUG=true # Enable debug logging
LOG_LEVEL=info # Log level (error, warn, info, debug)
# Performance
TIMEOUT=30000 # Request timeout in milliseconds
MAX_RETRIES=3 # Maximum connection retry attemptsConfiguration File
Create a .rapidtriagerc file in your project root:
{
"browserServer": {
"host": "localhost",
"port": 3025,
"secure": false
},
"mcp": {
"name": "rapidtriage",
"version": "1.0.0"
},
"features": {
"screenshots": true,
"audits": true,
"console": true,
"network": true
}
}🛠️ Available Tools
Browser Control
| Tool | Description | Parameters |
|------|-------------|------------|
| mcp_navigate | Navigate to a URL | url: string |
| mcp_screenshot | Capture screenshot | fullPage?: boolean, selector?: string |
| mcp_executeJS | Execute JavaScript | code: string |
| mcp_click | Click an element | selector: string |
| mcp_type | Type text | selector: string, text: string |
Debugging Tools
| Tool | Description | Returns |
|------|-------------|---------|
| mcp_getConsoleLogs | Get all console logs | Log entries array |
| mcp_getConsoleErrors | Get console errors only | Error entries array |
| mcp_getNetworkLogs | Get all network requests | Request/response array |
| mcp_getNetworkErrors | Get failed requests | Failed requests array |
| mcp_getSelectedElement | Get selected DOM element | Element details |
Audit Tools
| Tool | Description | Metrics |
|------|-------------|---------|
| mcp_runAccessibilityAudit | WCAG compliance check | Violations, passes, incomplete |
| mcp_runPerformanceAudit | Performance metrics | LCP, FID, CLS, TTI, Speed Index |
| mcp_runSEOAudit | SEO analysis | Meta tags, structured data, crawlability |
| mcp_runBestPracticesAudit | Security & standards | HTTPS, headers, console errors |
Utility Tools
| Tool | Description | Parameters |
|------|-------------|------------|
| mcp_waitForSelector | Wait for element | selector: string, timeout?: number |
| mcp_getPageMetrics | Get page metrics | None |
| mcp_clearBrowserData | Clear browser data | cookies?: boolean, cache?: boolean |
🔧 IDE Integration
Cursor IDE
Edit ~/.cursor/config.json:
{
"mcpServers": {
"rapidtriage": {
"command": "npx",
"args": ["@yarlisai/rapidtriage-mcp@latest"],
"env": {
"BROWSER_TOOLS_PORT": "3025"
}
}
}
}VS Code with Continue
Edit ~/.continue/config.json:
{
"models": [...],
"mcpServers": {
"rapidtriage": {
"command": "npx",
"args": ["@yarlisai/rapidtriage-mcp@latest"]
}
}
}Claude Desktop
Edit ~/Library/Application Support/Claude/config.json (macOS):
{
"mcpServers": {
"rapidtriage": {
"command": "npx",
"args": ["@yarlisai/rapidtriage-mcp@latest"]
}
}
}Other IDEs
See our IDE Configuration Guide for:
- Windsurf
- Zed
- Cline
- JetBrains IDEs
- Neovim
- Sublime Text
- And more...
📖 API Reference
Protocol
The MCP server communicates using JSON-RPC 2.0 over stdio (standard input/output).
Request Format
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "mcp_screenshot",
"arguments": {
"fullPage": true
}
},
"id": 1
}Response Format
{
"jsonrpc": "2.0",
"result": {
"content": [
{
"type": "text",
"text": "Screenshot captured successfully"
},
{
"type": "image",
"data": "base64_encoded_image_data"
}
]
},
"id": 1
}🔍 Troubleshooting
Common Issues
Server Connection Failed
# Check if browser server is running
curl http://localhost:3025/health
# Restart the browser server
npx @yarlisai/rapidtriage-server@latestMCP Server Not Found in IDE
- Restart your IDE after configuration
- Check Node.js is in PATH:
node --version - Try absolute path to npx:
{ "command": "/usr/local/bin/npx", "args": ["@yarlisai/rapidtriage-mcp@latest"] }
Chrome Not Found for Audits
# Install Chrome or Chromium
# macOS
brew install --cask google-chrome
# Linux
sudo apt-get install chromium-browser
# Set Chrome path explicitly
export CHROME_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"Debug Mode
Enable debug logging for troubleshooting:
DEBUG=true npx @yarlisai/rapidtriage-mcp@latestCheck logs at:
- macOS/Linux:
~/.rapidtriage/logs/ - Windows:
%APPDATA%\rapidtriage\logs\
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
# Clone the repo
git clone https://github.com/YarlisAISolutions/rapidtriageME.git
cd rapidtriageME/rapidtriage-mcp
# Install dependencies
npm install
# Run tests
npm test
# Build
npm run build
# Run locally
npm start💬 Support
- 📧 Email: [email protected]
- 💬 Discord: Join our community
- 🐛 Issues: GitHub Issues
- 📖 Docs: rapidtriage.me/docs
📄 License
MIT © YarlisAISolutions
