--- license: cc-by-nc-4.0 tags: - mcp - cursor - claude-desktop - sre - ast-guard - apple-mlx - mac-ready - agentic - unsloth size_categories: - n<1K task_categories: - text-generation language: - en - de pretty_name: Agent SQLite In-Memory Injection & State Quarantine MCP --- > ๐Ÿ“‚ **Fachbereich / Domain:** ๐Ÿ›ก๏ธ **DevSecOps & Cloud Security** > ๐Ÿ” **Katalog-Filter:** [Alle verwandten DevSecOps & Cloud Security Suiten auf Hugging Face anzeigen](https://huggingface.co/emgena?search=security) > ๐Ÿ›’ **Kommerzielle Lizenz & Webshop:** [emgena.com/trainingslager?product=agent_sqlite_in_memory_injection_quarantine&coupon=LAUNCH20](https://emgena.com/trainingslager?product=agent_sqlite_in_memory_injection_quarantine&coupon=LAUNCH20) --- # ๐Ÿ›ก๏ธ Agent SQLite In-Memory Injection & State Quarantine MCP > **Official Turnkey Model Context Protocol (MCP) Guard & Fine-Tuning Suite (FAANG v2.5 Gold Standard)** --- > ### โš–๏ธ Dual-Licensing & Fair-Use Compliance Notice > * **Community & Evaluation License (`CC-BY-NC-4.0`):** This evaluation repository is **100% free** for academic research, education, personal experimentation, and local evaluation. > * **Commercial & Enterprise License:** Any integration into commercial software, SaaS applications, proprietary models, or corporate pipelines requires a valid commercial license from [emgena.com/trainingslager](https://emgena.com/trainingslager?product=agent_sqlite_in_memory_injection_quarantine&coupon=LAUNCH20). > * **Launch Discount:** Use code **`LAUNCH20`** at checkout for 20% off all commercial tiers (Single, Team, Enterprise). --- ## ๐Ÿ“ฆ What is Included in this Package This repository contains the **full 500-sample verified dataset** and in-IDE guardrails: 1. **Parquet & JSONL Datasets (`agent_sqlite_in_memory_injection_quarantine.parquet`, `chatml_format.jsonl`):** - 500 verified multi-turn trajectories across 30 production incidents. - **100% AST Invariance:** Zero syntax errors (validated via `ast.parse()`). 2. **Deterministic MCP Engine (`server.py` & `server_free.py`):** - Zero-dependency stdio engine (<0.15ms latency, 100% offline). - Compatible with **Cursor IDE**, **Claude Desktop**, and **VS Code**. 3. **Dual Fine-Tuning Recipes:** - **Apple Silicon Mac (`train_mlx.py`):** Native LoRA fine-tuning for M1/M2/M3/M4 unified memory in 15 minutes. - **Nvidia CUDA (`train_lora_unsloth.py`):** 4-bit QLoRA fine-tuning on RTX 4090 / 5090 / Colab. 4. **Active AST Tools:** - `execute_tool('quarantine_sqlite_raw_string_formatting')`: Catches f-strings and format() interpolating unescaped agent data into execute(). - `execute_tool('enforce_sqlite_parameterized_binding')`: Enforces tuple and dict parameter substitution across all SQLite queries. - `execute_tool('detect_sqlite_attach_database_escape')`: Blocks ATTACH DATABASE commands attempting to write files to disk from memory DB. - `execute_tool('audit_sqlite_pragma_safety_settings')`: Ensures PRAGMA foreign_keys=ON and PRAGMA secure_delete=ON are active. - `execute_tool('sanitize_sqlite_memory_state_dump')`: Cleans sensitive memory database dumps before archiving to disk. - `execute_tool('fuzz_sqlite_fts5_query_syntax')`: Guarantees FTS5 search queries do not crash on unmatched quotes or special tokens. - `execute_tool('validate_sqlite_blob_deserialization')`: Prevents insecure pickle/eval deserialization of serialized agent state blobs. - `execute_tool('circuit_break_sqlite_table_drop')`: Kills query if agent attempts DROP TABLE or TRUNCATE on core memory stores. --- ## ๐Ÿš€ Quickstart: Apple Silicon Fine-Tuning (MLX) ```bash pip install mlx mlx-lm python train_mlx.py ``` ## ๐Ÿ’ป Quickstart: Cursor IDE & Claude Desktop MCP Setup Add the following to your `.cursor/mcp.json` or `claude_desktop_config.json`: ```json { "mcpServers": { "agent_sqlite_in_memory_injection_quarantine": { "command": "python", "args": ["server.py"] } } } ``` --- ## โš–๏ธ License & Commercial Deployment Distributed under **Creative Commons Attribution-NonCommercial 4.0 International (`CC-BY-NC-4.0`)**. For commercial enterprise deployment rights, BGB ยง 97 UrhG indemnification, and EU AI Act Annex IV audit certificates, visit: ๐Ÿ‘‰ **[emgena.com/trainingslager](https://emgena.com/trainingslager?product=agent_sqlite_in_memory_injection_quarantine&coupon=LAUNCH20)**