diff --git a/AGENTS.md b/AGENTS.md index 1749e194..21d10526 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,8 +1,14 @@ # Project Rules -- This project is split into `Mirserver` (server) and `client` (client). -- Files under `Mirserver` use GB2312/GBK encoding. Read and write them with the server encoding preserved; do not silently convert them to UTF-8. -- Files under `client` use UTF-8 encoding. Read and write them as UTF-8. -- When changing mirrored server/client logic, keep each side in its own encoding and verify Chinese text after edits. -- Before processing server-side code, call MCP tool: mcp_996_new_server -- Before processing client-side code, call MCP tool: mcp_996_client +## 编码规范(强制执行) +- **服务端文件(Mirserver/目录下):必须使用 GB2312/GBK 编码** + - 读取时必须按 GB2312/GBK 解析 + - 写入时必须保持 GB2312/GBK 编码,绝不允许转换为 UTF-8 + - 包括但不限于:.lua、.txt、.ini 等所有服务端文件 +- **客户端文件(client/目录下):必须使用 UTF-8 编码** + - 读取和写入都使用 UTF-8 编码 +- 修改服务端/客户端逻辑时,严格保持各自的编码,编辑后必须验证中文文本正确显示 + +## MCP工具调用 +- 处理服务端代码前,调用 MCP 工具:mcp_996_new_server +- 处理客户端代码前,调用 MCP 工具:mcp_996_client