Datasets:
Dataset Viewer
The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
π£οΈ SQL Destructive DML & DDL Lockout Guard 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.
- Developer Tooling & Regulatory Clarification: Client-side deterministic policy control software only. Emgena provides no financial, legal, medical, or custodian services.
- Launch Discount: Use code
LAUNCH20at 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:
- Parquet & JSONL Datasets (
sql_destructive_dml_ddl_lockout_guard_mcp.parquet,chatml_format.jsonl):- 500 verified multi-turn trajectories across 30 production incidents.
- 100% AST Invariance: Zero syntax errors (validated via
ast.parse()).
- 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.
- 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.
- Apple Silicon Mac (
- Active AST Tools:
execute_tool('enforce_mandatory_where_clause'): Blocks UPDATE and DELETE statements that lack explicit, non-trivial WHERE clauses.execute_tool('lockout_ddl_modifications'): Blocks DROP TABLE, ALTER TABLE, and TRUNCATE commands in read-only and analytical modes.execute_tool('dry_run_explain_cost_check'): Runs EXPLAIN query first and aborts queries predicted to touch more than 1,000 rows.execute_tool('prevent_multi_statement_sql_injection'): Detects semicolon-delimited multiple statement chains in single query parameter.execute_tool('audit_table_access_permissions'): Ensures query references only tables designated as permitted for the active task.execute_tool('enforce_safe_transaction_commit_mode'): Forces explicit ROLLBACK on any error, preventing partial table mutations.execute_tool('require_mfa_token_for_schema_changes'): Requires explicit authorization token before executing approved schema migrations.execute_tool('export_sql_lockout_audit_trail'): Exports audit trail of blocked destructive queries and policy compliance proofs.
π Quickstart: Apple Silicon Fine-Tuning (MLX)
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:
{
"mcpServers": {
"sql_destructive_dml_ddl_lockout_guard_mcp": {
"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
- Downloads last month
- 35