vrc-mcp-proxy
A proxy MCP server that wraps MCP-for-Unity, correcting transport inaccuracies and restricting tool usage for reliable Unity integration.
README
vrc-mcp-proxy
An owned stdio MCP interception proxy that wraps the pinned
MCP-for-Unity server
(mcpforunityserver==10.1.0, via uvx) and corrects a handful of ways its transport
lies to the model — a "success:false" that actually moved the file on disk, a snippet
silently executed twice by a connection-level retry, a benign importer line mis-tagged as
an error, a timeout that doesn't mean the work didn't run. It also narrows the exposed tool
surface to an allowlist and refuses execute_code snippets that can't compile in a method
body.
It is a thin line-based JSON-RPC relay, not an MCP-SDK re-serve: it spawns the pinned
server as a subprocess and passes every message through untouched except at named
interception points. See docs/design.md for the full rationale and the
per-failure verdicts, and docs/bump-runbook.md for moving the
upstream pin.
Behaviors
| Behavior | Point | What it does |
|---|---|---|
canary |
tools/list resp | Validates upstream schemas against the committed baseline; refuses calls to a tool whose schema drifted. |
allowlist |
tools/list resp + tools/call req | Exposes only the allowlisted tools; refuses the rest, naming the one-line fix. |
execute_code_using_refusal |
tools/call req | Refuses snippets with top-level using directives (they can't live in a method body). |
execute_code_idempotency_guard |
tools/call req | Wraps snippets in a SessionState guard so an upstream transport re-send returns the cached result instead of running twice. |
manage_asset_truth_correction |
tools/call resp | On a move/rename reported as failed, verifies on disk and rewrites a false failure to success. |
read_console_strip |
tools/call resp | Drops known-benign console noise and appends a trailer naming what was stripped (never silent). |
timeout_notes |
tools/call resp | Appends a note to timeout errors: the work may have run; verify on disk before retrying. |
Wiring it into .mcp.json
Keep the server key UnityMCP so every mcp__UnityMCP__* name and settings matcher
survives unchanged:
{
"mcpServers": {
"UnityMCP": {
"command": "uv",
"args": ["run", "--project", "<path-to-this-repo>", "vrc-mcp-proxy"]
}
}
}
The proxy spawns the pinned upstream server itself; you do not point .mcp.json at
uvx mcpforunityserver anymore.
Disabling a behavior
Each behavior is independently disableable at launch via one env var (comma- or space-separated names from the table above):
"env": { "VRC_MCP_PROXY_DISABLE": "read_console_strip,canary" }
Development
uv run pytest
Tests need no Unity: transforms are unit-tested as pure functions, and one end-to-end test
relays the proxy against a scripted fake child process. The pin lives in exactly one place —
src/vrc_mcp_proxy/config.py.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.