MCPcopy Create free account
hub / github.com/IBM/mcp-cli / _clean_mcp_env

Function _clean_mcp_env

tests/cli/test_main_coverage.py:38–42  ·  view source on GitHub ↗

Remove MCP_CLI env vars that main_callback may set as a side effect.

()

Source from the content-addressed store, hash-verified

36
37@pytest.fixture(autouse=True)
38def _clean_mcp_env():
39 """Remove MCP_CLI env vars that main_callback may set as a side effect."""
40 yield
41 for var in _MCP_ENV_VARS:
42 os.environ.pop(var, None)
43
44
45# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected