搜索

PythonReactSEOPDF
OpenClaw

baidudisk-mcp

Use Baidu Netdisk via mcporter + stdio MCP server with hot-reload token file credentials. Triggers when you need Baidu Netdisk operations (official 2.0 toolset + legacy aliases) from OpenClaw without storing access_token in repo files.

forevershu0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install forevershu/baidudisk-mcp

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

baidudisk-mcp

Use this skill to run Baidu Netdisk tools through mcporter.

1) Enable server in mcporter

Run:

bash scripts/baidudisk_mcporter.sh register

This writes a baidudisk stdio server entry into config/mcporter.json with:

  • command: /home/linuxbrew/.linuxbrew/bin/uv
  • args: --directory <workspace>/skills/baidudisk-mcp/server run netdisk.py
  • env: BAIDU_NETDISK_TOKEN_FILE=~/.openclaw/credentials/baidudisk.json

Check status:

bash scripts/baidudisk_mcporter.sh check
mcporter --config /home/ubuntu/.openclaw/workspace/config/mcporter.json list baidudisk

2) Credential file and hot update

Credential file (local only):

~/.openclaw/credentials/baidudisk.json

Expected keys:

  • access_token (required)
  • default_dir (recommended)

Example (do not commit real token):

{
  "access_token": "<redacted>",
  "default_dir": "/Openclaw/baidudisk"
}

The MCP server reads this file on every tool call. So token rotation only needs editing this file; no server restart is required.

3) 2.0 tools

3.1 Official-aligned tools (主推)

四个基础列表接口与 MCP tool 对应关系:

  • /rest/2.0/xpan/file?method=list → file_list(dir?, limit?, order?, desc?, start?)
  • /rest/2.0/xpan/file?method=imagelist → file_image_list(parent_path?, recursion?, page?, num?, order?, desc?, web=1)
  • /rest/2.0/xpan/file?method=doclist → file_doc_list(parent_path?, recursion?, page?, num?, order?, desc?)
  • /rest/2.0/xpan/file?method=videolist → file_video_list_api(parent_path?, recursion?, page?, num?, order?, desc?, web=1)

另保留一个历史兼容视频工具(非官方 videolist 参数模型):

  • file_video_list(dir?, recursion?, start?, limit?, order?, desc?)(基于 xpanfilelistall 过滤视频)

其他工具:

  • category_info(category, parent_path='/', recursion=1)
  • category_info_multi(categories, parent_path='/', recursion=1)
  • image_gettags(type=1)
  • image_gettags_summary(type=1, top=50)
  • `image_search(search_type, keyw...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/forevershu/baidudisk-mcp
Version
—
Commit
d4c3ae273cf055ff3c43bbc6fd970e16aab0092a
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# baidudisk-mcp

Use this skill to run Baidu Netdisk tools through `mcporter`.

## 1) Enable server in mcporter

Run:

```bash
bash scripts/baidudisk_mcporter.sh register
```

This writes a `baidudisk` stdio server entry into `config/mcporter.json` with:

- command: `/home/linuxbrew/.linuxbrew/bin/uv`
- args: `--directory <workspace>/skills/baidudisk-mcp/server run netdisk.py`
- env: `BAIDU_NETDISK_TOKEN_FILE=~/.openclaw/credentials/baidudisk.json`

Check status:

```bash
bash scripts/baidudisk_mcporter.sh check
mcporter --config /home/ubuntu/.openclaw/workspace/config/mcporter.json list baidudisk
```

## 2) Credential file and hot update

Credential file (local only):

`~/.openclaw/credentials/baidudisk.json`

Expected keys:

- `access_token` (required)
- `default_dir` (recommended)

Example (do not commit real token):

```json
{
  "access_token": "<redacted>",
  "default_dir": "/Openclaw/baidudisk"
}
```

The MCP server reads this file on **every tool call**.
So token rotation only needs editing this file; no server restart is required.

## 3) 2.0 tools

### 3.1 Official-aligned tools (主推)

四个基础列表接口与 MCP tool 对应关系:

- `/rest/2.0/xpan/file?method=list` → `file_list(dir?, limit?, order?, desc?, start?)`
- `/rest/2.0/xpan/file?method=imagelist` → `file_image_list(parent_path?, recursion?, page?, num?, order?, desc?, web=1)`
- `/rest/2.0/xpan/file?method=doclist` → `file_doc_list(parent_path?, recursion?, page?, num?, order?, desc?)`
- `/rest/2.0/xpan/file?method=videolist` → `file_video_list_api(parent_path?, recursion?, page?, num?, order?, desc?, web=1)`

另保留一个历史兼容视频工具(非官方 videolist 参数模型):

- `file_video_list(dir?, recursion?, start?, limit?, order?, desc?)`(基于 `xpanfilelistall` 过滤视频)

其他工具:

- `category_info(category, parent_path='/', recursion=1)`
- `category_info_multi(categories, parent_path='/', recursion=1)`
- `image_gettags(type=1)`
- `image_gettags_summary(type=1, top=50)`
- `image_search(search_type, keyw...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.