MCP Servers

模型上下文协议服务器、框架、SDK 和模板的综合目录。

M
MCP Server Proposal
作者 @vbrazo

MCP server by vbrazo

创建于 11/20/2025
更新于 25 days ago
Repository documentation and setup instructions

🛡️ AI Compliance Copilot

An AI-powered compliance assistant that automatically analyzes GitHub PRs for security vulnerabilities, license compliance, code quality issues, and custom company rules. Powered by E2B sandboxes, MCP integrations, and Groq AI.

License Node TypeScript

✨ Features

🔒 Security Analysis

  • Automatic detection of hardcoded secrets (API keys, passwords, tokens)
  • SQL injection and XSS vulnerability scanning
  • Weak cryptography identification
  • Dangerous function usage detection (eval, exec)

📜 License Compliance

  • GPL violation detection
  • Missing license header identification
  • Open source license compatibility checking
  • Proprietary code protection

🎯 Code Quality

  • Cyclomatic complexity analysis
  • Code smell detection
  • Best practice validation
  • Maintainability scoring

⚙️ Custom Rules

  • Configurable regex patterns
  • Company-specific policy enforcement
  • Banned dependency detection
  • Custom severity levels

🏗️ Architecture

graph LR
    A[GitHub PR] -->|Webhook| B[Backend API]
    B -->|Spin up| C[E2B Sandbox]
    C -->|MCP Tools| D[GitHub MCP]
    C -->|MCP Tools| E[Security Scanners]
    B -->|Analyze| F[Groq AI]
    F -->|Findings| B
    B -->|Comment| A
    B -->|Store| G[(PostgreSQL)]
    H[Dashboard] -->|Fetch| B

Tech Stack

  • Backend: Node.js + TypeScript + Express
  • AI: Groq (llama-3.1-70b-versatile)
  • Sandboxes: E2B Code Interpreter
  • Integrations: MCP (Model Context Protocol)
  • Frontend: Next.js 14 + Tailwind CSS + shadcn/ui
  • Database: PostgreSQL + Redis
  • Deployment: Docker + GitHub Actions

🚀 Quick Start

Prerequisites

  • Node.js 18+ and npm 9+
  • Docker and Docker Compose
  • GitHub App credentials
  • E2B API key
  • Groq API key

Installation

  1. Clone the repository
git clone https://github.com/yourusername/ai-compliance-copilot.git
cd ai-compliance-copilot
  1. Install dependencies
npm install
  1. Setup environment variables
cp .env.example .env
# Edit .env with your API keys and credentials
  1. Start services with Docker
docker-compose up -d postgres redis
  1. Run database migrations
npm run migrate --workspace=backend
  1. Start development servers
npm run dev

The backend will be available at http://localhost:3001 and the frontend at http://localhost:3000.

📖 Documentation

🧪 Demo Repositories

This project includes three sample repositories with intentional compliance issues:

  • vulnerable-ecommerce - E-commerce app with hardcoded secrets and SQL injection
  • corporate-backend - API server with license violations and code quality issues
  • crypto-wallet - Cryptocurrency wallet with weak cryptography and security flaws

See demo-repos/README.md for details.

🛠️ Development

Project Structure

ai-compliance-copilot/
├── backend/              # Node.js API + E2B agent
│   ├── src/
│   │   ├── agent/       # E2B sandbox orchestration
│   │   ├── analysis/    # Groq AI integration
│   │   ├── compliance/  # Rules engine
│   │   ├── github/      # GitHub App handlers
│   │   └── api/         # REST API routes
│   └── tests/           # Backend tests
├── frontend/            # Next.js dashboard
│   ├── app/            # App router pages
│   ├── components/     # React components
│   └── lib/            # Utilities
├── demo-repos/         # Sample vulnerable repos
├── docs/               # Documentation
└── docker-compose.yml  # Local development stack

Running Tests

# Run all tests
npm test

# Run backend tests only
npm test --workspace=backend

# Run with coverage
npm test -- --coverage

Building for Production

# Build all workspaces
npm run build

# Build Docker images
docker-compose build

🚢 Deployment

Deploy with Docker

docker-compose up -d

Deploy to Cloud

See docs/DEPLOYMENT.md for detailed instructions on deploying to:

  • Railway (recommended for backend)
  • Vercel (recommended for frontend)
  • AWS/GCP/Azure

GitHub App Setup

  1. Create a new GitHub App at https://github.com/settings/apps/new
  2. Set webhook URL to https://your-domain.com/api/webhook
  3. Configure permissions (see docs/DEPLOYMENT.md)
  4. Generate and download private key
  5. Update .env with App ID and private key

📊 Usage

Automatic Analysis

Once installed, the bot automatically analyzes PRs when:

  • A new PR is opened
  • An existing PR is updated
  • Someone pushes new commits

Manual Commands

Comment on any PR with:

  • @compliance-bot scan - Trigger manual analysis
  • @compliance-bot fix - Create a PR with automated fixes
  • @compliance-bot ignore <rule> - Ignore specific findings

Dashboard

Access the dashboard at http://localhost:3000/dashboard to:

  • View analysis history
  • Configure custom rules
  • Monitor compliance statistics
  • Manage repository settings

🤝 Contributing

Contributions are welcome! Please read our Contributing Guide for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • E2B - Sandboxed code execution
  • Groq - Fast AI inference
  • MCP - Model Context Protocol
  • shadcn/ui - UI components

📧 Support


Built with ❤️ for the E2B + MCP Hackathon

快速设置
此服务器的安装指南

安装命令 (包未发布)

git clone https://github.com/vbrazo/mcp-server-proposal
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。

Cursor 配置 (mcp.json)

{ "mcpServers": { "vbrazo-mcp-server-proposal": { "command": "git", "args": [ "clone", "https://github.com/vbrazo/mcp-server-proposal" ] } } }