@rolandohuber/mysql-mcp-server
Version:
A comprehensive MCP server for MySQL database operations with 16 tools, multi-transport support, and intelligent test data generation
24 lines • 639 B
JavaScript
export const explainSchema = {
name: 'mysql_explain',
description: 'Returns the execution plan for a SQL query',
inputSchema: {
type: 'object',
properties: {
query: {
type: 'string',
description: 'SQL query to explain',
},
},
required: ['query'],
},
};
export async function explainHandler(mysqlService, args) {
try {
const plan = await mysqlService.explain(args.query);
return plan;
}
catch (error) {
throw new Error(`Failed to explain query: ${error}`);
}
}
//# sourceMappingURL=explain.js.map