@rolandohuber/mysql-mcp-server
Version:
A comprehensive MCP server for MySQL database operations with 16 tools, multi-transport support, and intelligent test data generation
19 lines • 507 B
JavaScript
export const listTablesSchema = {
name: 'mysql_listTables',
description: 'Lists all tables in the current MySQL database',
inputSchema: {
type: 'object',
properties: {},
required: [],
},
};
export async function listTablesHandler(mysqlService) {
try {
const tables = await mysqlService.listTables();
return tables;
}
catch (error) {
throw new Error(`Failed to list tables: ${error}`);
}
}
//# sourceMappingURL=listTables.js.map