lmstudio-auditor
✨ Hauptfunktionen
Kostenloser lokaler Kritiker: Verlagern Sie umfangreiche Code-Review-Iterationen über LM Studio auf Ihre lokale GPU, ohne Cloud-Tokens auszugeben.
Sub-Millisekunden-AST-Wächter: Erkennt Syntaxfehler und gefährliche Laufzeitaufrufe (
eval,exec,os.system,subprocess), bevor GPU-Zyklen verschwendet werden.Deterministischer Vertrag: Erzwingt strukturierte Ausgaben (
APPROVEDvs.REJECTEDmit spezifischem Zeilen-Feedback), sodass der Agent Code ohne menschliches Eingreifen automatisch refaktoriert.Doppelte Datensenke (DPO-Flywheel):
SQLite (
audit_history.db): Erfasst Dauer, Kategorien und Metriken.Pro-Audit-JSON (
audit_logs/): Speichert einzelne Audit-Datensätze, um einfach DPO-/Fine-Tuning-Datensätze aus gepaarten abgelehnten/genehmigten Versuchen zu erstellen.
Related MCP server: tar-engine
🚀 Schnellstart
1. Voraussetzungen
Python 3.10+
LM Studio, das einen OpenAI-kompatiblen Local Server ausführt (
http://localhost:1234/v1)Antigravity oder ein beliebiger MCP-kompatibler Client
Installation
# Clone the repository
git clone [https://github.com/xTanThaix/mcp-local-auditor.git](https://github.com/xTanThaix/mcp-local-auditor.git)
cd mcp-local-auditor
# Set up virtual environment
python -m venv .venv
# Activate virtual environment
# On Windows:
.venv\Scripts\activate
# On macOS/Linux:
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt3. MCP-Server registrieren
Öffnen Sie Ihre Antigravity-MCP-Konfigurationsdatei:
Windows:
%USERPROFILE%\.gemini\config\mcp_config.jsonmacOS / Linux:
~/.gemini/config/mcp_config.json
Fügen Sie die Serverdefinition innerhalb von mcpServers hinzu:
{
"mcpServers": {
"lmstudio-auditor": {
"command": "D:\\Hucdeline\\.venv\\Scripts\\python.exe",
"args": ["D:\\Hucdeline\\auditor_bridge.py"]
}
}
}Hinweis: Ersetzen Sie
D:\\Hucdelinedurch den tatsächlichen Pfad Ihres Projektverzeichnisses.
4. LM Studio konfigurieren
Öffnen Sie LM Studio und laden Sie ein beliebiges instruktionsoptimiertes Codierungsmodell (z. B.
Qwen-2.5-Coder,DeepSeek-Coder,Llama-3).Gehen Sie zum Tab Local Server (Developer).
Setzen Sie den Port auf
...(e.g.,1234)und klicken Sie auf Start Server.
🤖 Agent-Loop-Einrichtung (Benutzerdefinierte Regel / Fähigkeit)
Fügen Sie Ihrem Antigravity-Agenten (mcp-studio-loop) die folgende Regel hinzu:
# Mandatory MCP Code Audit Protocol
Every time code is generated or refactored, you MUST invoke the `audit_submission` tool:
- Arguments: `task_goal`, `output_content`, `strict_rules`
- If STATUS == "REJECTED": Read `ACTIONABLE_FEEDBACK`, refactor the code, and re-submit.
- If STATUS == "APPROVED": Output the final solution to the user.
- Maximum retry limit: 5 attempts before breaking loop.LM Studio konfigurieren Öffnen Sie LM Studio und laden Sie ein beliebiges instruktionsoptimiertes Codierungsmodell (z. B. Qwen-2.5-Coder, DeepSeek-Coder, Llama-3).
Gehen Sie zum Tab Local Server.
Setzen Sie den Port auf xxxx und klicken Sie auf Start Server.
🤖 Agent-Loop-Einrichtung (Benutzerdefinierte Regel / Fähigkeit) Fügen Sie Ihrem Antigravity-Agenten (mcp-studio-loop) die folgende Regel hinzu:
Markdown
Verbindliches MCP-Code-Audit-Protokoll
Jedes Mal, wenn Code generiert oder refaktoriert wird, MÜSSEN Sie das Tool audit_submission aufrufen:
Argumente:
task_goal,output_content,strict_rulesWenn STATUS == "REJECTED": Lesen Sie
ACTIONABLE_FEEDBACK, refaktorieren Sie den Code und reichen Sie ihn erneut ein.Wenn STATUS == "APPROVED": Geben Sie die endgültige Lösung an den Benutzer aus.
Maximale Wiederholungsgrenze: 5 Versuche, bevor die Schleife abgebrochen wird. 🧪 Tests Führen Sie die enthaltene Pytest-S
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityBmaintenanceCaptures code modifications via AST analysis, generates reusable rules, and injects them into AI agent context with version audit and token-budgeted rule retrieval.2810Apache 2.0
- AlicenseNot gradedqualityAmaintenanceAudits AI agent skills for safety using static, semantic, adversarial, and supply-chain analysis, providing scores and risk flags. Can be run via CLI, CI, or as an MCP tool from Claude Code, Cursor, and Codex.2Apache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to scan code for security vulnerabilities before execution, supporting Python and JavaScript/TypeScript with deterministic AST-based analysis and optional Solana micropayments.
- AlicenseAqualityBmaintenanceEnforces AST-based architectural guardrails on AI-generated code, blocking writes that violate maintainability, security, or complexity rules and prompting immediate refactoring.2MIT
Related MCP Connectors
Deterministic AI code review, with an audit record. Governance inside the agent loop.
Lints + auto-fixes how AI coding agents discover any new product. 24 rules, 6 tools, score 0-100.
Agentic code review, no signup to try: reality gates + frontier-model review, with veto.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/xTanTHaix/mcp-local-auditor'
If you have feedback or need assistance with the MCP directory API, please join our Discord server