mcpField
V
Vectreal

Vectreal

Local
vectreal.comMedia & Design26Updated 1d ago

About Vectreal

Vectreal CLI lets terminals and agents work with projects and 3D scenes in a chosen organization, including publishing GLB models and generating website embed snippets. It also exposes documentation, scene, and publishing tools to agents through an MCP server over stdio.

Key features

  1. 01Sign in through a browser and store sessions
  2. 02Link or create projects
  3. 03Upload local GLBs as scenes
  4. 04Read and change scene settings
  5. 05Publish or take scenes offline
  6. 06Generate embed snippets and preview URLs

Use cases

  1. 01Link a Vectreal project to a directory
  2. 02Inspect GLB meshes, materials, and animations
  3. 03Adjust scene environment and presentation
  4. 04Publish a 3D scene and retrieve embed code

MCP support

`vectreal mcp` exposes documentation, project, and scene tools to agents over stdio. Run `vectreal login` first; `vectreal mcp install` registers the server in the current directory's `.mcp.json`.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"vectreal-vectreal": {
"command": "npx",
"args": [
"-y",
"@vctrl/cli"
]
}
}
}
Run commandnpx -y @vctrl/cli

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@vctrl/cli3.1.0

Tools

13

Saved tool list · updated 2d ago

ParameterTypeRequiredDescription
limitintegerNo
querystringYesWhat to look for.

Details

From the project README

@vctrl/cli

The Vectreal command line: sign in once, then let a terminal or an agent act for you in the organization you chose.

Private for now. Until it ships to npm, run it from the workspace root with pnpm's -s:

pnpm -s vectreal login

Without -s, pnpm prints its own banner to stdout before the CLI does, which breaks anything reading --json output.

Commands

CommandWhat it does
vectreal login [--origin <url>] [--no-browser]Signs in through the browser and keeps the session in the OS keychain. Remembers the origin for later commands.
vectreal whoami [--json]Shows the user, organization, role and scopes the session acts as.
vectreal init [--project <id> | --create <name>]Links the current directory to a project by writing .vectreal/project.json.
vectreal logoutEnds the session on the server and forgets it here.
vectreal mcpServes the Vectreal tools to an agent over stdio (MCP) until the agent closes the stream.
vectreal mcp install [--origin <url>]Registers that server in the current directory's .mcp.json, launched the way this CLI was.

The origin is --origin, then VECTREAL_ORIGIN, then the last one signed in to, then https://vectreal.com. Plain http is allowed on localhost only.

The MCP server

vectreal mcp gives an agent these tools:

ToolDoes
search_docs, read_docSearch and read the Vectreal docs. No sign-in needed.
whoami, list_projects, create_project, list_scenesWho the session is, and the organization's projects and scenes.
create_scene_from_fileUploads a local GLB as a draft scene, as it is.
describe_modelA local GLB's size, meshes, materials and animation clips, and where the viewer places it, without rendering it.
get_scene_settings, update_scene_settingsRead every settings section; change environment, controls, bounds, shadows and presentation.
publish_scene, unpublish_sceneCompress a local GLB as the publisher does (Draco, KTX2) and publish it; take a scene offline.
get_embed_snippetThe snippet and preview URL for a published scene, creating an embed key and allowing domains when asked.

Tools that take projectId default to the project vectreal init linked. The server finds that project in CLAUDE_PROJECT_DIR when the agent sets it, else in the directory it was started from. It signs in with the stored session, so run vectreal login first; a tool called without one says so.

To register it with Claude Code, run this in the project directory:

pnpm -s --dir <path to this repo> vectreal mcp install

The entry it writes names paths on this machine. Keep .mcp.json out of version control until @vctrl/cli is on npm.

Output and exit codes

Results go to stdout, as JSON with --json. Everything else goes to stderr.

CodeMeaning
0Done
1Failed
2Wrong usage
3Not signed in, or the server no longer accepts the session: run vectreal login

Where the session is kept

In the OS keychain (macOS Keychain, Windows Credential Manager, Secret Service on Linux), one entry per origin. Where the keychain cannot be used, as on a headless Linux box with no Secret Service, the session goes to $XDG_CONFIG_HOME/vectreal/credentials.json (default ~/.config/vectreal) instead, and each command that does so says it on stderr. On macOS and Linux that file is readable only by you; on Windows it relies on your profile folder's permissions.

Signing in against a local stack

Register the CLI's OAuth client on the local Supabase stack once, then point the CLI at the dev server:

pnpm nx run vectreal-platform:supabase-register-cli-client
pnpm -s vectreal login --origin http://localhost:4200

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.