Skip to content

MCP configuration Environment Variable expansion does not work in cmd section #4014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
axmo opened this issue May 27, 2025 · 1 comment · Fixed by #3970
Closed

MCP configuration Environment Variable expansion does not work in cmd section #4014

axmo opened this issue May 27, 2025 · 1 comment · Fixed by #3970
Labels
bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels.

Comments

@axmo
Copy link

axmo commented May 27, 2025

App Version

v3.18.3

API Provider

Not Applicable / Other

Model Used

N/A

🔁 Steps to Reproduce

Create a .env.local file with

SUPABASE_ACCESS_TOKEN=<valid access token>

Add an MCP config like:

"supabase": {
    "command": "npx",
    "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest",
        "--access-token",
        "${env:SUPABASE_ACCESS_TOKEN}"
    ],
    "alwaysAllow": []
}

💥 Outcome Summary

Expected result: the MCP server connects to Supabase using <valid access token> pulled from .env.local via variable substitution.

Actual result: the MCP server attempts to connect to Supabase using the literal string "${env:SUPABASE_ACCESS_TOKEN}" as the access token.

📄 Relevant Logs or Errors (Optional)

@axmo
Copy link
Author

axmo commented May 27, 2025

@NamesMT has a PR up already to fix this issue: #3970

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label May 27, 2025
@hannesrudolph hannesrudolph moved this from Triage to Issue [In Progress] in Roo Code Roadmap May 28, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap May 28, 2025
@github-project-automation github-project-automation bot moved this from Issue [In Progress] to Done in Roo Code Roadmap May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants