Skip to content

add server URL selection for Clara Companion authentication#2

Merged
esc247 merged 1 commit into
mainfrom
clara-companion-local-support
Mar 19, 2026
Merged

add server URL selection for Clara Companion authentication#2
esc247 merged 1 commit into
mainfrom
clara-companion-local-support

Conversation

@esc247
Copy link
Copy Markdown
Owner

@esc247 esc247 commented Mar 19, 2026

Summary
This PR updates the Clara Companion MCP bridge to allow users to choose which server URL to authenticate against, rather than defaulting to the cloud URL.

Changes
Clara Companion MCP Bridge
Updated backend/mcp-bridge/internal/commands/login.go to include a server URL selection prompt during authentication:

Added promptServerURL() function that presents users with two options:
Default - Uses the build-time configured URL (dev or prod)
Custom URL - Allows users to enter their own ClaraVerse server URL
The default URL is determined by the build-time DefaultBackendURL configuration
Custom URLs are automatically converted to WebSocket URLs for the MCP connection
Users can authenticate against self-hosted instances or the cloud service
Testing
Test the authentication flow:

bash
./clara-companion login
You will be prompted to choose between the default server or enter a custom URL.

Related Issues
N/A

@esc247 esc247 merged commit 9f7a50e into main Mar 19, 2026
@esc247 esc247 deleted the clara-companion-local-support branch March 20, 2026 10:51
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