Skip to content

Conversation

@anatoly-anatoly
Copy link

Add support for CLICKHOUSE_ROLE environment variable

Summary

This PR adds support for the CLICKHOUSE_ROLE environment variable, allowing users to specify a role for authentication when connecting to ClickHouse.

Changes

  • Added CLICKHOUSE_ROLE to the list of optional environment variables in mcp_env.py.
  • Updated ClickHouseConfig to include a role property.
  • Updated get_client_config to pass the role to the ClickHouse client settings.
  • Added unit tests in tests/test_config_interface.py to verify the configuration.

Usage

"env": {
  "CLICKHOUSE_ROLE": "my_role"
}

@CLAassistant
Copy link

CLAassistant commented Nov 28, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants