Skip to content

feat: per-profile env overrides and auth list command#47

Merged
troycdc merged 2 commits into
mainfrom
feat/profile-envs-and-auth-list
May 22, 2026
Merged

feat: per-profile env overrides and auth list command#47
troycdc merged 2 commits into
mainfrom
feat/profile-envs-and-auth-list

Conversation

@troycdc
Copy link
Copy Markdown
Collaborator

@troycdc troycdc commented May 19, 2026

Summary

  • Add [profiles.<name>.envs] table in config.toml for per-profile environment variable overrides (e.g. CDCX_REST_URL, CDCX_WS_MARKET_URL), allowing profiles to route to different endpoints without shell wrappers
  • Add cdcx auth list command that displays all configured profiles with masked API keys and live auth status (ok/error)
  • Fix MCP server ignoring config.toml when plugin framework passes empty env vars — empty/whitespace CDCX_API_KEY/CDCX_API_SECRET now fall through to config file
  • MCP server now reads CDCX_PROFILE / CDC_PROFILE env var to select the active profile

Test plan

  • cargo test — all 318 tests pass
  • cdcx auth list — shows correct auth status per profile with isolated env overrides
  • Profiles with [envs] correctly override URLs only for that profile
  • MCP server uses CDCX_PROFILE to select correct credentials and environment
  • Empty env vars in Claude Code plugin fall through to config.toml

closes #46

🤖 Generated with Claude Code

troycdc and others added 2 commits May 20, 2026 01:28
…esolution

Adds `[profiles.<name>.envs]` table for per-profile environment variable
overrides (e.g. CDCX_REST_URL) so users can route profiles to different
endpoints without shell wrappers.

Adds `cdcx auth list` to display all configured profiles with masked keys
and live auth status (ok/error).

Fixes MCP server ignoring config.toml when plugin framework passes empty
env vars — empty/whitespace CDCX_API_KEY/SECRET now fall through to config.
MCP also reads CDCX_PROFILE to select the active profile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@troycdc troycdc merged commit 4ff20a7 into main May 22, 2026
8 checks passed
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.

CLI: Per-profile environment overrides and cdcx auth list

1 participant