[FEATURE]: mcp server environment must accept env var. #3796

Open
opened 2026-02-16 17:41:30 -05:00 by yindo · 1 comment
Owner

Originally created by @magic-thomas on GitHub (Dec 23, 2025).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Hello.

Simple request.

"mcp" {

      "environment": {
        "MY_API_KEY": "${MY_API_KEY}"
      },

} 

"${MY_API_KEY}" should be accepted in setting for security..

Originally created by @magic-thomas on GitHub (Dec 23, 2025). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Hello. Simple request. ```json "mcp" { "environment": { "MY_API_KEY": "${MY_API_KEY}" }, } ``` `"${MY_API_KEY}"` should be accepted in setting for security..
yindo added the discussion label 2026-02-16 17:41:30 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 23, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #5299: {env:...} variable substitution inconsistently fails for specific MCP server URLs - This documents a related feature that partially exists but has bugs with environment variable substitution for MCP environments

Additionally, related feature requests on this topic:

  • #318: Ability to pass credentials without storing in environment file - Requests environment variable and command substitution support
  • #231: Add ability to load secrets from external command or environment variables in the config file

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 23, 2025): This issue might be a duplicate of existing issues. Please check: - #5299: `{env:...}` variable substitution inconsistently fails for specific MCP server URLs - This documents a related feature that partially exists but has bugs with environment variable substitution for MCP environments Additionally, related feature requests on this topic: - #318: Ability to pass credentials without storing in environment file - Requests environment variable and command substitution support - #231: Add ability to load secrets from external command or environment variables in the config file Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3796