-
Notifications
You must be signed in to change notification settings - Fork 39
${VAR} env-var interpolation in MCP server config still not working on v0.5.19 #656
Copy link
Copy link
Open
Description
Follow-up to #635 (closed as resolved in v0.5.19).
Problem
Environment variable interpolation in MCP server environment config is still not working on v0.5.19. The MCP server receives the literal string instead of the resolved value.
Config (~/.config/altimate-code/altimate-code.json)
{
"mcp": {
"gitlab": {
"type": "local",
"command": ["node", ".../gitlab-mcp-server/dist/index.js"],
"environment": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "{env:GITLAB_PERSONAL_ACCESS_TOKEN}",
"GITLAB_API_URL": "https://gitlab.com/api/v4"
}
}
}
}Reproduction steps
- Set
GITLAB_PERSONAL_ACCESS_TOKENin the shell environment (confirmed present viaecho) - Configure the MCP server in
altimate-code.jsonusing{env:GITLAB_PERSONAL_ACCESS_TOKEN}in theenvironmentblock - Call any GitLab MCP tool (e.g.,
gitlab_get_current_user) - Result:
MCP error -32603: This operation requires user authentication
Additional findings
- The
${GITLAB_PERSONAL_ACCESS_TOKEN}syntax was also tested — same failure - Passing the token directly via the
userCredentialsparameter works, confirming the MCP server itself is functional altimate-code --versionconfirms v0.5.19- The fix in v0.5.19 (
fix: ${VAR} env-var interpolation for configs (closes #635) (#655)) does not appear to resolve this case
Metadata
| Field | Value |
|---|---|
| CLI Version | 0.5.19 |
| Platform | darwin |
| Architecture | arm64 |
| OS Release | 25.3.0 |
| Category | bug |
| Working Directory | data-warehouse-etl-dbt |
| Session ID | ses_2aba8ca90ffeLGmZEZ4sNP90Ng |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels