-
Notifications
You must be signed in to change notification settings - Fork 2
Audit Trail
The enterprise-grade MySQL integration for AI agents. Drastically reduce LLM token overhead with sandboxed Code Mode execution, scale seamlessly with built-in connection pooling, and enforce zero-trust security via strict OAuth 2.1 access controls.
Monitor, diff, and rollback agent mutations in real-time to prevent production impact. Ensure compliance and security tracking without sacrificing performance. You can list, restore, and diff schema snapshots over time.
| Tool | Scope | Parameters | Description |
|---|---|---|---|
mysql_audit_search |
Read |
limit, offset, filters
|
Search and filter system audit logs |
mysql_audit_list_backups |
Read | (None) | List available snapshots |
mysql_audit_restore_backup |
Admin |
backupId, dryRun
|
Restore a snapshot |
mysql_audit_diff_backup |
Read | backupId |
Diff a snapshot |
Activate the Audit Trail by passing appropriate flags when starting mysql-mcp:
-
--audit-log <path>: Enables the audit log and specifies the file path (e.g.,--audit-log /var/log/mcp-audit.jsonl). -
--audit-backup: Enables pre-mutation snapshots for DDL changes. -
--audit-reads: Includes read-scope tool calls (like SELECTs) in the audit log. -
--audit-redact: Automatically redacts sensitive parameters from the JSONL output. -
--audit-log-max-size: Maximum size for the audit log file. -
--audit-backup-data: Includes sample data in pre-mutation snapshots. -
--audit-backup-max-size: Maximum table size in bytes for data capture.
See the Configuration guide for all audit options, including sizes and redaction rules.
Unlock autonomous database orchestration with an enterprise-grade MySQL MCP server. Featuring blazing-fast sandboxed Code Mode, uncompromising schema enforcement, and seamless ecosystem integrations to power secure, intelligent AI workflows.
- Installation
- Configuration
- Architecture
- HTTP Transport
- Tool Filtering
- Code Mode
- Tools
- Prompts
- Resources
- Observability & Telemetry