MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / test_env_vars_written

Function test_env_vars_written

tests/cli/test_claude.py:114–118  ·  view source on GitHub ↗

env_vars should be written under the server's env key.

(config_dir: Path)

Source from the content-addressed store, hash-verified

112
113
114def test_env_vars_written(config_dir: Path):
115 """env_vars should be written under the server's env key."""
116 assert update_claude_config(file_spec="s.py:app", server_name="s", env_vars={"KEY": "val"})
117
118 assert _read_server(config_dir, "s")["env"] == {"KEY": "val"}
119
120
121def test_existing_env_vars_merged_new_wins(config_dir: Path):

Callers

nothing calls this directly

Calls 2

update_claude_configFunction · 0.90
_read_serverFunction · 0.85

Tested by

no test coverage detected