Skip to content

Commit c846dd1

Browse files
author
CodeBuddy Attribution Bot
committed
fix(attribution): MCP 缺乏标准输出目录指引导致文件写入路径错误 (issue_mns3aza0_1huda8)
1 parent e8d853f commit c846dd1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mcp/codebuddy-plugin/rules/cloudbase_rules.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ updatedAt: 2026-03-27T00:00:00.000Z
4343

4444
**7. 环境检查**
4545
开始工作前调用 `envQuery` 检查云开发环境状态,确保已知晓当前环境 ID。
46+
47+
**8. 本地产物输出目录**
48+
当任务要求生成 `RESULT.json`、报告或导出文件时,默认写到工作区项目根目录,不要写到 MCP 包目录或临时目录。根目录解析顺序为 `WORKSPACE_FOLDER_PATHS` -> `PROJECT_ROOT` -> `GITHUB_WORKSPACE` -> 当前工作目录;如果用户只给文件名,直接写到该根目录;如果给相对路径,则从该根目录解析。

0 commit comments

Comments
 (0)