AI/MLStarted 2025

VC MCP

A 56-tool FastMCP bridge that lets AI agents author, inspect, and runtime-test persistent content in the Unity-based Virtual Campus Engine.

PythonFastMCPModel Context ProtocolUnityC#WebSocket
VC MCP project preview
Role
Protocol and Unity Integration Engineer
Development Began
2025
Status
Active Production Integration

Evidence at a Glance

56
Typed MCP Tools

The current server spans scene, DAM, Jint, UI, simulation, inspection, and runtime interaction.

200
Changes per Batch

One ordered call can construct and wire a hierarchy with symbolic object references.

2
Versioned Local Links

Streamable HTTP serves MCP while a private WebSocket carries VC operations into Unity.

Overview

VC MCP is the AI authoring and testing bridge for the Unity-based Virtual Campus Engine. Any MCP client, including ASE, can inspect scenes, create persistent content, work with Digital Asset Management, author Jint behavior, build runtime UI, start simulations, and observe the result through typed tools rather than mouse automation.

The packaged Python sidecar serves MCP over Streamable HTTP on port 8765, then translates each tool call into a versioned VC operation sent over a private loopback WebSocket to Unity on port 8766. Unity remains authoritative for scene, networking, persistence, DAM, and runtime state, and processes thread-affine work on its main thread or forwards it to the authoritative server path.

The current surface contains 56 MCP tools. Compact and paged reads protect model context, while intent-sized operations cover complete UI trees, ordered scene batches, script compilation, simulation control, screenshots, logs, visible UI, and bounded input for closed-loop testing.

The Challenge

A raw Unity edit can look correct while bypassing the VC Engine systems that make an object persistent, network-authoritative, reloadable, and safe to share. The bridge therefore cannot behave like a generic Unity remote control.

Agents also need to understand and verify large scenes without exhausting context. Each request crosses protocol and engine boundaries, and simulation testing must distinguish the editable VC scene from temporary runtime copies.

Key Engineering Decisions

01

Use VC-Native Persistence Paths

Models flow through DAM, behavior through Jint and Manage Scripts, UI through VC serialization, and scene work through authoritative SimulationScene operations rather than unsupported raw Unity shortcuts.

02

Separate Public and Private Transports

MCP clients receive a stable local HTTP endpoint; the engine-facing WebSocket remains private, versioned, and owned by the running VC client.

03

Budget Model Context Deliberately

Hierarchy, object, DAM, script, and log reads default to compact bounded results, with targeted full-detail queries only when the agent needs them.

04

Close the Author-Test-Observe Loop

Simulation controls, checkpoints, screenshots, runtime state, visible UI, logs, and bounded input let an agent verify behavior instead of stopping after code or scene mutation.

What I Owned

Built and evolved a 56-tool FastMCP surface spanning scene, DAM, Jint, UI, deployment, simulation, capture, and runtime interaction.
Implemented the Python-to-Unity versioned JSON bridge and main-thread dispatch path.
Moved early generic Unity operations onto VC-native persistence, networking, DAM, and scripting systems.
Added compact paging, symbolic references, 200-operation batches, stop-on-error control, and explicit partial-progress results.
Made script updates compile before commit and restore the previous source when compilation fails.
Integrated the MCP server as a VC-owned packaged sidecar with source-fingerprint rebuilds and a stable client URL.

Results

An agent can move from inspection through persistent authoring to runtime verification without relying on brittle UI automation.
AI-authored objects, assets, scripts, and UI stay aligned with the VC Engine's real persistence and authority model.
Large reads and failed batches remain diagnosable because results are bounded, errors retain engine detail, and partial completion is explicit.

Valuable Lessons

A domain-aware agent API must preserve the product's data and authority model; visually correct shortcuts can still corrupt the workflow underneath.

The most useful game-engine tools combine intent-sized mutations with observation, because authoring without verification is only half an agent loop.