We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 244834f commit 3f72965Copy full SHA for 3f72965
mcp_clickhouse/mcp_server.py
@@ -316,14 +316,14 @@ def _init_chdb_client():
316
317
318
# Register tools based on configuration
319
-if get_config().enabled:
+if os.getenv("CLICKHOUSE_ENABLED", "true").lower() == "true":
320
mcp.add_tool(list_databases)
321
mcp.add_tool(list_tables)
322
mcp.add_tool(run_select_query)
323
logger.info("ClickHouse tools registered")
324
325
326
-if get_chdb_config().enabled:
+if os.getenv("CHDB_ENABLED", "false").lower() == "true":
327
_chdb_client = _init_chdb_client()
328
if _chdb_client:
329
atexit.register(lambda: _chdb_client.close())
0 commit comments