@cano721/mysql-mcp-server 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/index.js +2 -7
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -331,8 +331,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
331
331
  SELECT
332
332
  TABLE_NAME as child_table,
333
333
  COLUMN_NAME as fk_column,
334
- REFERENCED_TABLE_NAME as parent_table,
335
- CONSTRAINT_NAME as constraint_name
334
+ REFERENCED_TABLE_NAME as parent_table
336
335
  FROM information_schema.KEY_COLUMN_USAGE
337
336
  WHERE REFERENCED_TABLE_SCHEMA = ?
338
337
  AND REFERENCED_TABLE_NAME = ?
@@ -345,7 +344,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
345
344
  child_table: row.child_table,
346
345
  fk_column: row.fk_column,
347
346
  parent_table: row.parent_table,
348
- constraint_name: row.constraint_name,
349
347
  match_type: 'fk_constraint'
350
348
  });
351
349
  if (!visited.has(row.child_table)) {
@@ -358,8 +356,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
358
356
  SELECT
359
357
  TABLE_NAME as child_table,
360
358
  COLUMN_NAME as fk_column,
361
- REFERENCED_TABLE_NAME as parent_table,
362
- CONSTRAINT_NAME as constraint_name
359
+ REFERENCED_TABLE_NAME as parent_table
363
360
  FROM information_schema.KEY_COLUMN_USAGE
364
361
  WHERE TABLE_SCHEMA = ?
365
362
  AND TABLE_NAME = ?
@@ -377,7 +374,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
377
374
  child_table: row.child_table,
378
375
  fk_column: row.fk_column,
379
376
  parent_table: row.parent_table,
380
- constraint_name: row.constraint_name,
381
377
  match_type: 'fk_constraint'
382
378
  });
383
379
  }
@@ -423,7 +419,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
423
419
  child_table: row.related_table,
424
420
  fk_column: row.matching_column,
425
421
  parent_table: table,
426
- constraint_name: '(pattern match)',
427
422
  match_type: 'pattern_match'
428
423
  });
429
424
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cano721/mysql-mcp-server",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "An MCP server that provides read-only access to MySQL databases.",
5
5
  "type": "module",
6
6
  "bin": {