-
Notifications
You must be signed in to change notification settings - Fork 2
Schema
- Maximize AI Context Windows: Transform complex database workflows via Code Mode, unlocking up to 90% token efficiency.
- Accelerate Agent Deployments: Build autonomous AI integrations instantly with zero-trust telemetry and strict boundaries.
- Unleash Autonomous Operations: Equip intelligent agents with granular, schema-enforced database capabilities.
- Scale Without Bottlenecks: Sustain high-throughput agent swarms with robust, enterprise-grade connection pooling.
- Secure Every Transaction: Fortify your infrastructure with native OAuth 2.1 authentication and sandboxed execution.
We treat schema validation as a strict data boundary. We strictly validate every input parameter, ensuring reliable workflows.
We strictly enforce these schemas at the MCP boundary for secure integrations:
-
Strict Error Responses: Failing tools return structured error responses. Errors extend
MySQLMcpErrorand useformatHandlerError(). This empowers autonomous workflows. The schema is:{ success: false, error: string, code: string, category: string, suggestion: string, recoverable: boolean } -
Deterministic Table Queries: Table queries return
{ exists: false, table: string }for missing tables. This enables graceful fallback handling in AI workflows. -
Sandboxed File Operations: We bound file interactions using
ALLOWED_IO_ROOTS. This prevents directory traversal and ensures isolated, secure execution. - Standard Schema Interoperability: Tools use Zod's Standard Schema implementation. This supports aliases and type coercion while preserving JSON Schema compatibility.
- Static Schemas: All schemas must be defined statically as constants at the module level.
-
Environment Validation: Enforce the validation of
process.envat startup using Zod.
See the repository source for Zod schemas (src/adapters/mysql/schemas/). We recommend using Zod's .safeParse(input) to handle validation errors gracefully without exceptions.
For runtime schema introspection, see the Code-Mode documentation. It lets you discover API parameters programmatically using the .schema() introspection method.
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