@runapi.ai/flux-kontext-mcp 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +113 -23
- package/dist/src/meta.d.ts +1 -1
- package/dist/src/meta.js +1 -1
- package/dist/src/server.js +2 -30
- package/dist/src/server.js.map +1 -1
- package/package.json +11 -4
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -1,38 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">Flux Kontext MCP Server</h1>
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>Create Flux Kontext AI tasks through RunAPI — 1 endpoint, 2 models — then poll status and check pricing. One MCP server, one API key.</strong>
|
|
5
|
+
</p>
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
<p align="center">
|
|
8
|
+
<sub>Works with Claude Code, Codex, Cursor, Windsurf, VS Code, Roo Code, and any MCP-compatible host.</sub>
|
|
9
|
+
</p>
|
|
7
10
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://www.npmjs.com/package/@runapi.ai/flux-kontext-mcp"><img src="https://img.shields.io/npm/v/%40runapi.ai/flux-kontext-mcp?style=flat-square&color=blue" alt="npm version"></a>
|
|
13
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square" alt="Apache-2.0 license"></a>
|
|
14
|
+
<img src="https://img.shields.io/badge/Type-MCP_Server-blue?style=flat-square" alt="MCP Server">
|
|
15
|
+
<img src="https://img.shields.io/badge/Models-2-green?style=flat-square" alt="2 models">
|
|
16
|
+
</p>
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
<p align="center">
|
|
19
|
+
<a href="#quick-start">Quick Start</a> |
|
|
20
|
+
<a href="#tools">Tools</a> |
|
|
21
|
+
<a href="#models">Models</a> |
|
|
22
|
+
<a href="#examples">Examples</a> |
|
|
23
|
+
<a href="#configuration">Configuration</a>
|
|
24
|
+
</p>
|
|
15
25
|
|
|
16
|
-
|
|
17
|
-
it to `~/.config/runapi/config.json`:
|
|
26
|
+
---
|
|
18
27
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
28
|
+
## What Is This?
|
|
29
|
+
|
|
30
|
+
`@runapi.ai/flux-kontext-mcp` is a focused MCP server for the **Flux Kontext** model line on RunAPI.
|
|
31
|
+
It lets an MCP-compatible assistant create Flux Kontext tasks, poll their status, and check current pricing — all through a single RunAPI API key.
|
|
32
|
+
|
|
33
|
+
`check_pricing` works without a key. Task creation and status polling require `RUNAPI_API_KEY`.
|
|
34
|
+
This package is a pure client; it does not run a local generation backend.
|
|
23
35
|
|
|
24
|
-
|
|
25
|
-
https://runapi.ai/pricing.
|
|
36
|
+
---
|
|
26
37
|
|
|
27
|
-
##
|
|
38
|
+
## Quick Start
|
|
28
39
|
|
|
29
|
-
|
|
40
|
+
Add it to Claude Code:
|
|
30
41
|
|
|
31
42
|
```bash
|
|
32
|
-
npx -y @runapi.ai/flux-kontext-mcp
|
|
43
|
+
claude mcp add flux-kontext -s user -- npx -y @runapi.ai/flux-kontext-mcp
|
|
33
44
|
```
|
|
34
45
|
|
|
35
|
-
|
|
46
|
+
- `-s user`: global, available in all of your projects.
|
|
47
|
+
- `-s project`: team-shared, written to `.mcp.json` in the current repo so it can be committed.
|
|
48
|
+
|
|
49
|
+
For other hosts, or for manual configuration, use this JSON:
|
|
36
50
|
|
|
37
51
|
```json
|
|
38
52
|
{
|
|
@@ -46,6 +60,82 @@ Add it to an MCP client (see `examples/` for per-client configs):
|
|
|
46
60
|
}
|
|
47
61
|
```
|
|
48
62
|
|
|
63
|
+
Create an API key at [runapi.ai](https://runapi.ai) and expose it as `RUNAPI_API_KEY`.
|
|
64
|
+
See `examples/` for ready-made config files for Claude, Cursor, Windsurf, VS Code, and Roo.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Tools
|
|
69
|
+
|
|
70
|
+
| Tool | Auth | Purpose |
|
|
71
|
+
|---|---|---|
|
|
72
|
+
| `text_to_image` | Yes | Create a Flux Kontext task (text to image) and optionally poll until it reaches a terminal status. Returns the task id, status, output URLs, and a price snapshot. |
|
|
73
|
+
| `get_task` | Yes | Fetch the current status and latest payload for an existing task. |
|
|
74
|
+
| `check_pricing` | No | Look up the current price for a Flux Kontext model and endpoint. |
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Models
|
|
79
|
+
|
|
80
|
+
Flux Kontext covers 2 models across 1 endpoint. Each tool accepts the models listed for it:
|
|
81
|
+
|
|
82
|
+
| Tool | Models |
|
|
83
|
+
|---|---|
|
|
84
|
+
| `text_to_image` | `flux-kontext-max`, `flux-kontext-pro` |
|
|
85
|
+
|
|
86
|
+
Call `check_pricing` for the current price of any model. Model availability can change between releases.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Examples
|
|
91
|
+
|
|
92
|
+
Ask your assistant in natural language; it uses the tools to confirm pricing and run the task.
|
|
93
|
+
|
|
94
|
+
### Create a task
|
|
95
|
+
|
|
96
|
+
```text
|
|
97
|
+
Run a Flux Kontext text to image task with RunAPI.
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
The assistant calls `check_pricing` to confirm the cost, then `text_to_image`, and returns the task id, status, and output URLs.
|
|
101
|
+
|
|
102
|
+
### Submit without waiting
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
Create the task but don't wait for it to finish.
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
The assistant calls the create tool with `wait: false` and returns the task id. Check on it later with `get_task`.
|
|
109
|
+
|
|
110
|
+
### Check pricing
|
|
111
|
+
|
|
112
|
+
```text
|
|
113
|
+
What does Flux Kontext cost?
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
The assistant calls `check_pricing` and shows the current snapshot, or links to [runapi.ai/pricing](https://runapi.ai/pricing).
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Configuration
|
|
121
|
+
|
|
122
|
+
The server reads the API key in this order:
|
|
123
|
+
|
|
124
|
+
1. `RUNAPI_API_KEY` environment variable
|
|
125
|
+
2. `~/.config/runapi/config.json`
|
|
126
|
+
|
|
127
|
+
Example config file:
|
|
128
|
+
|
|
129
|
+
```json
|
|
130
|
+
{
|
|
131
|
+
"apiKey": "your_runapi_key"
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Do not commit real API keys. Get one at [runapi.ai](https://runapi.ai); pricing is listed at [runapi.ai/pricing](https://runapi.ai/pricing).
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
49
139
|
## License
|
|
50
140
|
|
|
51
|
-
Apache
|
|
141
|
+
Licensed under the [Apache License, Version 2.0](LICENSE).
|
package/dist/src/meta.d.ts
CHANGED
package/dist/src/meta.js
CHANGED
package/dist/src/server.js
CHANGED
|
@@ -2,7 +2,6 @@ import { z } from "zod";
|
|
|
2
2
|
import { createModelServer, findModelForAction, findModels, friendlyError, jsonText, priceForModel, RunApiClient, taskStatus } from "@runapi.ai/mcp-core";
|
|
3
3
|
import { readContract, readPricing } from "./data.js";
|
|
4
4
|
import { META } from "./meta.js";
|
|
5
|
-
const RESERVED_FIELDS = new Set(["model", "rules"]);
|
|
6
5
|
function lineService(contract) {
|
|
7
6
|
return Object.keys(contract.actions)[0]?.split("/")[0] ?? META.lineSlug;
|
|
8
7
|
}
|
|
@@ -22,34 +21,8 @@ function lineModels(contract) {
|
|
|
22
21
|
}
|
|
23
22
|
return [...seen];
|
|
24
23
|
}
|
|
25
|
-
// No-model endpoints (models: []) carry their fields under the "_" roster.
|
|
26
|
-
function rostersForAction(action) {
|
|
27
|
-
return action.models.length > 0 ? action.models : ["_"];
|
|
28
|
-
}
|
|
29
|
-
function fieldsForAction(action) {
|
|
30
|
-
const fields = {};
|
|
31
|
-
for (const model of rostersForAction(action)) {
|
|
32
|
-
const roster = action.fields_by_model[model] ?? {};
|
|
33
|
-
for (const [name, field] of Object.entries(roster)) {
|
|
34
|
-
if (RESERVED_FIELDS.has(name)) {
|
|
35
|
-
continue;
|
|
36
|
-
}
|
|
37
|
-
if (!(name in fields)) {
|
|
38
|
-
fields[name] = field;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return fields;
|
|
43
|
-
}
|
|
44
24
|
function rulesForAction(action) {
|
|
45
|
-
|
|
46
|
-
const roster = action.fields_by_model[model] ?? {};
|
|
47
|
-
const rules = roster.rules;
|
|
48
|
-
if (Array.isArray(rules) && rules.length > 0) {
|
|
49
|
-
return rules;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return [];
|
|
25
|
+
return action.rules ?? [];
|
|
53
26
|
}
|
|
54
27
|
function buildTools(contract) {
|
|
55
28
|
const tools = [];
|
|
@@ -62,8 +35,7 @@ function buildTools(contract) {
|
|
|
62
35
|
description: `Create a ${action.model} task on RunAPI (${endpoint.replace(/_/g, " ")}). Returns a task id, status, and output URLs.`,
|
|
63
36
|
service,
|
|
64
37
|
action: endpoint,
|
|
65
|
-
models: action.models
|
|
66
|
-
inputSchema: fieldsForAction(action)
|
|
38
|
+
models: action.models
|
|
67
39
|
});
|
|
68
40
|
inputRules[endpoint] = rulesForAction(action);
|
|
69
41
|
}
|
package/dist/src/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,aAAa,EACb,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,UAAU,
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src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KAAK;QACL,MAAM;KACP,CAAC,CAAC;IAEH,iBAAiB,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runapi.ai/flux-kontext-mcp",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Flux Kontext MCP server for RunAPI — create Flux Kontext AI tasks (text to image), poll status, and check pricing across 2 models with one API key.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -27,7 +27,14 @@
|
|
|
27
27
|
"runapi",
|
|
28
28
|
"mcp",
|
|
29
29
|
"model-context-protocol",
|
|
30
|
-
"ai"
|
|
30
|
+
"ai",
|
|
31
|
+
"flux-kontext",
|
|
32
|
+
"flux-kontext-mcp",
|
|
33
|
+
"flux-kontext-ai",
|
|
34
|
+
"flux-kontext-api",
|
|
35
|
+
"image-generation",
|
|
36
|
+
"ai-image",
|
|
37
|
+
"text-to-image"
|
|
31
38
|
],
|
|
32
39
|
"author": "RunAPI",
|
|
33
40
|
"license": "Apache-2.0",
|
|
@@ -44,7 +51,7 @@
|
|
|
44
51
|
},
|
|
45
52
|
"dependencies": {
|
|
46
53
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
47
|
-
"@runapi.ai/mcp-core": "0.1.
|
|
54
|
+
"@runapi.ai/mcp-core": "0.1.2",
|
|
48
55
|
"zod": "^3.25.76"
|
|
49
56
|
},
|
|
50
57
|
"devDependencies": {
|
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/runapi-ai/flux-kontext-mcp",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.3",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@runapi.ai/flux-kontext-mcp",
|
|
14
|
-
"version": "0.1.
|
|
14
|
+
"version": "0.1.3",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|