rapid-assets-mcp

v0.1.0
@imagination-ai/rapid-assets-mcp Checked 3 days ago Published 1 month ago

Rapid Assets MCP server for Claude Code, Codex and Cursor (browser sign-in, proxies the hosted Rapid Assets MCP).

Rapid Assets in your coding agent. Generate and manage game assets (2D images, sprite sheets, 3D models) in your Rapid Assets account from Claude Code, Codex or Cursor. Cursor, Codex or any other MCP host: run npx -y @imagination-ai/rapid-assets-mcp as a stdio server named rapidassets. The tools are listed straight away. Your first Rapid Assets tool call opens your browser so you can sign in (or run the login command beforehand). If it doesn't open, use the Sign in to Rapid Assets in your browser: link printed to the server's log (stderr).

Summary extracted from the README.

@imagination-ai/rapid-assets-mcp

Rapid Assets in your coding agent. Generate and manage game assets (2D images, sprite sheets, 3D models) in your Rapid Assets account from Claude Code, Codex or Cursor.

Install

Claude Code:

claude mcp add rapidassets -- npx -y @imagination-ai/rapid-assets-mcp

Cursor, Codex or any other MCP host: run npx -y @imagination-ai/rapid-assets-mcp as a stdio server named rapidassets.

Requires Node.js 20.18.1 or later.

The tools are listed straight away. Your first Rapid Assets tool call opens your browser so you can sign in (or run the login command beforehand). If it doesn't open, use the Sign in to Rapid Assets in your browser: <url> link printed to the server's log (stderr). If sign-in times out (5 minutes) or is cancelled, the call returns a SIGN_IN_REQUIRED error with the sign-in link; sign in, then retry.

Commands

  • npx -y @imagination-ai/rapid-assets-mcp login: sign in now, then exit
  • npx -y @imagination-ai/rapid-assets-mcp logout: forget the stored sign-in
  • npx -y @imagination-ai/rapid-assets-mcp doctor: check the connection to Rapid Assets (DNS, TCP, TLS, metadata, stored sign-in)
  • npx -y @imagination-ai/rapid-assets-mcp --help

Saving assets into your repo

The server treats the git repo your editor starts it in (or the current folder outside git) as your game's root.

  • Project link. The first generation call links the repo to a Rapid Assets project named after the folder, and writes .rapidassets.json at the root. You can also call init_project {name?}. If your plan's project limit blocks this, nothing is written and the server's message is returned.

  • save_asset {job_id, path?, format?} saves a finished job's files:

    • images to assets/images/<name>.png
    • 3D models to assets/models/<name>.glb
    • sprite sheets to assets/sprites/<name>.png, with the <name>.json atlas beside it

    Existing files are never overwritten unless you pass an explicit path. On a free plan, a 3D job saves <name>.preview.png instead of the model.

  • save_to works on every generation tool. Pass a folder or a file path inside the repo. The call waits for the job, for up to 10 minutes, and returns the saved paths.

  • upload_local_image {path} uploads a PNG, JPEG or WebP file from the repo, up to 20 MB, and returns a URL you can pass to any tool as an image input.

Paths must stay inside the repo. .., absolute paths and symlinks that point outside the repo are rejected. Downloads follow https only, are capped at 200 MB, and are fetched without your sign-in token.

Configuration

  • RAPIDASSETS_URL: server origin, default https://rapidassets.ai.
  • RAPIDASSETS_TOKEN_STORE=file: skip the OS keychain.
  • RAPIDASSETS_DOH=off: disable the DNS-over-HTTPS fallback (see below).

When Rapid Assets can't be reached

If the server can't be reached, the tools are still listed (from a catalog built into the package), and every call returns a SERVER_UNREACHABLE error saying why (timeout, DNS, refused, TLS or a server error). When tools return SERVER_UNREACHABLE, run npx -y @imagination-ai/rapid-assets-mcp doctor and check your network or VPN; don't retry in a loop. Calls start working again as soon as the server is reachable.

Some networks can't reach the address that the system DNS returns for Rapid Assets, while a browser using secure DNS works. When every system-resolved address fails to connect, the package looks the host up over DNS-over-HTTPS (Cloudflare, then Google) and connects to that address instead, with the usual TLS certificate checks for the Rapid Assets hostname. This only applies to Rapid Assets hosts. Set RAPIDASSETS_DOH=off to turn it off.

Tokens are stored in the OS keychain (service rapidassets-mcp), or in ~/.config/rapidassets/credentials.json (mode 0600) when no keychain is available.