3 changed files with 67 additions and 5 deletions
@ -1,3 +1,6 @@ |
|||
/.idea/ |
|||
/main |
|||
/go.sum |
|||
/dist/ |
|||
/MCP-DB.zip |
|||
/使用说明.pdf |
|||
|
@ -0,0 +1,56 @@ |
|||
# MCP-GO-DB 操作数据方法 |
|||
|
|||
|
|||
|
|||
## 作用 |
|||
|
|||
让 AI 操作数据库,是给数据库的工具,读取数据,操作字段等(其他功能后续补充...) |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
## 操作 |
|||
|
|||
复制有效部分到自己的MCP服务配置文件中 |
|||
|
|||
|
|||
|
|||
**1. 注意** : 需要替换 command 自己对应的应用(当前提供 windows+linux :: amd64 版本的) |
|||
|
|||
**2. 注意** : 需要替换 args 内部自己数据库的参数 |
|||
|
|||
|
|||
|
|||
```json |
|||
{ |
|||
... 有效部分::开始 |
|||
"dm-tools": { |
|||
"name": "数据库服务", |
|||
"version": "1.0.0", |
|||
"command": "/home/Viviman/Music/code-go/mcp-go-db/dist/default_linux_amd64_v1/mcp-go-db", |
|||
"args": [ |
|||
"dm://xxx:xxx@xxx:xxx/DAMENG?schema=xxx" |
|||
], |
|||
"description": "提供查询数据库操作", |
|||
"enabled": true, |
|||
"autoApprove": [ |
|||
"获取表数据", |
|||
"添加注释", |
|||
"获取所有表" |
|||
], |
|||
"disabled": false, |
|||
"timeout": 30 |
|||
} |
|||
} |
|||
... 有效部分::结束 |
|||
} |
|||
``` |
|||
|
|||
|
|||
|
|||
### 效果图 |
|||
|
|||
|
|||
|
|||
 |
Loading…
Reference in new issue