8000 Unactionable Output from `mcp-hfspace_FLUX_1-schnell-infer` Image Generation Tool · Issue #24 · evalstate/mcp-hfspace · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unactionable Output from mcp-hfspace_FLUX_1-schnell-infer Image Generation Tool #24
Open
@umaxfun

Description

@umaxfun

The Problem

When using the mcp-hfspace_FLUX_1-schnell-infer tool, the goal is to generate an image and save it to the project directory for later use.

  1. Action: The tool is called with a prompt.
  2. Result: It successfully generates an image, which is correctly displayed in the Cursor user interface.
  3. API Response: The tool's response contains only an opaque Image object and a Seed. It does not provide a URL, file path, or any other reference that can be used to access the image file.

Example API Response:

Tool: FLUX_1-schnell-infer, Result: Image
Tool: FLUX_1-schnell-infer, Result: Seed: 834280363

This response creates a "dead end." The primary function of creating a persistent artifact is lost, as the generated image cannot be saved or referenced from the tool.

Expected Behavior

An image generation tool should always return a direct, accessible URL to the generated artifact. This allows the output to be programmatically saved, which is a critical part of a developer workflow.

For example, another internal tool, hf-mcp-server_gr1_evalstate_flux1_schnell from the official MCP server, demonstrates the correct behavior by including an Image URL in its response:

Example of Desired Response Format:

Tool: gr1_evalstate_flux1_schnell, Result: Image
Tool: gr1_evalstate_flux1_schnell, Result: Image URL: https://.../image.webp
Tool: gr1_evalstate_flux1_schnell, Result: 637943282

The caveat with the official MCP server is that it is heavily throttled, it asks to wait for 16 hours (!) after generating 2 images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0