@runapi.ai/kling-mcp 0.1.2 → 0.1.4
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 +135 -26
- 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 +19 -5
- package/server.json +4 -4
package/README.md
CHANGED
|
@@ -1,42 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">RunAPI Kling MCP Server</h1>
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>Kling API access for AI agents: create video generation tasks, poll results, and check pricing through one focused MCP server.</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
|
-
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://www.npmjs.com/package/@runapi.ai/kling-mcp"><img src="https://img.shields.io/npm/v/%40runapi.ai/kling-mcp?style=flat-square&color=blue" alt="npm version"></a>
|
|
13
|
+
<a href="https://github.com/runapi-ai/kling-mcp"><img src="https://img.shields.io/badge/GitHub-runapi--ai%2Fkling-mcp-24292f?style=flat-square" alt="GitHub repository"></a>
|
|
14
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square" alt="Apache-2.0 license"></a>
|
|
15
|
+
<img src="https://img.shields.io/badge/Type-MCP_Server-blue?style=flat-square" alt="MCP Server">
|
|
16
|
+
<img src="https://img.shields.io/badge/Models-11-16a34a?style=flat-square" alt="11 models">
|
|
17
|
+
</p>
|
|
10
18
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
|
|
19
|
+
<p align="center">
|
|
20
|
+
<a href="#install">Install</a> |
|
|
21
|
+
<a href="#tools">Tools</a> |
|
|
22
|
+
<a href="#models">Models</a> |
|
|
23
|
+
<a href="#agent-prompts">Agent Prompts</a> |
|
|
24
|
+
<a href="#configuration">Configuration</a> |
|
|
25
|
+
<a href="#links">Links</a>
|
|
26
|
+
</p>
|
|
17
27
|
|
|
18
|
-
|
|
28
|
+
---
|
|
19
29
|
|
|
20
|
-
|
|
21
|
-
it to `~/.config/runapi/config.json`:
|
|
30
|
+
## Why This Package?
|
|
22
31
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
echo '{"api_key":"YOUR_KEY"}' > ~/.config/runapi/config.json
|
|
26
|
-
```
|
|
32
|
+
`@runapi.ai/kling-mcp` is a focused Model Context Protocol server for the **Kling** model line on RunAPI.
|
|
33
|
+
It gives MCP-compatible assistants direct access to 4 endpoints and 11 model variants without loading the full RunAPI catalog.
|
|
27
34
|
|
|
28
|
-
|
|
29
|
-
https://runapi.ai/pricing.
|
|
35
|
+
Use this per-model server when an agent should stay scoped to Kling. Use [`@runapi.ai/mcp`](https://github.com/runapi-ai/mcp) when one assistant should discover every RunAPI model line.
|
|
30
36
|
|
|
31
|
-
|
|
37
|
+
---
|
|
32
38
|
|
|
33
|
-
|
|
39
|
+
## Install
|
|
40
|
+
|
|
41
|
+
Add it to Claude Code:
|
|
34
42
|
|
|
35
43
|
```bash
|
|
36
|
-
npx -y @runapi.ai/kling-mcp
|
|
44
|
+
claude mcp add kling -s user -- npx -y @runapi.ai/kling-mcp
|
|
37
45
|
```
|
|
38
46
|
|
|
39
|
-
|
|
47
|
+
Use project scope when the server should be shared with a repository:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
claude mcp add kling -s project -- npx -y @runapi.ai/kling-mcp
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Codex, Cursor, Windsurf, VS Code, Roo Code, and other MCP hosts can use the same stdio command:
|
|
40
54
|
|
|
41
55
|
```json
|
|
42
56
|
{
|
|
@@ -50,6 +64,101 @@ Add it to an MCP client (see `examples/` for per-client configs):
|
|
|
50
64
|
}
|
|
51
65
|
```
|
|
52
66
|
|
|
67
|
+
Create an API key at [runapi.ai](https://runapi.ai) and expose it as `RUNAPI_API_KEY`. `check_pricing` can run without a key; task creation and status polling require one.
|
|
68
|
+
|
|
69
|
+
Ready-made examples are in [`examples/`](examples/) for Claude, Cursor, Windsurf, VS Code, and Roo Code.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Tools
|
|
74
|
+
|
|
75
|
+
| Tool | Auth | Purpose |
|
|
76
|
+
|---|---|---|
|
|
77
|
+
| `ai_avatar` | Yes | Create a Kling ai avatar task and optionally wait for a terminal status. Returns the task id, status, output URLs, and pricing snapshot. |
|
|
78
|
+
| `image_to_video` | Yes | Create a Kling image to video task and optionally wait for a terminal status. Returns the task id, status, output URLs, and pricing snapshot. |
|
|
79
|
+
| `motion_control` | Yes | Create a Kling motion control task and optionally wait for a terminal status. Returns the task id, status, output URLs, and pricing snapshot. |
|
|
80
|
+
| `text_to_video` | Yes | Create a Kling text to video task and optionally wait for a terminal status. Returns the task id, status, output URLs, and pricing snapshot. |
|
|
81
|
+
| `get_task` | Yes | Fetch the current status and latest payload for an existing task. |
|
|
82
|
+
| `check_pricing` | No | Look up the current pricing snapshot for a Kling model and endpoint. |
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Models
|
|
87
|
+
|
|
88
|
+
Kling covers 11 model variants across 4 endpoints. Each tool accepts the models listed for it:
|
|
89
|
+
|
|
90
|
+
| Tool | Models |
|
|
91
|
+
|---|---|
|
|
92
|
+
| `ai_avatar` | `kling-ai-avatar-pro`, `kling-ai-avatar-standard`, `kling-ai-avatar-v1-pro`, `kling-v1-avatar-standard` |
|
|
93
|
+
| `image_to_video` | `kling-v2.1-master-image-to-video`, `kling-v2.1-pro`, `kling-v2.1-standard`, `kling-v2.5-turbo-image-to-video-pro` |
|
|
94
|
+
| `motion_control` | `kling-3.0` |
|
|
95
|
+
| `text_to_video` | `kling-3.0`, `kling-v2.1-master-text-to-video`, `kling-v2.5-turbo-text-to-video-pro` |
|
|
96
|
+
|
|
97
|
+
Model availability can change between releases. Use `check_pricing` or the [Kling model page](https://runapi.ai/models/kling) for the current catalog view.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Agent Prompts
|
|
102
|
+
|
|
103
|
+
Ask your assistant in natural language; it can inspect pricing, create the task, and return the task id plus output URLs.
|
|
104
|
+
|
|
105
|
+
### Create a task
|
|
106
|
+
|
|
107
|
+
```text
|
|
108
|
+
Run a Kling ai avatar task with RunAPI.
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
The assistant can call `check_pricing`, then `ai_avatar`, and return the task id, status, and output URLs.
|
|
112
|
+
|
|
113
|
+
### Submit without waiting
|
|
114
|
+
|
|
115
|
+
```text
|
|
116
|
+
Create the task but don't wait for it to finish.
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The assistant calls the create tool with `wait: false` and returns the task id. Check on it later with `get_task`.
|
|
120
|
+
|
|
121
|
+
### Check pricing before creating
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
Check current Kling pricing, then create the task if it matches my request.
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
The assistant calls `check_pricing` and can link to the [Kling model page](https://runapi.ai/models/kling) for the canonical catalog entry.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Configuration
|
|
132
|
+
|
|
133
|
+
The server reads the API key in this order:
|
|
134
|
+
|
|
135
|
+
1. `RUNAPI_API_KEY` environment variable
|
|
136
|
+
2. `~/.config/runapi/config.json`
|
|
137
|
+
|
|
138
|
+
Example config file:
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"apiKey": "your_runapi_key"
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Do not commit real API keys. Get one at [runapi.ai](https://runapi.ai).
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Links
|
|
151
|
+
|
|
152
|
+
| Resource | URL |
|
|
153
|
+
|---|---|
|
|
154
|
+
| Kling model page | [https://runapi.ai/models/kling](https://runapi.ai/models/kling) |
|
|
155
|
+
| npm package | [@runapi.ai/kling-mcp](https://www.npmjs.com/package/@runapi.ai/kling-mcp) |
|
|
156
|
+
| GitHub repository | [runapi-ai/kling-mcp](https://github.com/runapi-ai/kling-mcp) |
|
|
157
|
+
| RunAPI MCP overview | [runapi.ai/mcp](https://runapi.ai/mcp) |
|
|
158
|
+
| RunAPI docs | [runapi.ai/docs](https://runapi.ai/docs) |
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
53
162
|
## License
|
|
54
163
|
|
|
55
|
-
Apache
|
|
164
|
+
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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;QACV,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/kling-mcp",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "RunAPI MCP server for
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "RunAPI Kling MCP server for video generation: create tasks, poll results, and check pricing across 11 model variants from Claude Code, Codex, Cursor, and VS Code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -25,13 +25,27 @@
|
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"runapi",
|
|
28
|
+
"runapi-ai",
|
|
28
29
|
"mcp",
|
|
30
|
+
"mcp-server",
|
|
29
31
|
"model-context-protocol",
|
|
30
|
-
"ai"
|
|
32
|
+
"ai-agents",
|
|
33
|
+
"claude-code",
|
|
34
|
+
"cursor",
|
|
35
|
+
"vscode",
|
|
36
|
+
"kling",
|
|
37
|
+
"kling-mcp",
|
|
38
|
+
"kling-api",
|
|
39
|
+
"video-generation",
|
|
40
|
+
"ai-video",
|
|
41
|
+
"ai-avatar",
|
|
42
|
+
"image-to-video",
|
|
43
|
+
"motion-control",
|
|
44
|
+
"text-to-video"
|
|
31
45
|
],
|
|
32
46
|
"author": "RunAPI",
|
|
33
47
|
"license": "Apache-2.0",
|
|
34
|
-
"homepage": "https://runapi.ai",
|
|
48
|
+
"homepage": "https://runapi.ai/models/kling",
|
|
35
49
|
"repository": {
|
|
36
50
|
"type": "git",
|
|
37
51
|
"url": "git+https://github.com/runapi-ai/kling-mcp.git"
|
|
@@ -44,7 +58,7 @@
|
|
|
44
58
|
},
|
|
45
59
|
"dependencies": {
|
|
46
60
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
47
|
-
"@runapi.ai/mcp-core": "0.1.
|
|
61
|
+
"@runapi.ai/mcp-core": "0.1.2",
|
|
48
62
|
"zod": "^3.25.76"
|
|
49
63
|
},
|
|
50
64
|
"devDependencies": {
|
package/server.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.runapi-builder/kling-mcp",
|
|
4
|
-
"description": "RunAPI MCP server for Kling: create tasks, poll status,
|
|
4
|
+
"description": "RunAPI MCP server for Kling: create tasks, poll status, check pricing.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/runapi-ai/kling-mcp",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.4",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@runapi.ai/kling-mcp",
|
|
14
|
-
"version": "0.1.
|
|
14
|
+
"version": "0.1.4",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
|
18
18
|
"environmentVariables": [
|
|
19
19
|
{
|
|
20
|
-
"description": "RunAPI API key.
|
|
20
|
+
"description": "RunAPI API key. Create one at https://runapi.ai",
|
|
21
21
|
"isRequired": true,
|
|
22
22
|
"format": "string",
|
|
23
23
|
"isSecret": true,
|