Model Context Protocol server for Flux image generation API
The server defines 4 tools with complete input schemas and descriptions, but has significant gaps in parameter descriptions, lacks output schema documentation, and provides minimal error guidance. Naming follows verb_noun convention well (generate, img2img, inpaint, control), but parameter descriptions are inconsistent, some parameters lack descriptions entirely or are too generic. No output schemas are documented, making it unclear what fields agents should expect from responses. Error handling exists but does not provide recovery guidance. The tool definitions are directly visible in src/index.ts via explicit setupToolHandlers() registration with full inputSchema objects, so no cap applies. Average of per-tool scores yields 52.
Generate an image using structural control
Generate an image from a text prompt
Generate an image using another image as reference
Inpaint an image using a mask
No output schemas documented. Tools return unstructured responses (e.g., output of runPythonCommand is a string). Agents cannot plan downstream operations or extract critical fields like image URLs, dimensions, or metadata. This violates the schema documentation pattern and forces agents to reason about untyped data.
Parameter 'name' in img2img tool lacks a description. LLMs cannot infer what this field controls. Other parameters like 'strength', 'width', 'height' lack context (e.g., is strength a 0-1 float or 0-100 int? What are acceptable width/height ranges?).
Parameter descriptions are generic or incomplete. E.g., 'strength' is described as 'Generation strength' without specifying range (default 0.85 suggests 0-1, but this is not stated). 'steps' in control tool has no description. LLMs lack concrete constraints to generate valid input.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 52 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Tool descriptions do not indicate state-changing behavior. All four tools are WRITE operations (they generate/modify images and write files), but descriptions lack explicit warnings that these are irreversible actions. Agents cannot reason about retry safety or rollback requirements.
Error handling in runPythonCommand does not guide LLM recovery. Errors like 'Flux command failed (exit code 1): ...' contain stderr but no actionable next step. LLM does not know whether to retry, adjust parameters, or ask the user.
Output filename parameters (output in generate/img2img/inpaint/control) use file paths but do not document directory structure, file extensions, or path constraints. Can agents write arbitrary paths? Is traversal guarded? No documentation of return value format (does the tool return the full path, just the filename, or nothing?).
Environment variable BFL_API_KEY is required but only validated with a console.warn. No tool-level validation. If key is missing, tools will fail with unhelpful Python subprocess errors instead of clear MCP errors. Should validate at tool invocation and return actionable error.
Parameter 'image' in img2img and inpaint is documented as 'Input image path' but does not specify format (PNG, JPEG, WebP?), size limits, or resolution constraints. LLMs cannot know what to provide.