def test_invalid_sse_url():
    """Test SSE configuration with invalid URL format."""
    config = MCPConfig(sse_servers=[MCPSSEServerConfig(url='not_a_url')])
    with pytest.raises(ValueError) as exc_info:
        config.validate_servers()
    assert 'Invalid URL' in str(exc_info.value)
Test SSE configuration with invalid URL format.
tests/unit/test_mcp_config.py