async def generate(
    prompt: str,
    request: Request,
) -> str:
    """
    Returns URL of the generated image for text prompt
    """
    app_settings.settings.lcm_diffusion_setting.prompt = prompt
    images = context.generate_text_to_image(app_settings.settings)
    image_names = context.save_images(
        images,
        app_settings.settings,
    )
    url = request.url_for("results", path=image_names[0])
    image_url = f"The generated image available at the URL {url}"
    return image_url

    Returns URL of the generated image for text prompt
    
src/backend/api/mcp_server.py