Preface¶
In Agent workflows, personal files often reside in cloud drives: backups, share links, and organizing by directories all require opening a browser or client first. If you wish to “list directories, upload, generate external links” directly within a conversation, you need a stable cloud drive API and authentication method. You also need to define the Tool names and parameter conventions within a Skill to prevent the model from mistakenly touching Tencent Docs, local paths, or other cloud drives.
Below is an introduction to the Weiyun MCP (@tencent-adm/tencent-drive-mcp) on SkillHub: an MCP file operation skill for weiyun.com, published by Tencent Weiyun. The current SkillHub version is 1.0.6, categorized under dev-programming, and tagged with requires_api_key=true (requires MCP Token configuration).
What is this¶
Weiyun MCP is an Agent skill pack based on the generic SKILL.md format. It guides the model to call the weiyun.* tools on the Weiyun MCP Server in correct scenarios, and includes authorization scripts, upload scripts, and API/workflow reference documentation.
- Publisher: Tencent Weiyun (SkillHub coordinates
@tencent-adm/tencent-drive-mcp) - Protocol: MCP (HTTP transport), server address:
https://www.weiyun.com/api/v3/mcpserver - Scope: Only handles files stored in Weiyun Cloud Drive; irrelevant to Tencent Docs (docs.qq.com), purely local files, direct messaging via WeChat/QQ, or other cloud drives (the skill includes explicit negative exclusion explanations for such requirements).
SkillHub page: https://www.skillhub.cn/skills/tencent-adm/tencent-drive-mcp
Skill pack API: https://api.skillhub.cn/tencent-adm/tencent-drive-mcp
Core Functions¶
The capabilities summarized in the skill description are as follows (verified against the SkillHub summary and the skill pack’s SKILL.md).
MCP Tools (14 total)¶
| Tool Name | Function |
|---|---|
weiyun.list |
Directory listing |
weiyun.list_by_category |
Fetch by category |
weiyun.recent_list |
Recent access |
weiyun.search |
Search |
weiyun.download |
Batch get download info |
weiyun.delete |
Batch delete |
weiyun.upload |
Two-stage upload |
weiyun.gen_share_link |
Generate share link |
weiyun.rename_file / weiyun.rename_dir |
Rename file/directory |
weiyun.create_dir |
Create folder |
weiyun.move_file / weiyun.move_dir |
Move file/directory |
check_skill_update |
Check for skill version updates |
When calling, you must include qua and version in the req_header; the HTTP authentication header is WyHeader: mcp_token=<token>.
Upload and FTN Protocol¶
- Upload can use the MCP two-stage process; the skill recommends using the one-click script
scripts/upload_to_weiyun.py. - Large file FTN uploads require SHA1 chunking (
block_sha_list); the skill provides scripts such asscripts/gen_block_info_list.py. For upload protocol details, refer toreferences/upload_protocol.mdin the package.
Triggers and Exclusions (Agent Routing)¶
Positive Triggers: User mentions “Weiyun”, “weiyun”, or “微云网盘”; or calls weiyun.list / weiyun.upload / weiyun.download / weiyun.gen_share_link / weiyun.recent_list / weiyun.search, etc.; or mentions block_sha_list, FTN upload.
Should Not Trigger: Tencent Docs online editing, local file operations unrelated to Weiyun, sending files directly to WeChat/QQ contacts or groups, Baidu Netdisk/OneDrive, etc. The skill should be disabled if the user explicitly states they are not using Weiyun.
Installation and Activation¶
1. Install SkillHub CLI (if not installed)¶
Check the CLI following the SkillHub Installation Docs:
command -v skillhub && skillhub --version
If not installed, execute:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install Weiyun MCP to the current Agent’s skills directory¶
When installing, you must use --dir to point to the skills path recognized by the Agent; otherwise, defaulting to ./skills/ might prevent loading.
skillhub install tencent-drive-mcp --namespace tencent-adm --dir <your skills directory>
Common paths (from SkillHub installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Alternatively, provide the following prompt to the AI to install via the official process:
Please install `@tencent-adm/tencent-drive-mcp` based on https://skillhub.cn/install/skillhub.md.
3. Configure MCP Authentication (mcporter + Token)¶
The skill relies on mcporter to connect to the Weiyun MCP Server. In the skill pack directory, perform an authorization check first:
bash ./setup.sh weiyun_check_and_start_auth
- Outputs
READY: Tools can be called directly. - Outputs
AUTH_REQUIRED:<url>: Complete authorization via QQ/WeChat in the browser. After user confirmation, execute:
bash ./setup.sh weiyun_fetch_token
Success outputs TOKEN_READY. If you already have a Token, you can obtain it from the Weiyun OpenClaw Activity Page and write it in:
bash ./setup.sh weiyun_set_token <YourToken>
Or configure mcporter manually (consistent with references/auth.md):
mcporter config add weiyun "https://www.weiyun.com/api/v3/mcpserver" \
--header "WyHeader=mcp_token=$Token" \
--transport http \
--scope home
On Windows, replace bash ./setup.sh with powershell -ExecutionPolicy Bypass -File setup.ps1.
4. Upload Environment Requirements¶
- Upload requires Python 3 and
requests(pip install requests). - List, download, share, delete, rename, move, search, etc., do not rely on Python.
Typical Usage¶
List Directory with mcporter¶
Assuming mcporter is configured with weiyun:
mcporter call --server weiyun --tool weiyun.list limit=50 order_by=2 --output json
Note: You must use --server weiyun --tool weiyun.xxx to avoid misspelling the server or tool names.
List Root Directory (JSON Request Body Example)¶
weiyun.list example from the skill documentation:
{"limit": 50, "get_type": 0, "req_header": {"qua": "MAC_15.4.1_CODEBUDDY_4.8.1", "version": "1.0.8"}}
qua should be filled according to the actual client platform and version; version should be consistent with the current skill frontmatter version.
Upload Local File¶
It is recommended to execute in the skill pack directory:
python3 scripts/upload_to_weiyun.py /path/to/file --pdir_key <pdir_key>
--token can be passed explicitly or set via the environment variable WEIYUN_MCP_TOKEN. pdir_key should use the top-level pdir_key from the weiyun.list response; do not use a field from a single entry that might be empty.
Download and Sharing¶
- Use
weiyun.listto obtainfile_idand the top-levelpdir_key. - Use
weiyun.downloadto get the HTTPS address, then usecurlto save to disk, and verify the file size againstfile_size. - Use
weiyun.gen_share_linkto generate an external link; thepdir_keyinfile_listmust be non-empty. Share links cannot be used directly as download interfaces by this skill; they must be opened in a browser.
For more complete workflows (nine types), see references/workflows.md in the package; for parameter tables, see references/mcp_api.md.
Use Cases and Notes¶
Who is it for
- Users already storing personal/team files in Weiyun Cloud Drive who want to perform cloud drive operations via natural language or Tool calls in Agents like Cursor, Claude Code, Codex, etc.
- Those needing scripted FTN chunked uploads, batch directory organization, or generating password-protected share links.
Limitations and Pitfalls
| Item | Description |
|---|---|
| Product Boundary | Weiyun Cloud Drive ≠ Tencent Docs; IM direct file sending is not supported, use weiyun.gen_share_link instead |
| Delete Directory | dir_name is required, and the skill requires user confirmation again before deleting a directory |
| Search Follow-up | Search results do not contain pdir_key; you need to locate it using weiyun.list again |
| Error Codes | e.g., 117402 Token invalid, 1192 Directory name invalid, 50000 Service busy; see references/faq.md |
| SkillHub Data | Page shows rating 100000, ~2433 downloads (subject to SkillHub data) |
Conclusion¶
Weiyun MCP consolidates file operations on weiyun.com into MCP Tools and a set of authorization/upload scripts, while clearly defining trigger boundaries to reduce Agent misuse of other products or local paths. If your files are in Weiyun and your Agent supports SkillHub installation, you can install the skill and configure the Token as described above, then start verifying with weiyun.list or the upload script.
Official Entry: https://api.skillhub.cn/tencent-adm/tencent-drive-mcp