flux-kontext-mcp

v0.2.3
io.github.runapi-builder/flux-kontext-mcp Checked 2 days ago Published 3 days ago

RunAPI MCP server for Flux Kontext: create tasks, poll status, check pricing.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

login

Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.

ParameterTypeDescription
forcebooleanRe-run browser login when the current credential comes from the local config file.

text_to_image

Create a Flux Kontext task on RunAPI (text to image). Returns a task id, status, and output URLs.

ParameterTypeDescription
prompt *stringImage description (English only). Declared type: string.
aspect_ratiostringOutput aspect ratio. Default: 16:9. Declared type: string. Known values: "21:9", "16:9", "4:3", "1:1", "3:4", "9:16".
callback_urlstringWebhook URL for async notifications. Declared type: string.
enable_prompt_expansionbooleanExpand the prompt with more detail. Default: false. Declared type: boolean.
enable_translationbooleanAuto-translate non-English prompts. Default: true. Declared type: boolean.
modelstringRunAPI model slug for this model line.
output_formatstringOutput format. Default: jpeg. Declared type: string. Known values: "jpeg", "png".
poll_interval_msinteger
safety_toleranceintegerContent safety threshold. 0-6 for generation, 0-2 for editing. Default: 2. Declared type: integer.
source_image_urlstringSource image URL for editing mode. Declared type: string.
timeout_msinteger
waitbooleanPoll until the task reaches a terminal status.
watermarkstringWatermark identifier. Declared type: string.

get_task

Fetch the current status and latest result payload for a flux-kontext task.

ParameterTypeDescription
task_id *stringTask id returned when the task was created.
actionstringAsynchronous endpoint the task was created on. Defaults to the line's only asynchronous endpoint.

check_pricing

Look up RunAPI pricing for the flux-kontext model line.

ParameterTypeDescription
actionstringEndpoint name. Defaults to the endpoint that offers the model.
modelstringModel slug. Defaults to the line's primary model.