@cano721/mysql-mcp-server 0.9.0 → 0.9.1
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.
- package/README.md +5 -1
- package/build/index.js +7 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -400,6 +400,9 @@ MySQL 서버에서 접근 가능한 모든 데이터베이스를 나열합니다
|
|
|
400
400
|
}
|
|
401
401
|
```
|
|
402
402
|
|
|
403
|
+
> **참고**: 응답은 JSON 배열 형태로 제공됩니다. 테이블이나 CSV 형식이 필요한 경우 LLM에게 변환을 요청하세요.
|
|
404
|
+
```
|
|
405
|
+
|
|
403
406
|
**SHOW 명령어 예제**:
|
|
404
407
|
```json
|
|
405
408
|
{
|
|
@@ -792,7 +795,8 @@ echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | npx @cano721/mysql-mcp-s
|
|
|
792
795
|
|
|
793
796
|
| 버전 | 날짜 | 주요 변경 사항 |
|
|
794
797
|
|------|------|---------------|
|
|
795
|
-
| 0.9.
|
|
798
|
+
| 0.9.1 | 2025-01-09 | `get_related_tables` 응답 크기 최적화 (포맷 변환은 LLM이 수행) |
|
|
799
|
+
| 0.9.0 | 2025-01-09 | `get_related_tables` 응답 구조 개선 및 최적화 |
|
|
796
800
|
| 0.8.0 | 2025-01-09 | `get_related_tables`에 패턴 매칭 옵션 추가, depth 제한 제거 |
|
|
797
801
|
| 0.7.0 | 2025-01-09 | `get_related_tables` 도구 추가 (FK 기반 연관 테이블 depth별 조회) |
|
|
798
802
|
| 0.6.0 | 2025-01-09 | `analyze_table` → `analyze_query`로 변경, `@latest` 태그 문서 추가 |
|
package/build/index.js
CHANGED
|
@@ -429,30 +429,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
// Generate table format (Markdown)
|
|
433
|
-
const allRelations = [...results, ...patternMatchResults];
|
|
434
|
-
let tableFormat = '| depth | child_table | fk_column | parent_table | constraint_name | match_type |\n';
|
|
435
|
-
tableFormat += '|-------|-------------|-----------|--------------|-----------------|------------|\n';
|
|
436
|
-
for (const rel of allRelations) {
|
|
437
|
-
tableFormat += `| ${rel.depth} | ${rel.child_table} | ${rel.fk_column} | ${rel.parent_table} | ${rel.constraint_name} | ${rel.match_type} |\n`;
|
|
438
|
-
}
|
|
439
|
-
// Generate CSV format
|
|
440
|
-
let csvFormat = 'depth,child_table,fk_column,parent_table,constraint_name,match_type\n';
|
|
441
|
-
for (const rel of allRelations) {
|
|
442
|
-
csvFormat += `${rel.depth},"${rel.child_table}","${rel.fk_column}","${rel.parent_table}","${rel.constraint_name}",${rel.match_type}\n`;
|
|
443
|
-
}
|
|
444
432
|
const response = {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
total_relations: allRelations.length
|
|
453
|
-
},
|
|
454
|
-
table_format: tableFormat,
|
|
455
|
-
csv_format: csvFormat,
|
|
433
|
+
root_table: table,
|
|
434
|
+
database: dbName,
|
|
435
|
+
requested_depth: requestedDepth,
|
|
436
|
+
search_method: includePatternMatch ? 'fk_constraint + pattern_match' : 'fk_constraint',
|
|
437
|
+
fk_relations_count: results.length,
|
|
438
|
+
pattern_match_count: patternMatchResults.length,
|
|
439
|
+
total_relations: results.length + patternMatchResults.length,
|
|
456
440
|
fk_relations: results,
|
|
457
441
|
pattern_match_relations: includePatternMatch ? patternMatchResults : undefined,
|
|
458
442
|
note: includePatternMatch
|