async def test_default_in_memory_storage():
    """Test the default in-memory token storage."""
    # Create client with OAuth using default storage
    client = BasicMCPClient.with_oauth(
        "python",
        args=[SERVER_SCRIPT],
        client_name="Test Client",
        redirect_uris=["http://localhost:3000/callback"],
        redirect_handler=lambda url: None,  # Do nothing in test
        callback_handler=lambda: ("fake_code", None),  # Return fake code
    )

    # Just verify initialization works
    assert client.auth is not None
Test the default in-memory token storage.
llama-index-integrations/tools/llama-index-tools-mcp/tests/test_client.py