Problem
Generated repos require users to export API keys in their shell to run integration tests. A .env file in the repo root (already in .gitignore and .mcpbignore) is silently ignored because conftest.py only checks os.environ.get().
Proposed fix
- Add
python-dotenv to dev dependencies in pyproject.toml
- Add
load_dotenv() to tests-integration/conftest.py before the env var gate
This matches the pattern already used in mcp-deepl's e2e tests and makes .env files work out of the box for integration testing.
Problem
Generated repos require users to
exportAPI keys in their shell to run integration tests. A.envfile in the repo root (already in.gitignoreand.mcpbignore) is silently ignored becauseconftest.pyonly checksos.environ.get().Proposed fix
python-dotenvto dev dependencies inpyproject.tomlload_dotenv()totests-integration/conftest.pybefore the env var gateThis matches the pattern already used in mcp-deepl's e2e tests and makes
.envfiles work out of the box for integration testing.