Production-ready element targeting for AI-assisted web development
A complete Chrome extension and MCP server system that enables precise element selection and AI-powered analysis for modern web development workflows.
- π― Element Targeting: Click-to-select any DOM element with visual feedback
- π€ AI Integration: Real-time analysis powered by Cursor AI
- π Security-First: JWT authentication, secure database, audit logging
- β‘ High Performance: Bun runtime, WebRTC communication, optimized queries
- π Cross-Platform: Works across Windows, macOS, and Linux
- π± Modern UI: Clean, responsive dark theme interface
- Bun runtime (recommended) or Node.js 18+
- Chrome browser
- Git
-
Clone the repository
git clone https://github.com/MinDav0/Vision2Code_Pointer_1.0.git cd Vision2Code_Pointer_1.0
-
Install dependencies
bun install
-
Set up environment
cp env.template .env # Edit .env with your secure JWT secret and admin password
-
Initialize database
cd packages/server bun run db:init
-
Start the server
bun run dev
-
Load Chrome extension
# Download the extension package (requires VirtualBox port forwarding) scp -P 2222 [email protected]:/home/sysadmin/Vision2Code_Pointer_1.0/mcp-pointer-extension-v2.2-fresh.tar.gz "C:\Users\Workspace\Desktop\VM Ubunut Dev\Extension"
- Extract
mcp-pointer-extension-v2.2-fresh.tar.gz
- Open Chrome β Extensions β Developer mode
- Click "Load unpacked" β Select the
build/
folder
Note: This command requires VirtualBox port forwarding configured:
- SSH: Host Port 2222 β Guest Port 22
- See
CROSS_PLATFORM_SETUP.md
for complete VirtualBox configuration
- Extract
- Navigate to
http://localhost:3001
- Login:
[email protected]
- Password: (set in your .env file)
- Click the MCP Pointer icon in your browser
- Click "π― Start Targeting"
- Hover over elements to highlight them
- Click to select an element
- View AI analysis results
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β Chrome β β MCP Server β β AI Services β
β Extension βββββΊβ (Bun Runtime) βββββΊβ (Cursor AI) β
β β β β β β
β β’ Element β β β’ Authentication β β β’ Analysis β
β Targeting β β β’ WebRTC β β β’ Suggestions β
β β’ Visual β β β’ Database β β β’ Code Examples β
β Feedback β β β’ API Routes β β β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
# Server Configuration
PORT=7007
HOST=0.0.0.0
# Database
DATABASE_PATH=./data/mcp-pointer.db
# Security (REQUIRED - Generate secure values)
JWT_SECRET=your-super-secure-jwt-secret-here
DEFAULT_ADMIN_PASSWORD=your-secure-admin-password
# AI Services (Optional)
CURSOR_WORKSPACE_PATH=/path/to/workspace
CURSOR_EXTENSION_ID=your-extension-id
Endpoint | Method | Description | Auth Required |
---|---|---|---|
/health |
GET | Server health check | β |
/auth/login |
POST | User authentication | β |
/api/status |
GET | System status | β |
/api/elements/analyze |
POST | Element analysis | β |
/webrtc/config |
GET | WebRTC configuration | β |
Vision2Code_Pointer_1.0/
βββ packages/
β βββ server/ # MCP Server (Bun)
β βββ chrome-extension/ # Chrome Extension
β βββ web/ # Web Interface
βββ docs/ # Documentation
βββ scripts/ # Build scripts
# Development
bun run dev # Start all services
bun run dev:server # Start server only
bun run dev:extension # Build extension
# Database
bun run db:init # Initialize database
bun run db:migrate # Run migrations
bun run db:seed # Seed data
# Production
bun run build # Build all packages
bun run start # Start production server
- Authentication: JWT tokens with secure expiration
- Database: SQLite with WAL mode and secure delete
- API: Rate limiting and input validation
- Secrets: Environment variable management (no hardcoded secrets)
- Audit: Comprehensive logging and monitoring
- Set production environment variables
- Configure reverse proxy (nginx/Apache)
- Set up SSL certificates
- Configure firewall rules
- Set up monitoring and logging
For Windows Chrome β Ubuntu VM setup, see CROSS_PLATFORM_SETUP.md
- β Phase 1: Core Architecture - Complete
- β Phase 2: Backend Services - Complete
- β Phase 3: Chrome Extension - Complete
- β Phase 4: AI Integration - Complete
- β Security: All hardcoded secrets removed
- β Documentation: Comprehensive guides created
scp -P 2222 [email protected]:/home/sysadmin/Vision2Code_Pointer_1.0/mcp-pointer-extension-v2.2-fresh.tar.gz "C:\Users\Workspace\Desktop\VM Ubunut Dev\Extension"
- Run the SCP command above on Windows
- Extract the .tar.gz file in the Extension folder
- Remove old extension first to avoid conflicts and caching issues
- Load the
build/
folder as unpacked extension in Chrome
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
MIT License - see LICENSE file for details.
- Documentation: Check the project documentation files
- Issues: GitHub Issues
- Cross-Platform Setup:
CROSS_PLATFORM_SETUP.md
- Security Guide:
SECURITY.md
Built with β€οΈ for the AI development community
Version 2.2 - Production Ready π