Skip to content

Commit 3f72965

Browse files
committed
fix: fix docker build
1 parent 244834f commit 3f72965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mcp_clickhouse/mcp_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,14 @@ def _init_chdb_client():
316316

317317

318318
# Register tools based on configuration
319-
if get_config().enabled:
319+
if os.getenv("CLICKHOUSE_ENABLED", "true").lower() == "true":
320320
mcp.add_tool(list_databases)
321321
mcp.add_tool(list_tables)
322322
mcp.add_tool(run_select_query)
323323
logger.info("ClickHouse tools registered")
324324

325325

326-
if get_chdb_config().enabled:
326+
if os.getenv("CHDB_ENABLED", "false").lower() == "true":
327327
_chdb_client = _init_chdb_client()
328328
if _chdb_client:
329329
atexit.register(lambda: _chdb_client.close())

0 commit comments

Comments
 (0)