@runapi.ai/luma-mcp 0.1.0 → 0.1.2
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 +130 -21
- package/dist/src/meta.d.ts +1 -1
- package/dist/src/meta.js +1 -1
- package/package.json +15 -4
- package/server.json +4 -4
package/README.md
CHANGED
|
@@ -1,36 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">RunAPI Luma MCP Server</h1>
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>Luma 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
|
-
-
|
|
10
|
-
-
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://www.npmjs.com/package/@runapi.ai/luma-mcp"><img src="https://img.shields.io/npm/v/%40runapi.ai/luma-mcp?style=flat-square&color=blue" alt="npm version"></a>
|
|
13
|
+
<a href="https://github.com/runapi-ai/luma-mcp"><img src="https://img.shields.io/badge/GitHub-runapi--ai%2Fluma-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-1-16a34a?style=flat-square" alt="1 models">
|
|
17
|
+
</p>
|
|
11
18
|
|
|
12
|
-
|
|
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>
|
|
13
27
|
|
|
14
|
-
|
|
15
|
-
it to `~/.config/runapi/config.json`:
|
|
28
|
+
---
|
|
16
29
|
|
|
17
|
-
|
|
18
|
-
mkdir -p ~/.config/runapi
|
|
19
|
-
echo '{"api_key":"YOUR_KEY"}' > ~/.config/runapi/config.json
|
|
20
|
-
```
|
|
30
|
+
## Why This Package?
|
|
21
31
|
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
`@runapi.ai/luma-mcp` is a focused Model Context Protocol server for the **Luma** model line on RunAPI.
|
|
33
|
+
It gives MCP-compatible assistants direct access to 1 endpoint and 1 model variant without loading the full RunAPI catalog.
|
|
24
34
|
|
|
25
|
-
|
|
35
|
+
Use this per-model server when an agent should stay scoped to Luma. Use [`@runapi.ai/mcp`](https://github.com/runapi-ai/mcp) when one assistant should discover every RunAPI model line.
|
|
26
36
|
|
|
27
|
-
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Install
|
|
40
|
+
|
|
41
|
+
Add it to Claude Code:
|
|
28
42
|
|
|
29
43
|
```bash
|
|
30
|
-
npx -y @runapi.ai/luma-mcp
|
|
44
|
+
claude mcp add luma -s user -- npx -y @runapi.ai/luma-mcp
|
|
31
45
|
```
|
|
32
46
|
|
|
33
|
-
|
|
47
|
+
Use project scope when the server should be shared with a repository:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
claude mcp add luma -s project -- npx -y @runapi.ai/luma-mcp
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Codex, Cursor, Windsurf, VS Code, Roo Code, and other MCP hosts can use the same stdio command:
|
|
34
54
|
|
|
35
55
|
```json
|
|
36
56
|
{
|
|
@@ -44,6 +64,95 @@ Add it to an MCP client (see `examples/` for per-client configs):
|
|
|
44
64
|
}
|
|
45
65
|
```
|
|
46
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
|
+
| `modify_video` | Yes | Create a Luma modify video task and optionally wait for a terminal status. Returns the task id, status, output URLs, and pricing snapshot. |
|
|
78
|
+
| `get_task` | Yes | Fetch the current status and latest payload for an existing task. |
|
|
79
|
+
| `check_pricing` | No | Look up the current pricing snapshot for a Luma model and endpoint. |
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Models
|
|
84
|
+
|
|
85
|
+
Luma covers 1 model variant across 1 endpoint. Each tool accepts the models listed for it:
|
|
86
|
+
|
|
87
|
+
| Tool | Models |
|
|
88
|
+
|---|---|
|
|
89
|
+
| `modify_video` | `luma-modify-video` |
|
|
90
|
+
|
|
91
|
+
Model availability can change between releases. Use `check_pricing` or the [Luma model page](https://runapi.ai/models/luma) for the current catalog view.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Agent Prompts
|
|
96
|
+
|
|
97
|
+
Ask your assistant in natural language; it can inspect pricing, create the task, and return the task id plus output URLs.
|
|
98
|
+
|
|
99
|
+
### Create a task
|
|
100
|
+
|
|
101
|
+
```text
|
|
102
|
+
Run a Luma modify video task with RunAPI.
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
The assistant can call `check_pricing`, then `modify_video`, and return the task id, status, and output URLs.
|
|
106
|
+
|
|
107
|
+
### Submit without waiting
|
|
108
|
+
|
|
109
|
+
```text
|
|
110
|
+
Create the task but don't wait for it to finish.
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
The assistant calls the create tool with `wait: false` and returns the task id. Check on it later with `get_task`.
|
|
114
|
+
|
|
115
|
+
### Check pricing before creating
|
|
116
|
+
|
|
117
|
+
```text
|
|
118
|
+
Check current Luma pricing, then create the task if it matches my request.
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
The assistant calls `check_pricing` and can link to the [Luma model page](https://runapi.ai/models/luma) for the canonical catalog entry.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Configuration
|
|
126
|
+
|
|
127
|
+
The server reads the API key in this order:
|
|
128
|
+
|
|
129
|
+
1. `RUNAPI_API_KEY` environment variable
|
|
130
|
+
2. `~/.config/runapi/config.json`
|
|
131
|
+
|
|
132
|
+
Example config file:
|
|
133
|
+
|
|
134
|
+
```json
|
|
135
|
+
{
|
|
136
|
+
"apiKey": "your_runapi_key"
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Do not commit real API keys. Get one at [runapi.ai](https://runapi.ai).
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Links
|
|
145
|
+
|
|
146
|
+
| Resource | URL |
|
|
147
|
+
|---|---|
|
|
148
|
+
| Luma model page | [https://runapi.ai/models/luma](https://runapi.ai/models/luma) |
|
|
149
|
+
| npm package | [@runapi.ai/luma-mcp](https://www.npmjs.com/package/@runapi.ai/luma-mcp) |
|
|
150
|
+
| GitHub repository | [runapi-ai/luma-mcp](https://github.com/runapi-ai/luma-mcp) |
|
|
151
|
+
| RunAPI MCP overview | [runapi.ai/mcp](https://runapi.ai/mcp) |
|
|
152
|
+
| RunAPI docs | [runapi.ai/docs](https://runapi.ai/docs) |
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
47
156
|
## License
|
|
48
157
|
|
|
49
|
-
Apache
|
|
158
|
+
Licensed under the [Apache License, Version 2.0](LICENSE).
|
package/dist/src/meta.d.ts
CHANGED
package/dist/src/meta.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runapi.ai/luma-mcp",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "RunAPI MCP server for
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "RunAPI Luma MCP server for video generation: create tasks, poll results, and check pricing across 1 model 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,24 @@
|
|
|
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
|
+
"luma",
|
|
37
|
+
"luma-mcp",
|
|
38
|
+
"luma-api",
|
|
39
|
+
"video-generation",
|
|
40
|
+
"ai-video",
|
|
41
|
+
"modify-video"
|
|
31
42
|
],
|
|
32
43
|
"author": "RunAPI",
|
|
33
44
|
"license": "Apache-2.0",
|
|
34
|
-
"homepage": "https://runapi.ai",
|
|
45
|
+
"homepage": "https://runapi.ai/models/luma",
|
|
35
46
|
"repository": {
|
|
36
47
|
"type": "git",
|
|
37
48
|
"url": "git+https://github.com/runapi-ai/luma-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/luma-mcp",
|
|
4
|
-
"description": "RunAPI MCP server for Luma: create tasks, poll status,
|
|
4
|
+
"description": "RunAPI MCP server for Luma: create tasks, poll status, check pricing.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/runapi-ai/luma-mcp",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.2",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@runapi.ai/luma-mcp",
|
|
14
|
-
"version": "0.1.
|
|
14
|
+
"version": "0.1.2",
|
|
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,
|