Skip to content

fix: MCP 工具能力映射不清导致 CLI 任务无法正确迁移#642

Open
binggg wants to merge 1 commit intomainfrom
automation/attribution-issue-mo8y568w-q6eqtq-mcp-cli
Open

fix: MCP 工具能力映射不清导致 CLI 任务无法正确迁移#642
binggg wants to merge 1 commit intomainfrom
automation/attribution-issue-mo8y568w-q6eqtq-mcp-cli

Conversation

@binggg
Copy link
Copy Markdown
Member

@binggg binggg commented Apr 28, 2026

Attribution issue

  • issueId: issue_mo8y568w_q6eqtq
  • category: tool
  • canonicalTitle: MCP 工具能力映射不清导致 CLI 任务无法正确迁移
  • representativeRun: atomic-js-cloudbase-cli-role-get/2026-04-21T18-15-41-1g99w7

Automation summary

**

  • root_cause: When the runtime environment disables CLI (MCP-only mode), agents lacked clear documentation mapping CLI commands to equivalent MCP tool calls. Specifically, for role management operations like tcb role get, agents did not know to use queryPermissions(action="getRole", ...) instead. The CLI skill documentation mentioned "use CloudBase MCP directly" for IDE workflows but provided no explicit mapping of CLI commands to MCP tool parameters.
  • changes:
  1. Added "CLI → MCP Tool Mapping (when CLI is disabled)" section to config/source/skills/cloudbase-cli/SKILL.md with comprehensive mapping tables for:
  • Permission & Role Management (tcb role list/get/create/update/delete → queryPermissions/managePermissions)
  • User Management (tcb user list/update → queryPermissions/managePermissions)
  • Function Management (tcb fn list/detail/logs/deploy → queryFunctions/manageFunctions)
  • Database Operations (tcb db/mysql → readNoSqlDatabaseContent/querySqlDatabase)
  • Storage & Hosting (tcb hosting/storage → uploadFiles/manageStorage)
  1. Added "MCP Tool Equivalents (when CLI is disabled)" section to config/source/skills/cloudbase-cli/references/permission.md with specif

Changed files

  • config/.claude/skills/cloudbase-cli/SKILL.md
  • config/.claude/skills/cloudbase-cli/references/permission.md
  • config/source/skills/cloudbase-cli/SKILL.md
  • config/source/skills/cloudbase-cli/references/permission.md

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@binggg
Copy link
Copy Markdown
Member Author

binggg commented Apr 28, 2026

Attribution post-PR evaluation

  • visibility: internal identifiers, run ids, and private links are intentionally omitted
  • attempt: 1
  • eval_scope: primary_only
  • overall: ERROR
  • summary: post-PR evaluation errored
  • updated_at: 2026-04-28T19:36:44.685Z

Cases

  • [ERROR] — primary — evaluation errored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant