Skip to content

fix: missing env vars for devnet deploy#63

Merged
sqhell merged 1 commit into
mainfrom
fix/autobot-env-var
Apr 14, 2026
Merged

fix: missing env vars for devnet deploy#63
sqhell merged 1 commit into
mainfrom
fix/autobot-env-var

Conversation

@sqhell
Copy link
Copy Markdown
Contributor

@sqhell sqhell commented Apr 14, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the healthcheck configuration in docker-compose.yml and introduces several new environment variables in env.py for semantic search, Canton ledger connectivity, and environment isolation. Feedback focuses on resolving inconsistent default values for ledger and server URLs and aligning boolean parsing logic for the isolation flag with existing helper functions.

Comment thread src/canton_mcp_server/env.py
Comment thread src/canton_mcp_server/env.py
ENV_VALUES["CANTON_DEFAULT_PAYER_PARTY"] = os.getenv("CANTON_DEFAULT_PAYER_PARTY", "")

# Isolated environment flag (also read directly via os.environ at module level)
ENV_VALUES["IS_ISOLATED_ENVIRONMENT"] = os.getenv("IS_ISOLATED_ENVIRONMENT", "false")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Adding IS_ISOLATED_ENVIRONMENT to ENV_VALUES is necessary for the get_env helpers to function, but the parsing logic at the module level (line 19: .lower() == "true") is inconsistent with the get_env_bool helper (lines 162-174), which also accepts "1", "yes", and "on". This discrepancy can cause the server to incorrectly identify its environment type if values like "1" are used. Consider aligning the logic across the module.

@sqhell sqhell merged commit b12b94b into main Apr 14, 2026
3 checks passed
@sqhell sqhell deleted the fix/autobot-env-var branch April 14, 2026 18:03
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.

1 participant