Tencent Drive MCP
Paste the following prompt into your AI chat to install this skill:
Please install @tencent-adm/tencent-drive-mcp according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
When an agent needs to read, organize, or move files in Tencent Drive, raw web APIs usually lack a clean protocol and expose brittle details such as pdir_key, two-phase upload, chunked SHA1, and token authentication. Tencent Drive MCP wraps these operations into a set of weiyun.* MCP tools so higher-level skills can manage cloud drive files through structured requests.
How It Works
The skill exposes 14 tools for file management, including weiyun.list, weiyun.search, weiyun.download, weiyun.upload, weiyun.delete, weiyun.rename_file, weiyun.rename_dir, weiyun.create_dir, weiyun.move_file, weiyun.move_dir, and weiyun.gen_share_link. A typical flow is:
- Use weiyun.list first to get directory entries and the top-level pdir_key;
- Locate files with weiyun.search or weiyun.list_by_category;
- For downloads, fetch file_id and pdir_key, then call weiyun.download;
- For uploads, use the two-phase protocol, preferably with upload_to_weiyun.py for block_sha_list, chunked SHA1, and 50000 retries;
- Generate share links with weiyun.gen_share_link, which are intended to be opened in a browser.
Requests must include qua and version headers, and authentication is supplied via WyHeader: mcp_token=. The skill also includes check_skill_update for version checks.
Boundaries
This skill is scoped to Tencent Drive files only. It does not create or edit Tencent Docs, push files directly to WeChat/QQ, or support other cloud drives such as Baidu Netdisk or OneDrive. Upload requires Python; listing, downloading, sharing, deleting, renaming, moving, and searching generally do not. Directory deletion requires dir_name and should be reconfirmed by the user. Search results usually do not return pdir_key, so later operations may need to call weiyun.list again. Error codes such as 117402, 117407, 1192, and 50000 should be handled as token, authorization, directory-name, and service-retry issues respectively.
Use Cases
- List Weiyun directory entries, locate a target file, and obtain file_id and pdir_key before downloading.
- Upload a local report to a selected Weiyun folder using two-phase upload, chunked SHA1, and retries.
- Search old Weiyun assets by keyword and generate a share link for collaborators to open in browser.
- Clean up a Weiyun folder by renaming, moving files, and deleting stale copies with user confirmation.
Best For
- Developers building agents that manage Weiyun files, needing list, search, download, upload, and cleanup.
- Automation engineers who upload local build artifacts to Weiyun with chunked SHA1 and retry handling.
- Team members maintaining shared assets who search old Weiyun files and generate browser-openable share links.
- Ops staff cleaning Weiyun directories who rename, move, and delete folders with user confirmation before action.
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Restores Lanhu designs to target framework code using schema JSON, design tokens, and image assets.
Automatically detects engineering or competition code, analyzes bugs, vulnerabilities, algorithm complexity, and edge cases, then produces risk-level findings with before/after fixes.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.