env placeholder {{LIBRECHAT_USER_ID}} not replaced in stdio MCP servers #10211
-
What happened?The Version Information0.8.0 Steps to Reproducelibrechat.yaml index.js What browsers are you seeing the problem on?No response Relevant log output{
HOME: '/root',
PATH: '/app/node_modules/.bin:/node_modules/.bin:/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
TEST_ENV: '/root',
USER_ID: '{{LIBRECHAT_USER_ID}}'
}ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Answered by
danny-avila
Oct 22, 2025
Replies: 1 comment
-
|
STDIO servers are initialized on startup by default and the MCP connection is shared so individual MCP connections cannot inform running the script so it's already ran at startup. Try this: mcpServers:
my-mcp-server:
startup: false
type: stdio
command: node
args:
- /app/mcp-server/index.js
env:
TEST_ENV: "${HOME}"
USER_ID: "{{LIBRECHAT_USER_ID}}" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gihun123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
STDIO servers are initialized on startup by default and the MCP connection is shared so individual MCP connections cannot inform running the script so it's already ran at startup.
Try this: