
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@spatialpack/mcp
Advanced tools
Model Context Protocol server exposing SpatialPack glTF/GLB analysis, optimization, commerce-readiness + autocorrect tools to Claude Code / Cursor / any MCP agent.
@spatialpack/mcpA Model Context Protocol server that exposes the SpatialPack glTF / GLB / USDZ analysis + optimization toolkit to any MCP-aware client (Claude Code, Claude Desktop, Cline, custom agents).
# After this package ships to npm:
npx @spatialpack/mcp --repo-root /path/to/spatialpack-checkout
# Or, locally from the monorepo:
pnpm --filter @spatialpack/mcp build
node packages/mcp/dist/bin/stdio.js --repo-root .
claude mcp add --transport stdio spatialpack \
-- node /absolute/path/to/packages/mcp/dist/bin/stdio.js \
--repo-root /absolute/path/to/spatialpack
After adding, every Claude Code session in that project can call:
analyze, optimize, recipe_search, lod_bundle,
usdz_export, usdz_validate, compare_images, phash,
phash_distance, canonical_cid, batch_optimize,
compatibility_check, list_presets, explain_budget,
diagnose_asset, cohort_recipes_build, cohort_recipes_lookup.
Cross-asset packaging + verification (2026-05-23):
dedup_textures (SPEC-0091), bundle_glb_zip (SPEC-0091),
unbundle_glb_zip (SPEC-0091), usdc_to_usda (SPEC-0076 Phase H),
safety_gate (SPEC-0090).spec://NNNN (per-pass design docs),
learnings://current (cross-cutting failure modes),
preset://{web-mobile|web-desktop|quality-max},
target://compatibility-matrix, run-history://recent.optimize_for_shopify, find_best_recipe,
diagnose_asset, compare_cohorts.| Tool | Purpose | Spec |
|---|---|---|
dedup_textures | Scan N GLBs for byte-identical embedded images, extract any image shared by ≥min_occurrences GLBs into a shared sidecar dir, rewrite GLBs to reference the sidecar via image.uri. Supports dry_run and in_place. Returns per-image and per-GLB savings. | SPEC-0091 |
bundle_glb_zip | Pack a primary GLB plus sidecar files into a single .glb.zip archive with a versioned manifest.json. Auto-DEFLATE per entry. | SPEC-0091 |
unbundle_glb_zip | Inverse: read a .glb.zip and extract the primary GLB + every sidecar (CRC-verified, sandbox-clamped). | SPEC-0091 |
usdc_to_usda | Read a binary USDC file and emit the equivalent USDA text (same conversion as Pixar usdcat). Optional output_path to also write the text. | SPEC-0076 Phase H |
safety_gate | Pure-compute cohort-aware safety gate over per-asset visual-diff metrics (ssim / ΔE94 / edgeDelta). Returns per-asset verdicts + aggregate pass/fail; optional JSON+markdown report write. | SPEC-0090 |
For hosted / cloud deployment:
node packages/mcp/dist/bin/http.js --port 3037 --token "$BEARER"
Pass the same token as Authorization: Bearer <token> from the
client. Without --token (or $SPATIALPACK_MCP_TOKEN) the server
runs unauthenticated — development only.
| Env var | Purpose | Default |
|---|---|---|
SPATIALPACK_MCP_SANDBOX | Sandbox root for every file path argument. | os.tmpdir()/spatialpack-mcp-<pid> |
SPATIALPACK_MCP_LOG | `silent | error |
SPATIALPACK_MCP_TOKEN | HTTP transport bearer token. | (unset = unauth) |
PORT | HTTP transport listen port. | 3037 |
Every tool that reads / writes the filesystem resolves the user-
provided path through a sandbox check (SandboxViolationError if it
escapes). Set --sandbox (CLI) or SPATIALPACK_MCP_SANDBOX (env)
to point at the directory where the model is allowed to operate
(typically a per-conversation scratch dir or a shared "drop-zone"
under your project tree).
Stateless tools (analyze, canonical_cid, optimize with the
same input + options) cache results in-process keyed on a hash of
the tool name + sorted-arg JSON. Cache is per-server-process, LRU,
default 64 entries.
Every tool wraps its handler in safeRun(). Failures return
isError: true with a structured { error: { code, message, detail? } }
in structuredContent, plus a one-line text summary. Codes:
SANDBOX_VIOLATION, NOT_FOUND, PERMISSION_DENIED, TIMEOUT,
CANCELLED, INTERNAL.
pnpm --filter @spatialpack/mcp test
The suite spins up the server and an in-process MCP client via
InMemoryTransport.createLinkedPair() and exercises tool listing,
resource reads, sandbox enforcement, error envelopes, and a real
analyze + optimize round-trip on a corpus asset (skipped when the
corpus isn't present locally).
FAQs
Model Context Protocol server exposing SpatialPack glTF/GLB analysis, optimization, commerce-readiness + autocorrect tools to Claude Code / Cursor / any MCP agent.
We found that @spatialpack/mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.