UNPKG

@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 758 B
export const tableRelationsSchema = { name: 'mysql_tableRelations', description: 'Gets foreign key relationships for a table (both outgoing and incoming)', inputSchema: { type: 'object', properties: { table: { type: 'string', description: 'Name of the table to get relations for', }, }, required: ['table'], }, }; export async function tableRelationsHandler(mysqlService, args) { try { const relations = await mysqlService.getTableRelations(args.table); return relations; } catch (error) { throw new Error(`Failed to get table relations for ${args.table}: ${error}`); } } //# sourceMappingURL=tableRelations.js.map