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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。