Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MYSQL_HOST | Yes | MySQL database host | |
| MYSQL_PORT | No | MySQL database port | 3306 |
| MYSQL_USER | Yes | MySQL database username | |
| MYSQL_DATABASE | Yes | MySQL database name | |
| MYSQL_PASSWORD | Yes | MySQL database password |
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| execute_sql | 在MySQL5.6s数据库上执行SQL |
| get_chinese_initials | 创建表结构时,将中文字段名转换为拼音首字母字段 |
| get_table_name | 根据表中文名搜索数据库中对应的表名 |
| get_table_desc | 根据表名搜索数据库中对应的表结构,支持多表查询 |
| get_table_index | 根据表名搜索数据库中对应的表索引,支持多表查询 |