worldlabs-mcp AGENTS.md

worldlabs-mcp AGENTS.md is an instructions file for Codex, OpenCode from sandraschi/worldlabs-mcp. It costs 874 tokens per session, scanned A, original, MIT.

An instruction guide for World Labs Marble, an API for generating 3D worlds, and its Spark 2.0 viewer for exploring them. It defines project entry points, response formats, transports, and testing commands.

In plain words
What is it for?
Use it when developing, testing, or maintaining the worldlabs-mcp server, including its tool interface and local setup.
Why use it?
It gives an agent the project-specific rules needed to work consistently with the 3D-world service and its codebase.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/sandraschi/worldlabs-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/sandraschi/worldlabs-mcp

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for worldlabs-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sandraschi/worldlabs-mcp/agents-md.svg)](https://agentmods.dev/instructions/sandraschi/worldlabs-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sandraschi/worldlabs-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/sandraschi/worldlabs-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 874 This file is loaded in full into every session.
When invoked 874 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00874 $0.00874
Opus 5 $0.00437 $0.00437
Sonnet 5 $0.00175 $0.00175
Haiku 4.5 $0.00087 $0.00087

Measured 2d ago against content hash a208ae4c13ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

worldlabs-mcp AGENTS.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

just health # curl /health on :10865
AGENTS.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

worldlabs-mcp — Agent Guide

Overview

MCP server wrapping the World Labs Marble API for 3D world generation (text/image/video-to-world via Marble 1.1) and the Spark 2.0 spatial viewer. 20 MCP tools + FastAPI bridge (:10865) + webapp (:10864) + Tauri NSIS shell.

Entry Points

  • uv run worldlabs-mcpworldlabs_mcp.server:main (stdio, Claude Desktop)
  • MCP_TRANSPORT=http uv run worldlabs-mcp → HTTP on :10865
  • uv run uvicorn worldlabs_mcp.server:app --host 127.0.0.1 --port 10865 → direct ASGI
  • .\start.ps1 / just serve → full stack via FleetStartMode.ps1 (ports 10864/10865)

Quick Ref

uv run pytest tests/ -q          # 49 passed 8 skipped
uv run ruff check src/ --fix && uv run ruff format src/
uv run pyright src/              # 0 errors (basic mode)
just certify                     # five-gate: ruff + pyright + pytest + tsc + biome
just health                      # curl /health on :10865
just probe-llm                   # local LLM discovery
just pack                        # mcpb pack -> dist/worldlabs-mcp.mcpb

Ports

Port Service Config
10864 Frontend Vite (web_sota) fleet-start.config.ps1 FrontendPort
10865 Backend FastAPI + MCP HTTP fleet-start.config.ps1 BackendPort

Registered in mcp-central-docs/operations/WEBAPP_PORTS.md. Never use 3000/5000/5173/8000/8080.

Standards

  • FastMCP 3.4.4 >=3.4.4,<4 portmanteau pattern (tools use operation enum where >15 related)
  • Responses: {success, message, data} dialogic, logger.exception() in error paths, _error_response() helper
  • Dual transport: stdio (Claude Desktop) + HTTP (MCP_TRANSPORT=http)
  • Prefab UI: @mcp.tool(app=True) on show_worlds_card/show_world_card
  • Annotations: readOnlyHint/destructiveHint on 9+ tools
  • Resources: world://{world_id}, gallery://{tag}; Prompts: world-gen, spark-viewer
  • Docs: docs/CONFIGURATION.md, DEVELOPMENT.md, TOOLS.md, TROUBLESHOOTING.md, ONBOARDING.md
  • See mcp-central-docs fleet standards

Read the full file on GitHub · 59 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +31 lines · +630 tokens per session a208ae4c13ff
  2. 6d ago First seen · 28 lines · 244 tokens per session scan A b693bfcb2078

Subscribe to this mod's changes

worldlabs-mcp AGENTS.md is an instructions file published in the GitHub repository sandraschi/worldlabs-mcp (23 stars, last pushed 4d ago), licensed MIT. It adds 874 tokens to every session, about $0.0044 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.