slopwatch-mcp-server

JoodasCode/slopwatch-mcp-server

3.2

If you are the rightful owner of slopwatch-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

SlopWatch is a Model Context Protocol (MCP) server designed for real-time AI lie detection in code development environments.

šŸ”„ SlopWatch MCP Server

Professional AI lie detection for Windsurf IDE & Claude Desktop

SlopWatch is a production-ready Model Context Protocol (MCP) server that provides real-time AI lie detection for code development environments. It analyzes AI claims against actual code to catch false assertions and inconsistencies.

✨ Features

  • 🚨 Real-time Lie Detection: Automatically detects when AI makes false claims about code
  • šŸ“Š Multi-language Support: JavaScript, TypeScript, Python, CSS, HTML, React
  • šŸŽÆ Pattern Matching: Advanced regex patterns for different programming concepts
  • ⚔ Fast Analysis: Optimized for quick analysis of large codebases
  • šŸ”Œ MCP Integration: Native support for Windsurf and Claude Desktop
  • šŸ“ˆ Analytics: Track lies detected and accuracy metrics

šŸš€ Quick Start

Prerequisites

  • Node.js 18 or higher
  • npm or yarn

Installation

  1. Install the package:

    npm install -g slopwatch-mcp-server
    
  2. Configure Windsurf: Add to your ~/.windsurf/settings.json:

    {
      "mcpServers": {
        "slopwatch": {
          "command": "slopwatch-mcp-server",
          "args": [],
          "env": {}
        }
      }
    }
    
  3. Restart Windsurf and start using SlopWatch!

šŸ“– Usage

Available Commands

analyze_claim

Analyze an AI claim against your actual code:

analyze_claim "I've added comprehensive error handling"

Parameters:

  • claim (required): The AI claim to analyze
  • workspaceDir (optional): Directory to analyze (defaults to current)
  • fileTypes (optional): Specific file extensions to check
  • maxFiles (optional): Maximum files to analyze (default: 100)
get_status

Get current SlopWatch statistics:

get_status

Parameters:

  • detailed (optional): Show detailed statistics

šŸŽÆ Detection Capabilities

JavaScript/TypeScript

  • āŒ Error Handling: try/catch blocks, error objects
  • ⚔ Async/Await: Promise handling, async functions
  • āœ… Validation: Input validation, type checks
  • šŸ”’ Security: Sanitization, CSRF protection

CSS

  • šŸ“± Responsive Design: Media queries, flexbox, grid
  • šŸŒ™ Dark Mode: Color scheme preferences
  • ♿ Accessibility: Focus states, screen reader support
  • šŸŽØ Modern Features: Custom properties, container queries

Python

  • šŸ›”ļø Error Handling: try/except blocks
  • ļæ½ļæ½ļø Type Hints: Function annotations
  • ⚔ Async/Await: Coroutines and async functions

šŸ” How It Works

  1. Claim Analysis: Parses AI claims to identify technical assertions
  2. Pattern Matching: Uses language-specific regex patterns to scan code
  3. Evidence Collection: Gathers supporting and contradicting evidence
  4. Confidence Scoring: Calculates likelihood that claim is truthful
  5. Detailed Reporting: Provides specific examples and file locations

šŸ“Š Example Output

🚨 LIE DETECTED: Found 3 contradicting and 0 supporting evidence. 
The code does not support the AI's claim.

šŸ“Š Analysis Details:
ā”œā”€ Files analyzed: 23
ā”œā”€ Confidence score: 15%
└─ Evidence found: 3 items

šŸ” Evidence:
   1. āŒ Expected error_handling but none found in src/utils.js
   2. āŒ Expected error_handling but none found in src/api.js  
   3. āŒ Expected error_handling but none found in src/main.js

šŸ› ļø Development

Build from Source

git clone https://github.com/Slopdetector/slop.git
cd slop
npm install
npm run build
npm start

Testing

npm test

Contributing

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

šŸ“ Configuration

Environment Variables

  • SLOPWATCH_MAX_FILES: Maximum files to analyze (default: 100)
  • SLOPWATCH_TIMEOUT: Analysis timeout in ms (default: 30000)
  • SLOPWATCH_LOG_LEVEL: Logging level (default: 'info')

Custom Patterns

You can extend SlopWatch with custom detection patterns by modifying the patterns configuration.

šŸ¤ Support

šŸ“„ License

MIT License - see for details.

šŸ™ Acknowledgments

  • Model Context Protocol: Built on Anthropic's MCP standard
  • Windsurf IDE: Primary integration target
  • Claude Desktop: Secondary integration support

šŸ”„ Stop the slop. Start the accountability. SlopWatch is watching.