Skip to content
Discussion options

You must be logged in to vote

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}}"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gihun123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #10205 on October 22, 2025 07:46.