MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / _read_server

Function _read_server

tests/cli/test_claude.py:66–68  ·  view source on GitHub ↗
(config_dir: Path, name: str)

Source from the content-addressed store, hash-verified

64
65
66def _read_server(config_dir: Path, name: str) -> dict[str, Any]:
67 config = json.loads((config_dir / "claude_desktop_config.json").read_text())
68 return config["mcpServers"][name]
69
70
71def test_generates_uv_run_command(config_dir: Path):

Calls

no outgoing calls

Tested by

no test coverage detected