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

31 lines 897 B
export const insertSchema = { name: 'mysql_insert', description: 'Inserts data into a table', inputSchema: { type: 'object', properties: { table: { type: 'string', description: 'Name of the table to insert data into', }, rows: { type: 'array', description: 'Array of objects representing rows to insert', items: { type: 'object', }, }, }, required: ['table', 'rows'], }, }; export async function insertHandler(mysqlService, args) { try { const result = await mysqlService.insert(args.table, args.rows); return result; } catch (error) { throw new Error(`Failed to insert data into ${args.table}: ${error}`); } } //# sourceMappingURL=insert.js.map