π The fast, Pythonic way to build MCP servers and clients.
Merge branch 'main' into clientconfig
Jeremiah Lowin451fc3bfc2ee
diff --cc tests/client/test_client.pyindex e85ca4fc5,0e97cb8d6..71625d45e--- a/tests/client/test_client.py+++ b/tests/client/test_client.py@@@ -673,19 -673,7 +673,19 @@@ class TestInferTransportassert transport.transport.command == "echo"assert transport.transport.args == ["hello"]+ def test_config_with_no_servers(self):+ """Test that an empty MCPConfig raises a ValueError."""+ config = {"mcpServers": {}}+ with pytest.raises(ValueError, match="No MCP servers defined in the config"):+ infer_transport(config)++ def test_mcpconfigtransport_with_no_servers(self):+ """Test that MCPConfigTransport raises a ValueError when initialized with an empty config."""+ config = {"mcpServers": {}}+ with pytest.raises(ValueError, match="No MCP servers defined in the config"):+ MCPConfigTransport(config=config)+- def test_infer_composite_client(config):+ def test_infer_composite_client(self):config = {"mcpServers": {"local": {