Skip to content

fix: MCP 工具错误提示不具体且缺乏云函数 npm 依赖使用示例#618

Open
binggg wants to merge 1 commit intomainfrom
automation/attribution-issue-mo8z12wz-dtvaeh-mcp-npm
Open

fix: MCP 工具错误提示不具体且缺乏云函数 npm 依赖使用示例#618
binggg wants to merge 1 commit intomainfrom
automation/attribution-issue-mo8z12wz-dtvaeh-mcp-npm

Conversation

@binggg
Copy link
Copy Markdown
Member

@binggg binggg commented Apr 28, 2026

Attribution issue

  • issueId: issue_mo8z12wz_dtvaeh
  • category: tool
  • canonicalTitle: MCP 工具错误提示不具体且缺乏云函数 npm 依赖使用示例
  • representativeRun: atomic-js-cloudbase-npm-function/2026-04-21T18-41-40-72fr6i

Automation summary

  • root_cause: The MCP tool error messages for "400 invalid parameter value" were not specific enough to help users understand what parameter was wrong or how to fix it. Additionally, the cloud functions skill documentation lacked practical examples of using npm dependencies, which made it difficult for users to implement real-world use cases like using lodash for data processing.
  • changes:
  1. mcp/src/tools/functions.ts: Enhanced buildFunctionOperationErrorMessage function to detect "invalid parameter value" errors and provide specific guidance with a checklist of common parameter issues (function name format, runtime version, function type, environment variable types, functionRootPath requirements).
  2. config/source/skills/cloud-functions/SKILL.md: Added a new "Using npm dependencies" section with a complete working example showing how to use lodash for order data processing, including package.json configuration, function code, deployment command, and invocation example with test data.
  • validation: All 10 regression tests pass (tests/skill-quality-standards.test.js, tests/build-skills-repo.test.js, tests/build-compat-config.test.js). TypeScript compilation passes for th

Changed files

  • config/source/skills/cloud-functions/SKILL.md
  • mcp/src/tools/functions.ts
  • package-lock.json
  • package.json

@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: PASSED
  • summary: all planned evaluation cases passed
  • updated_at: 2026-04-28T15:12:08.047Z

Cases

  • [PASSED] — primary — evaluation passed

@binggg
Copy link
Copy Markdown
Member Author

binggg commented Apr 29, 2026

这里需要事实核查,我记得node20 不支持自动安装依赖

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