Error Database
mcp_m7_error_databaseLog AI coding mistakes, check code against known error patterns, and get prevention warnings so agents can avoid repeating errors.
Instructions
M7 v3.0 Error Pattern Database - Track AI mistakes and provide preventive warnings.
Actions:
capture
Record an AI mistake.
category: Error category (required): syntax, type, import, api, logic, style, security, performance, compatibility, other
title: Error title (required)
ai_mistake: What AI generated wrong (required)
correct_solution: What it should have been (required)
description: Detailed description
explanation: Why it was wrong
severity: critical, high, medium, low
project_id: Project identifier
tags: Array of tags
check
Check code for potential errors.
code: Code to check (required)
file: File path for context
search
Search the error database.
query: Search text
category: Filter by category
severity: Filter by severity
project_id: Filter by project
limit: Max results (default: 20)
stats
Get error statistics.
project_id: Filter by project (optional)
patterns
List or manage error patterns.
pattern_action: list, enable, or disable
pattern_id: Pattern ID for enable/disable
correct
Record a correction for an error.
error_id: Error ID to correct (required)
original_code: Original wrong code (required)
corrected_code: Corrected code (required)
report_fp
Report a false positive warning.
pattern_id: Pattern ID that gave false positive (required)
clear
Clear all error data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Code to check | |
| file | No | File path | |
| tags | No | ||
| limit | No | ||
| query | No | Search query | |
| title | No | Error title | |
| action | Yes | ||
| format | No | text | |
| agent_id | No | ||
| category | No | Error category | |
| error_id | No | Error ID to correct | |
| severity | No | ||
| ai_mistake | No | What AI generated (wrong) | |
| pattern_id | No | ||
| project_id | No | ||
| description | No | Error description | |
| explanation | No | Why it was wrong | |
| original_code | No | ||
| corrected_code | No | ||
| pattern_action | No | ||
| correct_solution | No | What it should have been |