You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+90-51Lines changed: 90 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
English | [中文](README_ZH.md)
2
+
1
3
# Hologres MCP Server
2
4
3
5
Hologres MCP Server serves as a universal interface between AI Agents and Hologres databases. It enables seamless communication between AI Agents and Hologres, helping AI Agents retrieve Hologres database metadata and execute SQL operations.
@@ -10,7 +12,7 @@ Hologres MCP Server serves as a universal interface between AI Agents and Hologr
*`execute_hg_select_sql`: Execute a SELECT SQL query in Hologres database
111
+
*`execute_hg_select_sql_with_serverless`: Execute a SELECT SQL query in Hologres database with serverless computing
112
+
*`execute_hg_dml_sql`: Execute a DML (INSERT, UPDATE, DELETE) SQL query in Hologres database
113
+
*`execute_hg_ddl_sql`: Execute a DDL (CREATE, ALTER, DROP, COMMENT ON) SQL query in Hologres database
114
+
*`gather_hg_table_statistics`: Collect table statistics in Hologres database
115
+
*`get_hg_query_plan`: Get query plan in Hologres database
116
+
*`get_hg_execution_plan`: Get execution plan in Hologres database
117
+
*`call_hg_procedure`: Invoke a procedure in Hologres database
118
+
*`create_hg_maxcompute_foreign_table`: Create MaxCompute foreign tables in Hologres database.
119
+
120
+
Since some Agents do not support resources and resource templates, the following tools are provided to obtain the metadata of schemas, tables, views, and external tables.
121
+
*`list_hg_schemas`: Lists all schemas in the current Hologres database, excluding system schemas.
122
+
*`list_hg_tables_in_a_schema`: Lists all tables in a specific schema, including their types (table, view, external table, partitioned table).
123
+
*`show_hg_table_ddl`: Show the DDL script of a table, view, or external table in the Hologres database.
87
124
88
125
### Resources
89
126
90
127
#### Built-in Resources
91
128
92
-
*`hologres:///schemas`: Get all schemas in the database
129
+
*`hologres:///schemas`: Get all schemas in Hologres database
93
130
94
131
#### Resource Templates
95
132
96
-
*`hologres:///{schema}/tables`: List all tables in a schema
97
-
*`hologres:///{schema}/{table}/partitions`: List all partitions of a partitioned table
98
-
*`hologres:///{schema}/{table}/ddl`: Get table DDL
99
-
*`hologres:///{schema}/{table}/statistic`: Show collected table statistics
133
+
*`hologres:///{schema}/tables`: List all tables in a schema in Hologres database
134
+
*`hologres:///{schema}/{table}/partitions`: List all partitions of a partitioned table in Hologres database
135
+
*`hologres:///{schema}/{table}/ddl`: Get table DDL in Hologres database
136
+
*`hologres:///{schema}/{table}/statistic`: Show collected table statistics in Hologres database
100
137
*`system:///{+system_path}`:
101
138
System paths include:
102
139
103
-
* missing_stats_tables - Shows the tables that are missing statistics.
104
-
* stat_activity - Shows the information of current running queries.
105
-
* query_log/latest/ - Get recent query log history with specified number of rows.
106
-
* query_log/user// - Get query log history for a specific user with row limits.
107
-
* query_log/application// - Get query log history for a specific application with row limits.
108
-
* query_log/failed/\<interval>\/ - Get failed query log history with interval and specified number of rows.
140
+
*`hg_instance_version` - Shows the hologres instance version.
141
+
*`guc_value/` - Shows the guc (Grand Unified Configuration) value.
142
+
*`missing_stats_tables` - Shows the tables that are missing statistics.
143
+
*`stat_activity` - Shows the information of current running queries.
144
+
*`query_log/latest/` - Get recent query log history with specified number of rows.
145
+
*`query_log/user//` - Get query log history for a specific user with row limits.
146
+
*`query_log/application//` - Get query log history for a specific application with row limits.
147
+
*`query_log/failed//` - Get failed query log history with interval and specified number of rows.
0 commit comments