summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/InputPrompt.tsx
diff options
context:
space:
mode:
authorjerop <[email protected]>2025-06-06 13:54:59 +0000
committerJerop Kipruto <[email protected]>2025-06-06 11:47:37 -0400
commit4e9d365407564e0f440bf4645607aa47a1d16bca (patch)
tree257684bdade5e42fe7a07bd304321a990ea4ede7 /packages/cli/src/ui/components/InputPrompt.tsx
parent9ad615c2a486675c4ad75c986a0a5dbd8f8b030e (diff)
feat: Enable environment variable substitution in settings
This commit introduces the ability to use system environment variables within the settings files (e.g., `settings.json`). Users can now reference environment variables using the `${VAR_NAME}` syntax. This enhancement improves security and flexibility, particularly for configurations like MCP server settings, which often require sensitive tokens. Previously, to configure an MCP server, a token might be directly embedded: ```json "mcpServers": { "github": { "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "pat_abc123" } // ... } } ``` With this change, the same configuration can securely reference an environment variable: ```json "mcpServers": { "github": { "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}" } // ... } } ``` This allows users to avoid storing secrets directly in configuration files.
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.tsx')
0 files changed, 0 insertions, 0 deletions