-
Notifications
You must be signed in to change notification settings - Fork 2
Schema
Value Proposition Establish a security perimeter with strict schema enforcement. Validating operations at the MCP boundary ensures deterministic orchestration, enforces data integrity, and safeguards databases against malformed AI operations. Read the full value proposition.
Tool input validation strictly enforces parameter checks at the boundary before execution, ensuring data integrity. This proactive validation helps autonomous workflows to operate with high reliability and predictable execution.
The server strictly enforces these schemas at the MCP boundary for secure integrations:
-
Strict Error Responses: Failing tools return a structured
MySQLMcpErrorobject. This empowers autonomous workflows to recover gracefully from failures. -
Deterministic Table Queries: Table queries return a structured
MySQLMcpErrorobject with theTABLE_NOT_FOUNDerror code and a descriptive message for missing tables. This enables graceful fallback handling in AI workflows. -
Safe Parsing & Interoperability: Tools use industry-standard validation libraries explicitly promoting Zod for deterministic safe parsing (
.safeParse()) and static type inference (z.infer). This maximizes agent stability and resilience by supporting graceful type coercion while preserving robust JSON Schema compatibility. - Static Parameter Schemas: Statically declared schemas ensure zero-overhead validation at the MCP boundary.
- Environment Validation: The server validates environment variables at startup. This catches misconfigurations early.
-
Distributed Rate Limiting: The server strictly limits MCP tool invocations (using
MCP_RATE_LIMIT_MAXfor the HTTP transport layer, notstdio) and Code Mode executions (which are governed byCODEMODE_RATE_LIMIT_MAX). It uses Redis synchronization and in-memory fallbacks.
See the repository source for schema definitions. To strictly validate payloads, use Zod safe parsing (.safeParse()) and type inference (z.infer). This handles validation errors gracefully without exceptions, ensuring deterministic behavior.
For runtime schema introspection, see the Code Mode documentation. It lets you discover API parameters programmatically using the .help() introspection method.
- Code Mode - Code Mode API documentation
- Configuration - MCP client configuration
- Tools - Curated overview of available tools
- Tool Filtering - Custom tool filtering
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