@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 • 699 B
JavaScript
export const listIndexesSchema = {
name: 'mysql_listIndexes',
description: 'Lists all indexes for a specific table',
inputSchema: {
type: 'object',
properties: {
table: {
type: 'string',
description: 'Name of the table to list indexes for',
},
},
required: ['table'],
},
};
export async function listIndexesHandler(mysqlService, args) {
try {
const indexes = await mysqlService.getTableIndexes(args.table);
return indexes;
}
catch (error) {
throw new Error(`Failed to list indexes for ${args.table}: ${error}`);
}
}
//# sourceMappingURL=listIndexes.js.map