Is it possible to use environment variables that are not set on librechat.yaml? #7438
-
Hello, mcpServers:
notionApi:
type: stdio
command: npx
args:
- -y
- "@notionhq/notion-mcp-server"
env:
OPENAPI_MCP_HEADERS: xxx When I use this example, everything works fine. However, I'm wondering if it's possible to set OPENAPI_MCP_HEADERS directly in the environment or another location, instead of putting it in plain text in the librechat.yaml file. Is this possible? I have already tried exporting the variable, but it doesn't seem to work. |
Beta Was this translation helpful? Give feedback.
Answered by
danny-avila
May 19, 2025
Replies: 1 comment
-
Yes, use: # librechat.yaml
OPENAPI_MCP_HEADERS: ${REF_TO_VARIABLE} and then in your .env file: # .env
REF_TO_VARIABLE=your_value The key is to use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
f-avelar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, use:
and then in your .env file:
The key is to use the
${var}
formatting, the name is arbitrary.