Avoid setting UV_ENV_FILE globally
I’m using the Atlassian Remote MCP Server in Claude Code to fetch Jira tickets. I installed it per-project using claude mcp add-json <name> <string>
. Recently, I noticed it keeps failing in one project, although the config is exactly the same.
I checked the problem by locating the MCP server command and executing it within the project. The error raised: No environment file found at: `.env`
. It reminded me that UV_ENV_FILE=.env
is set globally, and it’s too convenient to be noticed. After removing the environment variable, the MCP server works.
#python
#uv