longtake

v1.0.2
io.github.svatrous/longtake Checked 4 days ago Published 1 month ago

Drive Longtake Studio from an agent: AI video takes on your own API key, characters, drafts, costs

Values you need

VariableWhat it is
STUDIO_URLrequired Studio address — https://longtake.studio for the cloud studio
STUDIO_TOKENrequired secret Personal agent token from the studio: account menu → API keys → Agent access

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add longtake -e 'STUDIO_TOKEN=<STUDIO_TOKEN>' -e 'STUDIO_URL=<STUDIO_URL>' -- npx -y longtake-mcp@1.0.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "longtake": {
      "args": [
        "-y",
        "longtake-mcp@1.0.2"
      ],
      "command": "npx",
      "env": {
        "STUDIO_TOKEN": "<STUDIO_TOKEN>",
        "STUDIO_URL": "<STUDIO_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "longtake": {
      "args": [
        "-y",
        "longtake-mcp@1.0.2"
      ],
      "command": "npx",
      "env": {
        "STUDIO_TOKEN": "<STUDIO_TOKEN>",
        "STUDIO_URL": "<STUDIO_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "STUDIO_TOKEN",
      "id": "studio-token",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "STUDIO_URL",
      "id": "studio-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "longtake": {
      "args": [
        "-y",
        "longtake-mcp@1.0.2"
      ],
      "command": "npx",
      "env": {
        "STUDIO_TOKEN": "${input:studio-token}",
        "STUDIO_URL": "${input:studio-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.longtake]
command = "npx"
args = ["-y", "longtake-mcp@1.0.2"]
env = { "STUDIO_TOKEN" = "<STUDIO_TOKEN>", "STUDIO_URL" = "<STUDIO_URL>" }

For AI agents

  1. Ask the user for: STUDIO_URL, STUDIO_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: studio_overview, create_project, create_folder, create_scene, upload_asset, generate_mocap, create_character, generate_video, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json