You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add environment variable fallback with ENT_ prefix support
- Add getEnvWithFallback() to check unprefixed vars first, then ENT_ prefixed
- Applies to all env vars: CONTEXT7_API_KEY, BRAVE_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY
- Update docs to reflect unprefixed as preferred style with ENT_ as fallback
- Bump version to 1.1.0
- Update golangci-lint version to 2.11.3
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,16 @@
2
2
3
3
All notable changes to MCP CLI-Ent will be documented in this file.
4
4
5
+
<!-- RELEASE:START 1.1.0 -->
6
+
## [1.1.0] - 2026-03-19
7
+
8
+
### Added
9
+
10
+
-**Environment Variable Fallback**: For each `${VAR_NAME}` in config, the CLI now checks the unprefixed variable first (e.g., `CONTEXT7_API_KEY`), then falls back to the `ENT_` prefixed version (e.g., `ENT_CONTEXT7_API_KEY`) if the first is empty. This provides backward compatibility while supporting the preferred unprefixed naming convention.
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,18 +162,23 @@ Use `${VAR_NAME}` or `$VAR_NAME` in values:
162
162
163
163
```json
164
164
{
165
-
"args": ["--api-key", "${ENT_CONTEXT7_API_KEY}"],
165
+
"args": ["--api-key", "${CONTEXT7_API_KEY}"],
166
166
"env": { "API_KEY": "$MY_API_KEY" },
167
167
"headers": { "Authorization": "Bearer ${TOKEN}" }
168
168
}
169
169
```
170
170
171
+
**Fallback Behavior**: For each variable, the CLI checks the unprefixed name first (e.g., `CONTEXT7_API_KEY`), then falls back to the `ENT_` prefixed version (e.g., `ENT_CONTEXT7_API_KEY`) if the first is empty. This prevents conflicts with existing environment variables.
0 commit comments