Verse
# @ctruhtech/verse-mcp
[](https://mcprush.com/to/dev-vinayagastya-verse-mcp?ref=badge)
An [MCP](https://modelcontextprotocol.io) server for [Verse Engine](https://verse.ctruh.com), which publishes 3D scenes, walkthroughs and worlds, from a single product to a whole city, as links that open in any browser on everyday devices. Connect it to Claude, ChatGPT, Cursor, VS Code or your own agent, and your assistant can publish a file or a public URL and hand you back a Verse link, embed code, a private share link or a guided camera tour.
```
"Put https://example.com/villa.glb on Verse and give me a link I can share."
"Make that scene private and give me a link I can send to the client."
"I have a big file on my phone. Give me a Verse upload link for it."
"Give me the embed code for it, 1:1."
```
MIT licensed. Documentation: <https://verse.ctruh.com/docs/#/mcp>. Install page with one-click buttons: <https://verse.ctruh.com/mcp>.
## Connect in one step: sign in with Verse
Add `https://verse.ctruh.com/mcp` to your assistant and sign in with your Verse account in the browser. No API key to copy, nothing to install.
- **Claude** (web and desktop): Settings → Connectors → Add custom connector → URL `https://verse.ctruh.com/mcp` → Add, then **Connect**.
- **Claude Code:** `claude mcp add --transport http --scope user verse https://verse.ctruh.com/mcp`, then run `/mcp` and choose **Authenticate**.
- **ChatGPT:** Settings → Connectors → Create (developer mode) → URL `https://verse.ctruh.com/mcp`, authentication **OAuth** → Create, then sign in.
- **Cursor:** [Add to Cursor](https://verse.ctruh.com/mcp), or `{ "mcpServers": { "verse": { "url": "https://verse.ctruh.com/mcp" } } }` in `~/.cursor/mcp.json`, then **Connect** in Settings → MCP.
- **VS Code:** [Install in VS Code](https://verse.ctruh.com/mcp), or `{ "servers": { "verse": { "type": "http", "url": "https://verse.ctruh.com/mcp" } } }` in `.vscode/mcp.json`, then **Start**.
The first time, a Verse page asks you to sign in (email or WhatsApp code) and press **Allow**. The app gets a key named "MCP · <app name>" on your [Account page](https://verse.ctruh.com/account); it lasts 30 days, renews while in use, and you can revoke it there.
Prefer to run it locally, with an API key? See [Setup (stdio)](#setup-stdio) below: `npx -y @ctruhtech/verse-mcp`, Node 20 or newer.
## Tools
| Tool | What it does |
| --- | --- |
| `upload_scene` | Local path or public URL, to a Verse link. Resumable for big files, progress notifications, waits for the build. |
| `get_scene_status` | Build state, progress and ETA; the link once done. |
| `list_scenes` | Scenes owned by your account. |
| `create_share_link` | Set visibility (public / unlisted / private); private scenes get a revocable share-token link. Optional autoplay of the camera path. |
| `revoke_share_link` | Revoke a private share token (or list the active ones). |
| `get_embed_code` | iframe, `<verse-viewer>` element and plain URL. |
| `list_camera_paths`, `set_camera_path`, `reset_auto_camera_path`, `delete_camera_path` | Guided tours: read, author, re-plan the automatic fly-through, or delete one. |
| `create_upload_link` | For a file the user has but cannot hand over (a chat attachment, a file on a phone): a 30-minute, single-use link where they drop it; it lands in their account. |
| `get_upload_link_status` | What happened to an upload link: waiting, uploading, building, done (scene and link), failed or expired. |
Every tool is a thin wrapper over the public REST API ([API reference](https://verse.ctruh.com/docs/#/api)) through [`@ctruhtech/verse-sdk`](https://www.npmjs.com/package/@ctruhtech/verse-sdk). There is no world-generation tool, because the API has no such endpoint. Share links do not expire on their own; the API has no expiry, so revoke a private link to end access. Errors come back as one plain sentence.
## Credentials
Set `VERSE_API_KEY` to one of:
- a **workspace API key** `vk_...` from your Account page (**API keys** card). It acts as a member of that workspace: uploads, scenes, visibility, private links and camera paths;
- your **account token** (64 hex, from Studio). Same powers, tied to you.
Both are sent as `Authorization: Bearer`. Uploading needs a free Verse account; opening a published link never does. `VERSE_BASE_URL` points at another origin (default `https://verse.ctruh.com`). The key is only ever sent to that origin as a header, and is never logged or returned in tool output. `VERSE_UPLOAD_KEY` (optional) is the `X-API-Key` of a self-hosted server running in keyed mode.
## Setup (stdio)
**Claude Desktop**: `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json`:
```json
{
"mcpServers": {
"verse": {
"command": "npx",
"args": ["-y", "@ctruhtech/verse-mcp"],
"env": { "VERSE_API_KEY": "paste-your-key" }
}
}
}
```
**Claude Code**:
```sh
claude mcp add verse --env VERSE_API_KEY=paste-your-key -- npx -y @ctruhtech/verse-mcp
```
**Cursor**: `~/.cursor/mcp.json` (or `.cursor/mcp.json` in a project), same JSON as Claude Desktop.
**VS Code**: `.vscode/mcp.json`:
```json
{
"inputs": [{ "type": "promptString", "id": "verse-key", "description": "Verse API key", "password": true }],
"servers": {
"verse": {
"command": "npx",
"args": ["-y", "@ctruhtech/verse-mcp"],
"env": { "VERSE_API_KEY": "${input:verse-key}" }
}
}
}
```
## Remote (Streamable HTTP)
Sign-in setup is at the top of this page. API keys keep working: send `Authorization: Bearer <key>` (a key from the Account page, or your account token) and no sign-in happens.
For clients that only take a fixed header (hosted agents, scripts):
```json
{
"mcpServers": {
"verse": {
"url": "https://verse.ctruh.com/mcp",
"headers": { "Authorization": "Bearer paste-your-key" }
}
}
}
```
Claude Code with a key instead of sign-in: `claude mcp add --transport http verse https://verse.ctruh.com/mcp --header "Authorization: Bearer $VERSE_API_KEY"`. Nothing is stored between requests, and local file paths are disabled on the remote server (pass public URLs). A request without a key or sign-in is answered `401` with `WWW-Authenticate: Bearer realm="verse-mcp", resource_metadata="…"` and a JSON-RPC error that says what to send.
To host it yourself:
```sh
VERSE_BASE_URL=https://verse.ctruh.com npx @ctruhtech/verse-mcp --http --port 8787 # http://127.0.0.1:8787/mcp
```
Put TLS in front of it. To mount it inside an existing Node server instead:
```js
import { createHttpHandler } from "@ctruhtech/verse-mcp";
const mcp = createHttpHandler({ baseUrl: "https://verse.ctruh.com" });
// in your request listener: if (url.pathname === "/mcp") return mcp(req, res);
```
## Command line
```
verse-mcp stdio server
verse-mcp --http [--port 8787] [--host 127.0.0.1] [--allow-anonymous]
verse-mcp --version
```
## Develop
```sh
npm install
npm run typecheck
npm test # scripted Verse origin, both transports, driven by the official MCP client
```
Issues and source: <https://github.com/dev-vinayagastya/verse-mcp>. Licence: MIT, see [LICENSE](LICENSE).
TDQS
Scored across 12 tools
Each tool has a distinct resource and action, and the descriptions explicitly disambiguate the closest pairs: upload_scene vs create_upload_link, get_scene_status vs get_upload_link_status, create_share_link vs get_embed_code, and set_camera_path vs reset_auto_camera_path. The cross-references make it hard for an agent to pick the wrong tool.
All tools follow a consistent snake_case verb_noun pattern: upload_scene, create_share_link, get_scene_status, list_camera_paths, delete_camera_path, and so on. The only variation is the natural use of set/reset/revoke verbs for their specific operations, which is still predictable.
At 12 tools, the surface is well scoped: ingestion, status, sharing, listing, embedding, and four camera-tour operations. Each tool covers a distinct part of the workflow without obvious redundancy.
The core lifecycle is covered: upload, poll status, list, share/revoke, embed, and full CRUD for camera tours. The main gap is scene-level lifecycle management—there is no delete_scene or update-scene-metadata tool, so agents cannot remove or rename scenes through this surface.