[hooks][fix]: 修正提交检查并同步 UI 文档
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# CrystalBattle Unity MCP
|
||||
# StrayFog Unity MCP
|
||||
|
||||
This local MCP server exposes selected CrystalBattle Unity Editor commands to Codex.
|
||||
This local MCP server exposes selected StrayFog Unity Editor commands to Codex.
|
||||
|
||||
## Architecture
|
||||
|
||||
@@ -10,7 +10,7 @@ This local MCP server exposes selected CrystalBattle Unity Editor commands to Co
|
||||
|
||||
## Unity Setup
|
||||
|
||||
Open `CrystalBattle_Client` in Unity. The bridge starts automatically after scripts compile.
|
||||
Open the target StrayFog Unity project. The bridge starts automatically after scripts compile; use `unity_health` to confirm that the returned project path matches the current task.
|
||||
|
||||
Manual controls are available from the bridge panel:
|
||||
|
||||
@@ -28,11 +28,7 @@ From this directory:
|
||||
pnpm install
|
||||
```
|
||||
|
||||
If `pnpm` is not on `PATH`, use the Codex bundled runtime:
|
||||
|
||||
```powershell
|
||||
& "C:\Users\admin\.cache\codex-runtimes\codex-primary-runtime\dependencies\bin\pnpm.cmd" install
|
||||
```
|
||||
If `pnpm` is not on `PATH`, locate the configured Codex bundled runtime for the current machine instead of copying a user-specific absolute path.
|
||||
|
||||
## Tools
|
||||
|
||||
@@ -53,8 +49,7 @@ UNITY_MCP_BRIDGE_URL=http://127.0.0.1:17777
|
||||
|
||||
## Codex Config
|
||||
|
||||
The workspace includes `.codex/config.toml` with a `crystalbattle-unity` MCP server entry.
|
||||
Restart Codex after dependency installation so the new MCP server is discovered.
|
||||
Register this server in the workspace `.codex/config.toml` and restart Codex after dependency installation so the MCP server is discovered. The configured server name is workspace-owned and does not affect the MCP tool names below.
|
||||
|
||||
---
|
||||
|
||||
@@ -65,5 +60,5 @@ Restart Codex after dependency installation so the new MCP server is discovered.
|
||||
| 文档 | 关联原因 |
|
||||
|---|---|
|
||||
| [MCP 工具](../../modules/frameworks/编辑器工具/MCP工具/README.md) | Codex ↔ Unity MCP 工具说明 |
|
||||
| [CrystalBattle Codex ↔ Unity MCP 使用规则](../../modules/frameworks/编辑器工具/MCP工具/CrystalBattle_Codex_Unity_MCP使用规则.md) | 具体使用规则 |
|
||||
| [Codex ↔ Unity MCP 使用规则](../../modules/frameworks/编辑器工具/MCP工具/Codex_Unity_MCP使用规则.md) | 具体使用规则 |
|
||||
| [modules/模块索引.md](../../modules/模块索引.md) | 模块索引是项目知识总入口 |
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"description": "Local MCP server that exposes CrystalBattle Unity Editor commands to Codex.",
|
||||
"description": "Local MCP server that exposes StrayFog Unity Editor commands to Codex.",
|
||||
"main": "src/server.mjs",
|
||||
"scripts": {
|
||||
"start": "node src/server.mjs"
|
||||
|
||||
@@ -9,7 +9,7 @@ const LONG_TIMEOUT_MS = 120000;
|
||||
const bridgeUrl = (process.env.UNITY_MCP_BRIDGE_URL || DEFAULT_BRIDGE_URL).replace(/\/+$/, "");
|
||||
|
||||
const server = new McpServer({
|
||||
name: "crystalbattle-unity",
|
||||
name: "strayfog-unity",
|
||||
version: "0.1.0"
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@ server.registerTool(
|
||||
"unity_health",
|
||||
{
|
||||
title: "Unity health",
|
||||
description: "Check whether the CrystalBattle Unity Editor bridge is online.",
|
||||
description: "Check whether the target StrayFog Unity Editor bridge is online.",
|
||||
inputSchema: {}
|
||||
},
|
||||
async () => textResult(await getHealth())
|
||||
|
||||
Reference in New Issue
Block a user