Skip to content

fix: add OSC_ENV derivation from OSC_MCP_URL and --env flag (#12)#13

Merged
birme merged 1 commit intomainfrom
fix/12-config-to-env-osc-env
May 11, 2026
Merged

fix: add OSC_ENV derivation from OSC_MCP_URL and --env flag (#12)#13
birme merged 1 commit intomainfrom
fix/12-config-to-env-osc-env

Conversation

@birme
Copy link
Copy Markdown
Contributor

@birme birme commented May 10, 2026

Summary

  • Derives OSC_ENV from OSC_MCP_URL for dev/stage environment awareness
  • Adds token refresh block matching web-runner pattern (x-pat-jwt header, jq parsing)
  • Replaces legacy bare-eval config-to-env call with structured exit-code-checked block
  • Filters only valid export VAR=val lines before eval to prevent shell injection
  • Passes --env flag to config-to-env CLI call

Fixes #12

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
@birme birme self-assigned this May 10, 2026
@birme birme merged commit 3727b88 into main May 11, 2026
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.

config-to-env: add OSC_ENV derivation from OSC_MCP_URL and pass --env flag

2 participants