Skip to main content
Glama
Baidu Netdisk Antigravity Plugin

Baidu Netdisk Antigravity Plugin

by Xjz616

Baidu Netdisk Antigravity Plugin

基于 github.com/baidu-netdisk/mcp 构建的 Antigravity 原生插件,内置可视化设置与网盘管理界面(MCP App),支持本地 4MB 分片上传、文件管理、搜索、容量查询及官方云端 SSE 桥接。

核心特性

  1. 可视化设置与网盘管理界面(MCP App)

    • 支持 左侧边栏 Plugins → 百度网盘(全页模式)、右侧辅助面板 + → 百度网盘设置 以及对话调用 open_baidu_netdisk_settings。

    • 提供一键跳转百度 OAuth 授权、Access Token 掩码管理、实时连接测试、账号与容量进度条、分片与重名策略配置、云端 SSE 开关与可视化目录浏览器。

    • 自动跟随 Antigravity 浅色/深色主题。

  2. 双引擎完整能力(14 个本地 OpenAPI 工具 + 4 个官方云端 SSE 桥接工具)

    • 本地直连 OpenAPI:upload_file(4MB+ 自动分片、MD5 校验、秒传与指数退避重试)、user_info、get_quota、file_list、file_doc_list、file_image_list、file_video_list、file_meta、file_keyword_search、make_dir、file_copy、file_move、file_rename、file_del。

    • 官方云端 SSE 桥接(按需开关):file_semantics_search、file_upload_by_url、file_upload_by_text、file_sharelink_set。

  3. Antigravity 更新不影响插件使用

    • 插件安装于用户全局配置目录 ~/.gemini/config/plugins/baidu-netdisk/,与 Antigravity 安装目录及内置插件完全隔离。

    • 所有配置持久化保存在 ${PLUGIN_DATA}/settings.json,Antigravity 客户端或 CLI 升级不会清除插件或用户凭证(同时兼容读取 BAIDU_NETDISK_ACCESS_TOKEN 环境变量)。

    • 打包为自包含的 Node.js 产物(dist/server.mjs + dist/settings-app.html),不依赖外部 Python 或 uv 环境。

Related MCP server: Sync Vault MCP

安装方式

方式一:通过 Antigravity CLI 直接安装(推荐)

git clone https://github.com/Xjz616/baidudesk_antigravity_mcp-connect.git
agy plugin install ./baidudesk_antigravity_mcp-connect

方式二:源码构建并安装到全局插件目录

git clone https://github.com/Xjz616/baidudesk_antigravity_mcp-connect.git
cd baidudesk_antigravity_mcp-connect
npm install
npm run build
npm run install:local

获取与配置百度网盘 Access Token

  1. 在 Antigravity 左侧边栏打开 Plugins → 百度网盘,或在对话中让 Agent 打开「百度网盘设置」。

  2. 点击 「1. 发起百度授权」,在浏览器中登录百度账号并确认授权。

  3. 复制浏览器跳转地址栏中的 access_token=... 参数值,粘贴到设置界面的输入框中,点击 「保存设置」 与 「测试连接」 即可热生效。

个人体验授权与管理参考官方仓库说明:baidu-netdisk/mcp。如需长期稳定使用,建议在百度网盘开放平台申请企业开发者应用。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Antigravity Link is an MCP server and mobile companion for Google's Antigravity IDE. It captures live snapshots of the Antigravity chat UI via Chrome DevTools Protocol and serves them to a mobile web client. From your phone you can send messages, upload files, stop AI generation, switch instances, and read task/walkthrough/plan documents. Exposes 9 MCP tools and a full OpenAPI 3.1 spec.
      57 npm
      225
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables LLMs and AI agents to directly access and operate on files in supported cloud storage, with tools for listing, reading, creating, deleting, moving, renaming, downloading, uploading, semantic search, share links, and URL upload tasks over SSE.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Antigravity users to browse Windows drives and directories, display interactive inline file cards with preview, copy, reveal, and terminal actions, and present non-blocking single-choice, multi-choice, or text question cards with clipboard file and screenshot support.
      1
      MIT