MinerU
Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
SharePoint & OneDrive MCP server, CLI, and TUI in Rust with list rows & conditional uploads.
作者提供的原文
教 AI 做这类工作的 Skill,可与本项一起使用
Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Agent skills for Obsidian. Teach your agent to use Obsidian CLI and open formats including Markdown, Bases, JSON Canvas.
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 0/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 12/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
选择你使用的 AI 应用,然后复制设置。
用一句话让 AI 帮你安装
请帮我安装 SharePoint & OneDrive (TUI, CLI & MCP)。按照 https://mcp.popnx.com/i/bitefoundry-sharepoint.md 操作,先把命令给我看,等我同意后再运行。粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月24日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server SharePoint & OneDrive (TUI, CLI & MCP),按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "sharepoint": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "SHAREPOINT_ACCESS_TOKEN", "ghcr.io/bitefoundry/sharepoint:0.4.2" ], "env": { "SHAREPOINT_ACCESS_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) SHAREPOINT_ACCESS_TOKEN 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 SharePoint & OneDrive (TUI, CLI & MCP) 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
docker --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version
安装一次,所有需要 Docker 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
SettingsDeveloperEdit Config
{
"mcpServers": {
"sharepoint": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SHAREPOINT_ACCESS_TOKEN",
"ghcr.io/bitefoundry/sharepoint:0.4.2"
],
"env": {
"SHAREPOINT_ACCESS_TOKEN": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 SharePoint & OneDrive (TUI, CLI & MCP) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 SharePoint & OneDrive (TUI, CLI & MCP),或回答中出现 SharePoint & OneDrive (TUI, CLI & MCP) 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
TEAMS_TOKEN_FILE 可选的共享 Microsoft Graph 令牌文件路径。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 SharePoint & OneDrive (TUI, CLI & MCP)
SharePoint & OneDrive (TUI, CLI & MCP) 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 SharePoint & OneDrive (TUI, CLI & MCP) 的应用
可连接 Claude Code,但需要先准备
需要 SharePoint & OneDrive (TUI, CLI & MCP) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Docker(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server SharePoint & OneDrive (TUI, CLI & MCP),按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user sharepoint --env SHAREPOINT_ACCESS_TOKEN=your-value -- docker run -i --rm -e SHAREPOINT_ACCESS_TOKEN ghcr.io/bitefoundry/sharepoint:0.4.2 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) SHAREPOINT_ACCESS_TOKEN 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 SharePoint & OneDrive (TUI, CLI & MCP) 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
docker --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version
安装一次,所有需要 Docker 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user sharepoint --env SHAREPOINT_ACCESS_TOKEN=your-value -- docker run -i --rm -e SHAREPOINT_ACCESS_TOKEN ghcr.io/bitefoundry/sharepoint:0.4.2按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 SharePoint & OneDrive (TUI, CLI & MCP) 在列表中并显示已连接
用 SharePoint & OneDrive (TUI, CLI & MCP) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 SharePoint & OneDrive (TUI, CLI & MCP),或回答中出现 SharePoint & OneDrive (TUI, CLI & MCP) 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
TEAMS_TOKEN_FILE 可选的共享 Microsoft Graph 令牌文件路径。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 SharePoint & OneDrive (TUI, CLI & MCP) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Docker(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server SharePoint & OneDrive (TUI, CLI & MCP),按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "sharepoint": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "SHAREPOINT_ACCESS_TOKEN", "ghcr.io/bitefoundry/sharepoint:0.4.2" ], "env": { "SHAREPOINT_ACCESS_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) SHAREPOINT_ACCESS_TOKEN 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 SharePoint & OneDrive (TUI, CLI & MCP) 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
docker --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version
安装一次,所有需要 Docker 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
在 SharePoint & OneDrive (TUI, CLI & MCP) 的设置中,SHAREPOINT_ACCESS_TOKEN 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 SharePoint & OneDrive (TUI, CLI & MCP) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 SharePoint & OneDrive (TUI, CLI & MCP),或回答中出现 SharePoint & OneDrive (TUI, CLI & MCP) 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
TEAMS_TOKEN_FILE 可选的共享 Microsoft Graph 令牌文件路径。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 SharePoint & OneDrive (TUI, CLI & MCP) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Docker(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server SharePoint & OneDrive (TUI, CLI & MCP),按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "sharepoint": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "SHAREPOINT_ACCESS_TOKEN", "ghcr.io/bitefoundry/sharepoint:0.4.2" ], "env": { "SHAREPOINT_ACCESS_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) SHAREPOINT_ACCESS_TOKEN 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 SharePoint & OneDrive (TUI, CLI & MCP) 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
docker --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version
安装一次,所有需要 Docker 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
在 SharePoint & OneDrive (TUI, CLI & MCP) 的设置中,SHAREPOINT_ACCESS_TOKEN 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 SharePoint & OneDrive (TUI, CLI & MCP) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 SharePoint & OneDrive (TUI, CLI & MCP),或回答中出现 SharePoint & OneDrive (TUI, CLI & MCP) 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
TEAMS_TOKEN_FILE 可选的共享 Microsoft Graph 令牌文件路径。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user sharepoint --env SHAREPOINT_ACCESS_TOKEN=your-value -- docker run -i --rm -e SHAREPOINT_ACCESS_TOKEN ghcr.io/bitefoundry/sharepoint:0.4.2Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"sharepoint": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SHAREPOINT_ACCESS_TOKEN",
"ghcr.io/bitefoundry/sharepoint:0.4.2"
],
"env": {
"SHAREPOINT_ACCESS_TOKEN": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"sharepoint": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SHAREPOINT_ACCESS_TOKEN",
"ghcr.io/bitefoundry/sharepoint:0.4.2"
],
"env": {
"SHAREPOINT_ACCESS_TOKEN": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"sharepoint": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SHAREPOINT_ACCESS_TOKEN",
"ghcr.io/bitefoundry/sharepoint:0.4.2"
],
"env": {
"SHAREPOINT_ACCESS_TOKEN": "your-value"
}
}
}
}SHAREPOINT_ACCESS_TOKEN 机密 必填 envTEAMS_TOKEN_FILE env说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月26日
注册名称已通过 GitHub 账户 BiteFoundry 验证,该账户拥有此仓库
代码最后更新于昨天
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/bitefoundry-sharepoint)提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:SHAREPOINT_ACCESS_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于昨天,最新版本(0.4.2)于前天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
同一分类中有:Puter MCP, XcodeBuildMCP, Vexa, Atlassian Rovo MCP Server, MR Office
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.
Connect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.
Create, open and edit documents, spreadsheets and PDFs in MR Office's editor, inline in chat.
| 本项 SharePoint & OneDrive (TUI, CLI & MCP) | Puter MCP | XcodeBuildMCP | Vexa | Atlassian Rovo MCP Server | MR Office | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 | 云端或安装在电脑上都可以 |
| 需要密钥 | 是 | 否 | 否 | 是 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 否 | 是 | 否 |
| 基础检查 | 3/3 | 4/4 | 3/3 | 2/4 | 4/4 | 5/5 |
| 许可证 | MIT | AGPL-3.0 | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
@bitefoundry/sharepointBrowse SharePoint and OneDrive files, inspect version history, and edit SharePoint list rows from the terminal.
BiteFoundry · Latest release notes
| Capability | Details |
|---|---|
| Minimal-Chrome 3-Pane TUI | Dual-persona explorer (sharepoint and bitefoundry-onedrive) with collapsible Sites, Document Libraries & OneDrive sidebar, sorted file list, live Inspector (metadata, version history, Markdown/YAML/JSON/code preview), Link Extractor (u), File Picker with zoxide (Ctrl+F), Context Menu (.), and 6 themes. |
| High-Res Terminal Images | Inline Inspector thumbnails & fullscreen HD previews (v / Alt+v) with 80ms protocol probing for Kitty, iTerm2, Sixel (Floyd-Steinberg dithering), and 24-bit Unicode Half-Blocks + Ctrl+V instant clipboard PNG upload. |
| Local SQLite FTS5 + IPC Daemon | WAL-mode SQLite cache with 4-reader pool, hybrid local FTS5 + remote Graph search (/), streaming chunked uploads (> 4 MiB), and a shared background sync daemon (sharepoint daemon start). |
| 4-in-1 Agent Interface | Interactive TUI, scriptable --json CLI, local HTTP JSON API (sharepoint serve, port 8790), and stdio MCP Server (sharepoint mcp, 20 tools). |
# 1. Install globally via npm (precompiled native binary for win32 / darwin / linux)
npm i -g @bitefoundry/sharepoint
sharepoint login
sharepoint # SharePoint sites and document libraries bitefoundry-onedrive # Personal OneDrive, including My Files, Recent, and Shared
sharepoint info FILE_ID --drive DRIVE_ID --json
Read file metadata from a specific drive. For version history, add --versions while online. When paging list rows, reuse the same site, list, and field selection. For full detail, add --full in the CLI or pass compact: false to get_file_info in MCP.
Build both commands with cargo install --locked --path . from a checkout. Both executables are also available in the same GitHub release archive. Install and upgrade
sharepoint login uses the public Microsoft Graph Command Line Tools client by default. To use a company-owned app, register it as a public client and configure the http://localhost redirect URI. Enable public client flows for headless --device-code sign-in. Company app registration guide
Add the Microsoft Graph delegated permissions your users need and have your Entra administrator grant consent where required.
| Feature | Delegated scopes |
|---|---|
| Profile and session refresh | User.Read, offline_access |
| Read and edit OneDrive files | Files.Read, Files.ReadWrite |
| Read and edit files the user can access across drives | Files.Read.All, Files.ReadWrite.All |
| Browse SharePoint sites and libraries, and write to those libraries | Sites.Read.All, Sites.ReadWrite.All |
The default sign-in requests all scopes in the table. Set scopes in config.toml to request a narrower set that matches your workflow.
sharepoint login --client-id YOUR_APP_ID --tenant-id YOUR_TENANT_ID
sharepoint whoami --json
For persistent environment configuration, set SHAREPOINT_CLIENT_ID and SHAREPOINT_TENANT_ID. The OneDrive launcher uses the same credentials.
HTTPS connections trust the operating system's certificate store and the bundled Mozilla roots. If a TLS-inspecting proxy re-signs traffic with a root CA that is in neither, requests fail with TLS certificate was issued by an unknown authority. Install that root CA in the OS store, or point the tool at a PEM bundle:
| Variable | Read by | If the file cannot be used |
|---|---|---|
SHAREPOINT_EXTRA_CA_PEM (alias ONEDRIVE_EXTRA_CA_PEM) | both commands | the command stops with an error naming the variable |
SSL_CERT_FILE, NODE_EXTRA_CA_CERTS | both commands, as extra roots | a one-line warning on stderr; the command continues |
Every variable that is set is loaded, in addition to the OS and bundled roots, for Graph, sign-in, downloads, self-update and the realtime connection. The proxy itself is taken from HTTPS_PROXY / NO_PROXY.
export HTTPS_PROXY=http://proxy.corp.example:8080
export SHAREPOINT_EXTRA_CA_PEM=/etc/ssl/certs/corp-root-ca.pem sharepoint whoami --json
| Key | Action |
|---|---|
Tab / Shift+Tab | Cycle focus (Sidebar → File List → Inspector) |
j / k · ↑ / ↓ | Move selection / scroll Inspector preview |
Enter / Backspace | Open folder or site / navigate to parent folder |
S | Cycle sort order (Name / Modified / Size / Type) |
Ctrl+F | Upload file via interactive File Picker (z for zoxide jump) |
Ctrl+V | Encode clipboard image as PNG & upload to current folder |
d / n / r / x | Download file / new folder / rename / delete (with confirm) |
s / o / p | Create & copy share link / open in browser / pin target |
v / u / h | HD image preview / Link Extractor / toggle inline href URLs |
/ | Hybrid local FTS5 + Microsoft Graph file search |
Ctrl+P / Ctrl+K | Unified Command Palette & Library Omni-Switcher |
. / Right-click | Context Menu |
Ctrl+, / Ctrl+B / ? | Settings / Toggle sidebar / Keyboard shortcuts help |
sharepoint sites --json
sharepoint drives --site "Acme Engineering" --json bitefoundry-onedrive ls /Projects/Platform-v4 --json --compact bitefoundry-onedrive info /Projects/Platform-v4/deploy-pipeline.yaml --versions --versions-limit 5 --json bitefoundry-onedrive cat /Projects/Platform-v4/deploy-pipeline.yaml sharepoint upload ./q4-architecture-deck.pdf /RFCs --site "Acme Engineering" --json sharepoint share /api-gateway-rfc.md --site "Acme Engineering" --type view --scope organization --json sharepoint search "gateway" --remote --json
sharepoint --help and bitefoundry-onedrive --help list the commands that support --json. info --json defaults to compact output with drive_id, id, name, parent_path, is_folder, size, last_modified_at, e_tag, omitted, and hint. Pass --json --full for every item field; --compact remains a compatibility alias. For ls, --json --compact returns { "id": "…" } for drive and core item fields as before, and ls --json includes returned, has_more, and source ("remote" or "cache"). info --versions is online-only (cannot be combined with --offline), reads all available history by default, and adds versions and versions_has_more. --versions-limit caps history and stops fetching pages once the cap is reached. An online history lookup reports Graph errors, including permission denials.
cat reads UTF-8 with an optional BOM and UTF-16LE or UTF-16BE with a BOM. Its byte limit applies to the original file, and plain output preserves line endings. Use download for binary files. To replace a file conditionally, pass its item ID and eTag to upload --item-id --if-match . Conditional replacement uses an upload session at any file size.
When targeting a site with multiple document libraries, pass --drive alongside --site; responses report the selected library in drive.id (or drive_id). drives --json outputs a JSON array and writes partial site-discovery warnings to stderr; use MCP list_drives if you need sites_failed or has_more in JSON. For root paths with spaces, dots, or leading hyphens, prefix with / (for example /Q4 Report.md or mv /-name).
Exit codes: 1 is a runtime error (with --json, stdout prints a single-line {"ok":false,"error":{"code":...,"message":...}} object alongside the stderr message); 2 is an argument or usage error (plain text on stderr, empty stdout).
Use sites --json to find the site ID, then lists ls --site-id to find the list ID. With the list ID, discover its column names, then select one or more columns by passing --field for each name.
sharepoint sites --json
sharepoint lists ls --site-id "$SITE_ID" --json sharepoint lists columns --site-id "$SITE_ID" --list-id "$LIST_ID" --json sharepoint lists items --site-id "$SITE_ID" --list-id "$LIST_ID" \ --field ReviewStatus --field Quantity --json sharepoint lists set-field --site-id "$SITE_ID" --list-id "$LIST_ID" \ --item-id 17 --field ReviewStatus --value-json '"Ready"' --if-match '"row-etag"' --json
items reads one page (default 50 rows; --limit accepts 1–200) and returns items (each row's id, e_tag when available, and fields without duplicate @odata.etag), returned, has_more, and next_cursor. Pass next_cursor to --cursor to read the next page; the cursor is bound to the same --site-id, --list-id, and --field set (order independent) and cannot be combined with --limit. To read all pages:
cursor=""
while :; do if [ -z "$cursor" ]; then page=$(sharepoint lists items --site-id "$SITE_ID" --list-id "$LIST_ID" --field Title --limit 200 --json) else page=$(sharepoint lists items --site-id "$SITE_ID" --list-id "$LIST_ID" --field Title --json --cursor "$cursor") fi printf '%s\n' "$page" | jq -c '.items[]' cursor=$(printf '%s\n' "$page" | jq -r '.next_cursor // empty') [ -n "$cursor" ] || break done
set-field accepts a typed JSON value such as "Ready", false, or 0. Pass the row's current e_tag as --if-match to apply the update conditionally. Graph returns 412 for stale ETags. List rows · Update list fields
sharepoint serve)# Start local Axum JSON server (default 127.0.0.1:8790)
sharepoint serve --port 8790 --api-key dev-secret
curl -H "Authorization: Bearer dev-secret" \ "http://127.0.0.1:8790/v1/search?q=gateway&remote=true&limit=10"
The API always needs a Bearer key. Without --api-key, serve generates one and prints it once to stderr; --allow-keyless turns the key off on a loopback address. A non-loopback --bind requires --api-key. The server answers only requests whose Host names it (add a proxy name with --allowed-host) and allows CORS from loopback origins plus any --cors-origin. Uploads from local_path and downloads into dir need a key or --allow-local-paths.
Full route reference & OpenAPI 3.1 spec: docs/API.md · docs/openapi.yaml.