Skip to content

Commit d824881

Browse files
Testclaude
andcommitted
fix(mcpb): pass config_path parameter to load_config() in async_main()
Critical bug fix: When CIDX_SERVER_URL is set via environment variable, the code correctly determines config_path should be DEFAULT_CONFIG_PATH, but fails to pass it to load_config(). This prevents bearer_token and refresh_token from being loaded from the config file. Fix: Add config_path parameter to load_config() call on line 177. This enables the config file to be read properly when env vars are set, allowing automatic token refresh to work correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent eacae80 commit d824881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code_indexer/mcpb/bridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ async def async_main(): # pragma: no cover
174174
config_path = DEFAULT_CONFIG_PATH
175175

176176
# Load configuration
177-
config = load_config(use_env=True)
177+
config = load_config(config_path=config_path, use_env=True)
178178

179179
# Create and run bridge
180180
bridge = Bridge(config, config_path=config_path)

0 commit comments

Comments
 (0)