fix: uploadFiles MCP 工具未区分云存储上传与静态托管部署,导致文件上传成功但静态托管返回 404#604
Closed
binggg wants to merge 3 commits into
Closed
Conversation
…04 (issue_moctkjy6_r53c36)
…n codebuddy invocation
…04 (issue_moctkjy6_r53c36)
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attribution issue
Automation summary
./) for base/publicPath/assetPrefix when deploying to subdirectories. This is wrong — when deploying to a subdirectory like/vite-test, the Vitebasemust be set to the absolute path'/vite-test/'(with leading and trailing slashes). Using'./'causes 404 errors when the access URL lacks a trailing slash, because the browser resolves relative paths against the current directory rather than the intended subdirectory root. Additionally, the cloudPath parameter description didn't clarify format rules (no leading/), and the skill lacked a mandatory pre-upload checklist for subdirectory deployments.mcp/src/tools/hosting.ts: Fixed uploadFiles tool description — replaced misleading "是否使用相对路径" with explicit subdirectory deployment rules: base/publicPath/assetPrefix must use absolute paths matching the deploy target (e.g.,/vite-test/), forbidden./and empty string, must rebuild after config change, must verify build output, cloudPath format (no leading/)mcp/src/tools/hosting.ts: Fixed cloudPath parameter descriChanged files
config/source/skills/web-development/SKILL.mdconfig/source/skills/web-development/frameworks.mddoc/mcp-tools.mddoc/prompts/web-development.mdxmcp/src/tools/hosting.tsmcp/src/tools/storage-hosting-guidance.test.ts