mcp-hydrolix 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl

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.
@@ -56,10 +56,11 @@ def list_tables(database: str, like: str = None):
56
56
 
57
57
  # Get all table comments in one query
58
58
  table_comments_query = (
59
- f"SELECT name, comment FROM system.tables WHERE database = {format_query_value(database)}"
59
+ f"SELECT name, comment, primary_key FROM system.tables WHERE database = {format_query_value(database)} and engine = 'TurbineStorage' and total_rows > 0"
60
60
  )
61
61
  table_comments_result = client.query(table_comments_query)
62
62
  table_comments = {row[0]: row[1] for row in table_comments_result.result_rows}
63
+ primary_keys = {row[0]: row[2] for row in table_comments_result.result_rows}
63
64
 
64
65
  # Get all column comments in one query
65
66
  column_comments_query = f"SELECT table, name, comment FROM system.columns WHERE database = {format_query_value(database)}"
@@ -98,6 +99,7 @@ def list_tables(database: str, like: str = None):
98
99
  "comment": table_comments.get(table),
99
100
  "columns": columns,
100
101
  "create_table_query": create_table_result,
102
+ "primary_key": primary_keys.get(table)
101
103
  }
102
104
 
103
105
  tables = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-hydrolix
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: An MCP server for Hydrolix.
5
5
  Project-URL: Home, https://github.com/hydrolix/mcp-hydrolix
6
6
  License-Expression: Apache-2.0
@@ -66,7 +66,7 @@ MCP Server definition (JSON):
66
66
  "env": {
67
67
  "HYDROLIX_HOST": "<hydrolix-host>",
68
68
  "HYDROLIX_USER": "<hydrolix-user>",
69
- "HYDROLIX_PASSWORD": "<hydrolix-password>",
69
+ "HYDROLIX_PASSWORD": "<hydrolix-password>"
70
70
  }
71
71
  }
72
72
  ```
@@ -88,7 +88,7 @@ env:
88
88
  HYDROLIX_PASSWORD: <hydrolix-password>
89
89
  ```
90
90
 
91
- ## Configuration Example (Claude Desktop)
91
+ ### Configuration Example (Claude Desktop)
92
92
 
93
93
  1. Open the Claude Desktop configuration file located at:
94
94
  - On macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
@@ -112,7 +112,7 @@ env:
112
112
  "env": {
113
113
  "HYDROLIX_HOST": "<hydrolix-host>",
114
114
  "HYDROLIX_USER": "<hydrolix-user>",
115
- "HYDROLIX_PASSWORD": "<hydrolix-password>",
115
+ "HYDROLIX_PASSWORD": "<hydrolix-password>"
116
116
  }
117
117
  }
118
118
  }
@@ -0,0 +1,9 @@
1
+ mcp_hydrolix/__init__.py,sha256=DnAQkvoFf_QhrDNFLOmn-nHlldPUgtdN33k3xJWthgc,225
2
+ mcp_hydrolix/main.py,sha256=WTZcvpIas2mIjNd_em7KWlXI_6IXZAdtdlQ7czmX1cs,96
3
+ mcp_hydrolix/mcp_env.py,sha256=HPOPRdPm-YAxU3ygdZPoNT8Oc4CE-VWXF6mmton5mnU,4454
4
+ mcp_hydrolix/mcp_server.py,sha256=xzEILclKF88KE8OZljiaAHwPcfiyt5DE_amPnqVyMFQ,10017
5
+ mcp_hydrolix-0.1.3.dist-info/METADATA,sha256=EEc9-0SGJc6AGmSQHvrbki6unzxV7c1m2IoLJhMWBuo,5152
6
+ mcp_hydrolix-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ mcp_hydrolix-0.1.3.dist-info/entry_points.txt,sha256=vHa7F2rOCVu8lpsqR8BYbE1w8ugJSOYwX95w802Y5qE,56
8
+ mcp_hydrolix-0.1.3.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
+ mcp_hydrolix-0.1.3.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- mcp_hydrolix/__init__.py,sha256=DnAQkvoFf_QhrDNFLOmn-nHlldPUgtdN33k3xJWthgc,225
2
- mcp_hydrolix/main.py,sha256=WTZcvpIas2mIjNd_em7KWlXI_6IXZAdtdlQ7czmX1cs,96
3
- mcp_hydrolix/mcp_env.py,sha256=HPOPRdPm-YAxU3ygdZPoNT8Oc4CE-VWXF6mmton5mnU,4454
4
- mcp_hydrolix/mcp_server.py,sha256=L5ahWFqNXXiQLNbpONo1jTsGFoZFtrd1pln5iHTsMOM,9823
5
- mcp_hydrolix-0.1.1.dist-info/METADATA,sha256=k_CVCad12xZLwzYKsFvsXPoN9vMb489qpVg2H6xkSKc,5153
6
- mcp_hydrolix-0.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- mcp_hydrolix-0.1.1.dist-info/entry_points.txt,sha256=vHa7F2rOCVu8lpsqR8BYbE1w8ugJSOYwX95w802Y5qE,56
8
- mcp_hydrolix-0.1.1.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
- mcp_hydrolix-0.1.1.dist-info/RECORD,,