@runapi.ai/kling-mcp 0.1.3 → 0.1.5
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 +48 -31
- package/package.json +9 -5
- package/server.json +4 -4
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<h1 align="center">Kling MCP Server</h1>
|
|
1
|
+
<h1 align="center">RunAPI Kling MCP Server</h1>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<strong>
|
|
4
|
+
<strong>Kling API access for AI agents: create video generation tasks, poll results, and check pricing through one focused MCP server.</strong>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
@@ -10,32 +10,33 @@
|
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
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>
|
|
13
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>
|
|
14
15
|
<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-11-
|
|
16
|
+
<img src="https://img.shields.io/badge/Models-11-16a34a?style=flat-square" alt="11 models">
|
|
16
17
|
</p>
|
|
17
18
|
|
|
18
19
|
<p align="center">
|
|
19
|
-
<a href="#
|
|
20
|
+
<a href="#install">Install</a> |
|
|
20
21
|
<a href="#tools">Tools</a> |
|
|
21
22
|
<a href="#models">Models</a> |
|
|
22
|
-
<a href="#
|
|
23
|
-
<a href="#configuration">Configuration</a>
|
|
23
|
+
<a href="#agent-prompts">Agent Prompts</a> |
|
|
24
|
+
<a href="#configuration">Configuration</a> |
|
|
25
|
+
<a href="#links">Links</a>
|
|
24
26
|
</p>
|
|
25
27
|
|
|
26
28
|
---
|
|
27
29
|
|
|
28
|
-
##
|
|
30
|
+
## Why This Package?
|
|
29
31
|
|
|
30
|
-
`@runapi.ai/kling-mcp` is a focused
|
|
31
|
-
It
|
|
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.
|
|
32
34
|
|
|
33
|
-
|
|
34
|
-
This package is a pure client; it does not run a local generation backend.
|
|
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.
|
|
35
36
|
|
|
36
37
|
---
|
|
37
38
|
|
|
38
|
-
##
|
|
39
|
+
## Install
|
|
39
40
|
|
|
40
41
|
Add it to Claude Code:
|
|
41
42
|
|
|
@@ -43,10 +44,13 @@ Add it to Claude Code:
|
|
|
43
44
|
claude mcp add kling -s user -- npx -y @runapi.ai/kling-mcp
|
|
44
45
|
```
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
- `-s project`: team-shared, written to `.mcp.json` in the current repo so it can be committed.
|
|
47
|
+
Use project scope when the server should be shared with a repository:
|
|
48
48
|
|
|
49
|
-
|
|
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:
|
|
50
54
|
|
|
51
55
|
```json
|
|
52
56
|
{
|
|
@@ -60,8 +64,9 @@ For other hosts, or for manual configuration, use this JSON:
|
|
|
60
64
|
}
|
|
61
65
|
```
|
|
62
66
|
|
|
63
|
-
Create an API key at [runapi.ai](https://runapi.ai) and expose it as `RUNAPI_API_KEY`.
|
|
64
|
-
|
|
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.
|
|
65
70
|
|
|
66
71
|
---
|
|
67
72
|
|
|
@@ -69,18 +74,18 @@ See `examples/` for ready-made config files for Claude, Cursor, Windsurf, VS Cod
|
|
|
69
74
|
|
|
70
75
|
| Tool | Auth | Purpose |
|
|
71
76
|
|---|---|---|
|
|
72
|
-
| `ai_avatar` | Yes | Create a Kling
|
|
73
|
-
| `image_to_video` | Yes | Create a Kling
|
|
74
|
-
| `motion_control` | Yes | Create a Kling
|
|
75
|
-
| `text_to_video` | Yes | Create a Kling
|
|
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. |
|
|
76
81
|
| `get_task` | Yes | Fetch the current status and latest payload for an existing task. |
|
|
77
|
-
| `check_pricing` | No | Look up the current
|
|
82
|
+
| `check_pricing` | No | Look up the current pricing snapshot for a Kling model and endpoint. |
|
|
78
83
|
|
|
79
84
|
---
|
|
80
85
|
|
|
81
86
|
## Models
|
|
82
87
|
|
|
83
|
-
Kling covers 11
|
|
88
|
+
Kling covers 11 model variants across 4 endpoints. Each tool accepts the models listed for it:
|
|
84
89
|
|
|
85
90
|
| Tool | Models |
|
|
86
91
|
|---|---|
|
|
@@ -89,13 +94,13 @@ Kling covers 11 models across 4 endpoints. Each tool accepts the models listed f
|
|
|
89
94
|
| `motion_control` | `kling-3.0` |
|
|
90
95
|
| `text_to_video` | `kling-3.0`, `kling-v2.1-master-text-to-video`, `kling-v2.5-turbo-text-to-video-pro` |
|
|
91
96
|
|
|
92
|
-
|
|
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.
|
|
93
98
|
|
|
94
99
|
---
|
|
95
100
|
|
|
96
|
-
##
|
|
101
|
+
## Agent Prompts
|
|
97
102
|
|
|
98
|
-
Ask your assistant in natural language; it
|
|
103
|
+
Ask your assistant in natural language; it can inspect pricing, create the task, and return the task id plus output URLs.
|
|
99
104
|
|
|
100
105
|
### Create a task
|
|
101
106
|
|
|
@@ -103,7 +108,7 @@ Ask your assistant in natural language; it uses the tools to confirm pricing and
|
|
|
103
108
|
Run a Kling ai avatar task with RunAPI.
|
|
104
109
|
```
|
|
105
110
|
|
|
106
|
-
The assistant
|
|
111
|
+
The assistant can call `check_pricing`, then `ai_avatar`, and return the task id, status, and output URLs.
|
|
107
112
|
|
|
108
113
|
### Submit without waiting
|
|
109
114
|
|
|
@@ -113,13 +118,13 @@ Create the task but don't wait for it to finish.
|
|
|
113
118
|
|
|
114
119
|
The assistant calls the create tool with `wait: false` and returns the task id. Check on it later with `get_task`.
|
|
115
120
|
|
|
116
|
-
### Check pricing
|
|
121
|
+
### Check pricing before creating
|
|
117
122
|
|
|
118
123
|
```text
|
|
119
|
-
|
|
124
|
+
Check current Kling pricing, then create the task if it matches my request.
|
|
120
125
|
```
|
|
121
126
|
|
|
122
|
-
The assistant calls `check_pricing` and
|
|
127
|
+
The assistant calls `check_pricing` and can link to the [Kling model page](https://runapi.ai/models/kling) for the canonical catalog entry.
|
|
123
128
|
|
|
124
129
|
---
|
|
125
130
|
|
|
@@ -138,7 +143,19 @@ Example config file:
|
|
|
138
143
|
}
|
|
139
144
|
```
|
|
140
145
|
|
|
141
|
-
Do not commit real API keys. Get one at [runapi.ai](https://runapi.ai)
|
|
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) |
|
|
142
159
|
|
|
143
160
|
---
|
|
144
161
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runapi.ai/kling-mcp",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Kling MCP server for
|
|
3
|
+
"version": "0.1.5",
|
|
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,12 +25,16 @@
|
|
|
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",
|
|
31
36
|
"kling",
|
|
32
37
|
"kling-mcp",
|
|
33
|
-
"kling-ai",
|
|
34
38
|
"kling-api",
|
|
35
39
|
"video-generation",
|
|
36
40
|
"ai-video",
|
|
@@ -41,7 +45,7 @@
|
|
|
41
45
|
],
|
|
42
46
|
"author": "RunAPI",
|
|
43
47
|
"license": "Apache-2.0",
|
|
44
|
-
"homepage": "https://runapi.ai",
|
|
48
|
+
"homepage": "https://runapi.ai/models/kling",
|
|
45
49
|
"repository": {
|
|
46
50
|
"type": "git",
|
|
47
51
|
"url": "git+https://github.com/runapi-ai/kling-mcp.git"
|
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.5",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@runapi.ai/kling-mcp",
|
|
14
|
-
"version": "0.1.
|
|
14
|
+
"version": "0.1.5",
|
|
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,
|