Skip to content

MCP tool: let you point at DOM elements for your favorite agentic coding tool. Let AI see what you see.

License

Notifications You must be signed in to change notification settings

MinDav0/Vision2Code_Pointer_1.0

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

95 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 MCP Pointer v2.2

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.

✨ Features

  • 🎯 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

πŸš€ Quick Start

Prerequisites

  • Bun runtime (recommended) or Node.js 18+
  • Chrome browser
  • Git

Installation

  1. Clone the repository

    git clone https://github.com/MinDav0/Vision2Code_Pointer_1.0.git
    cd Vision2Code_Pointer_1.0
  2. Install dependencies

    bun install
  3. Set up environment

    cp env.template .env
    # Edit .env with your secure JWT secret and admin password
  4. Initialize database

    cd packages/server
    bun run db:init
  5. Start the server

    bun run dev
  6. 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

πŸ“– Usage

Web Interface

  • Navigate to http://localhost:3001
  • Login: [email protected]
  • Password: (set in your .env file)

Chrome Extension

  1. Click the MCP Pointer icon in your browser
  2. Click "🎯 Start Targeting"
  3. Hover over elements to highlight them
  4. Click to select an element
  5. View AI analysis results

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Chrome         β”‚    β”‚  MCP Server      β”‚    β”‚  AI Services    β”‚
β”‚  Extension      │◄──►│  (Bun Runtime)   │◄──►│  (Cursor AI)    β”‚
β”‚                 β”‚    β”‚                  β”‚    β”‚                 β”‚
β”‚ β€’ Element       β”‚    β”‚ β€’ Authentication β”‚    β”‚ β€’ Analysis      β”‚
β”‚   Targeting     β”‚    β”‚ β€’ WebRTC         β”‚    β”‚ β€’ Suggestions   β”‚
β”‚ β€’ Visual        β”‚    β”‚ β€’ Database       β”‚    β”‚ β€’ Code Examples β”‚
β”‚   Feedback      β”‚    β”‚ β€’ API Routes     β”‚    β”‚                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ”§ Configuration

Environment Variables

# 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

πŸ“š API Endpoints

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 ❌

πŸ› οΈ Development

Project Structure

Vision2Code_Pointer_1.0/
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ server/          # MCP Server (Bun)
β”‚   β”œβ”€β”€ chrome-extension/ # Chrome Extension
β”‚   └── web/             # Web Interface
β”œβ”€β”€ docs/                # Documentation
└── scripts/             # Build scripts

Available 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

πŸ”’ Security

  • 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

πŸš€ Deployment

Production Setup

  1. Set production environment variables
  2. Configure reverse proxy (nginx/Apache)
  3. Set up SSL certificates
  4. Configure firewall rules
  5. Set up monitoring and logging

Cross-Platform Setup

For Windows Chrome β†’ Ubuntu VM setup, see CROSS_PLATFORM_SETUP.md

πŸ“Š Current Status

  • βœ… 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

🎯 Extension Deployment

Standard Command

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"

Installation Steps

  1. Run the SCP command above on Windows
  2. Extract the .tar.gz file in the Extension folder
  3. Remove old extension first to avoid conflicts and caching issues
  4. Load the build/ folder as unpacked extension in Chrome

⚠️ Important: Always remove the old extension before loading a new version to prevent Chrome caching issues that can cause connection problems.

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ†˜ Support

  • 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 πŸš€

About

MCP tool: let you point at DOM elements for your favorite agentic coding tool. Let AI see what you see.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 78.2%
  • HTML 9.2%
  • JavaScript 7.3%
  • CSS 3.9%
  • Shell 1.4%