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
- Add new ClickHouseConfig class to manage all connection settings
- Implement secure defaults for HTTPS and SSL verification
- Add detailed documentation for all environment variables
- Improve connection error handling and logging
- Add .envrc to gitignore
3. Run `uv sync` to install the dependencies. To install `uv` follow the instructions [here](https://docs.astral.sh/uv/). Then do `source .venv/bin/activate`.
103
111
104
112
4. For easy testing, you can run `fastmcp dev mcp_clickhouse/mcp_server.py` to start the MCP server.
113
+
114
+
### Environment Variables
115
+
116
+
The following environment variables are used to configure the ClickHouse connection:
117
+
118
+
#### Required Variables
119
+
*`CLICKHOUSE_HOST`: The hostname of your ClickHouse server
120
+
*`CLICKHOUSE_USER`: The username for authentication
121
+
*`CLICKHOUSE_PASSWORD`: The password for authentication
122
+
123
+
#### Optional Variables
124
+
*`CLICKHOUSE_PORT`: The port number of your ClickHouse server
125
+
- Default: `8443` if HTTPS is enabled, `8123` if disabled
126
+
- Usually doesn't need to be set unless using a non-standard port
0 commit comments