Skip to content

Commit 28650b0

Browse files
author
wenfeng.wf
committed
Add tool to support execute sql in db.
1 parent bd9e666 commit 28650b0

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Add the following configuration to the MCP client configuration file:
9898
```
9999

100100
## Components
101-
### Tools
101+
### OpenAPI Tools
102102
* `add_tags_to_db_instance`: Add tags to an RDS instance.
103103
* `allocate_instance_public_connection`: Allocate a public connection for an RDS instance.
104104
* `attach_whitelist_template_to_instance`: Attach a whitelist template to an RDS instance.
@@ -128,6 +128,11 @@ Add the following configuration to the MCP client configuration file:
128128
* `modify_db_instance_spec`: Modify RDS instance specifications.
129129
* `modify_parameter`: Modify RDS instance parameters.
130130
* `restart_db_instance`: Restart an RDS instance.
131+
### SQL Tools
132+
> The MCP Server will automatically create a read-only account, execute the SQL statement, and then automatically delete the account. This process requires that the MCP Server can connect to the instance.
133+
134+
* `show_engine_innodb_status`: Execute sql `show engine innodb status` and return sql result.
135+
* `show_create_table`: Execute sql `show create table` and return sql result.
131136

132137
### Resources
133138
None at this time

README_CN.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ git clone https://github.com/aliyun/alibabacloud-rds-openapi-mcp-server.git
9898
```
9999

100100
## 功能组件
101-
### 工具集
101+
### OpenAPI 工具集
102102
* `add_tags_to_db_instance`: 添加标签到RDS实例
103103
* `allocate_instance_public_connection`: 为RDS实例分配公网连接
104104
* `attach_whitelist_template_to_instance`: 将白名单模板绑定到RDS实例
@@ -129,6 +129,12 @@ git clone https://github.com/aliyun/alibabacloud-rds-openapi-mcp-server.git
129129
* `modify_parameter`: 修改RDS实例参数
130130
* `restart_db_instance`: 重启RDS实例
131131

132+
### SQL 工具集
133+
> MCP Server会自动创建一个只读账号,执行SQL后再自动删除。需要MCP Server能够连通到实例。
134+
135+
* `show_engine_innodb_status`: Execute sql `show engine innodb status` and return sql result.
136+
* `show_create_table`: Execute sql `show create table` and return sql result.
137+
132138
### 资源
133139
当前暂无资源
134140

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "alibabacloud-rds-openapi-mcp-server"
3-
version = "1.8.0"
3+
version = "2.0.0"
44
description = "MCP server for RDS Services via OPENAPI."
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)