#mcp
1 post.
-
Why your MCP server cannot see env vars from .bashrc
Claude Code spawns MCP servers as plain child processes. They never source .bashrc. Set MCP env vars in environment.d or the MCP env config, not your shell rc files.