Skip to main content
Glama
JoodasCode

SlopWatch MCP Server

slopwatch_setup_rules

Create and enforce AI accountability by generating a .cursorrules file for your project directory, ensuring alignment between AI promises and delivered outcomes.

Instructions

Generate .cursorrules file with AI accountability enforcement

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
overwriteNoWhether to overwrite existing .cursorrules file
project_pathYesPath to project directory where .cursorrules should be created

Implementation Reference

  • The handler function for 'slopwatch_setup_rules' tool. It extracts the project_path and overwrite parameters, generates a comprehensive .cursorrules file content string with SlopWatch rules (v2.6.0), and returns it as a text content block.
    async handleSetupRules(args) { const { project_path, overwrite = false } = args; // Return updated rules content for v2.6.0 with combined tool and minimal responses const rulesContent = `# SlopWatch AI Accountability Rules v2.6.0 ## MANDATORY PROTOCOL ### OPTION 1: COMBINED TOOL (RECOMMENDED ⭐) For most implementations, use the single-call approach: \`\`\` mcp_SlopWatch_slopwatch_claim_and_verify({ claim: "What you implemented", originalFileContents: { "filename": "before_content" }, updatedFileContents: { "filename": "after_content" } }); // Response: "✅ PASSED (87%)" or "❌ FAILED (23%)" \`\`\` ### OPTION 2: TRADITIONAL 2-STEP (WHEN NEEDED) For pre-planning implementations: \`\`\` // Step 1: Before implementing mcp_SlopWatch_slopwatch_claim({ claim: "What you're about to implement", fileContents: { "filename": "current_content" } }); // Response: "Claim ID: abc123" // Step 2: After implementing mcp_SlopWatch_slopwatch_verify({ claimId: "abc123", updatedFileContents: { "filename": "updated_content" } }); // Response: "✅ PASSED (92%)" or "❌ FAILED (15%)" \`\`\` ## TRIGGER PHRASES When you mention ANY of these, you MUST use SlopWatch: - "I will implement/add/create/modify/fix/update/build/write" - "Let me implement/add/create/modify/fix/update" - "I'll add/create/implement/modify/fix/update" ## ENFORCEMENT RULES ### NEVER SKIP VERIFICATION - Every implementation claim requires verification - No exceptions for "simple" changes - Failed verification = STOP and fix immediately ### ULTRA-MINIMAL RESPONSES (v2.6.0) SlopWatch now returns minimal responses: - Claim: "Claim ID: abc123" - Verify: "✅ PASSED (87%)" or "❌ FAILED (23%)" - Combined: "✅ PASSED (87%)" or "❌ FAILED (23%)" - Status: "Accuracy: 95% (19/20)" ### WORKFLOW PATTERNS #### RECOMMENDED: Combined Tool Workflow \`\`\` I'll implement [feature]. Let me verify it with SlopWatch. [Implement the code changes] [Call mcp_SlopWatch_slopwatch_claim_and_verify with before/after content] ✅ PASSED (87%) - Implementation verified! \`\`\` #### ALTERNATIVE: Traditional Workflow \`\`\` I'll implement [feature]. Let me register this with SlopWatch first. [Call mcp_SlopWatch_slopwatch_claim] Claim ID: abc123 [Implement the code changes] [Call mcp_SlopWatch_slopwatch_verify] ✅ PASSED (92%) - Implementation verified! \`\`\` #### FAILURE HANDLING \`\`\` ❌ FAILED (23%) - SlopWatch verification failed. Let me analyze and fix the implementation. [Fix the code and verify again] \`\`\` ## SPECIAL CASES ### NO CLAIM NEEDED: - Reading/analyzing code - Explaining existing code - Answering questions - Code reviews ### REQUIRES CLAIMS: - Creating/modifying files - Adding functions/classes - Configuration changes - Package installations ## EMERGENCY BYPASS Only if SlopWatch is unavailable: "⚠️ SlopWatch unavailable - proceeding without verification" Remember: SlopWatch v2.6.0 features ultra-minimal responses and combined tools for seamless AI accountability.`; return { content: [ { type: 'text', text: rulesContent } ] }; }
  • Input schema definition for the slopwatch_setup_rules tool, specifying project_path as required string and optional overwrite boolean.
    inputSchema: { type: 'object', properties: { project_path: { type: 'string', description: 'Path to project directory where .cursorrules should be created' }, overwrite: { type: 'boolean', description: 'Whether to overwrite existing .cursorrules file', default: false } }, required: ['project_path'] }
  • Tool registration entry in the ListTools response, defining the name, description, and input schema for slopwatch_setup_rules.
    { name: 'slopwatch_setup_rules', description: 'Generate .cursorrules file with AI accountability enforcement', inputSchema: { type: 'object', properties: { project_path: { type: 'string', description: 'Path to project directory where .cursorrules should be created' }, overwrite: { type: 'boolean', description: 'Whether to overwrite existing .cursorrules file', default: false } }, required: ['project_path'] } }
  • Dispatch case in the CallToolRequestSchema handler that routes slopwatch_setup_rules calls to the handleSetupRules method.
    case 'slopwatch_setup_rules': return await this.handleSetupRules(args);

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JoodasCode/SlopWatch'

If you have feedback or need assistance with the MCP directory API, please join our Discord server