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.
Skills that teach the AI this kind of work; they work alongside this one
Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
A privacy-first app that strips AI watermarks from content you own.
Agent skills for Obsidian. Teach your agent to use Obsidian CLI and open formats including Markdown, Bases, JSON Canvas.
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 0/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 12/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 12/100 |
Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)
Pick the AI app you use, then copy the settings.
Let your AI install it with one sentence
Please install SharePoint & OneDrive (TUI, CLI & MCP). Follow https://mcp.popnx.com/i/bitefoundry-sharepoint.md, show me the commands and wait for my OK before running them.Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 24, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a SharePoint & OneDrive (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server SharePoint & OneDrive (TUI, CLI & MCP) for Claude on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by 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) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SHAREPOINT_ACCESS_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the SharePoint & OneDrive (TUI, CLI & MCP) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
docker --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: docker --version
Install once; it works for everything that needs Docker
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
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"
}
}
}
}Paste the key only into the app’s field, never into a chat or to anyone
Use SharePoint & OneDrive (TUI, CLI & MCP) and tell me what you can do for me, then show me one thing✓ If Claude says it is using SharePoint & OneDrive (TUI, CLI & MCP) or shows a SharePoint & OneDrive (TUI, CLI & MCP) tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
TEAMS_TOKEN_FILE Optional shared Microsoft Graph token file path.Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect SharePoint & OneDrive (TUI, CLI & MCP) yet
SharePoint & OneDrive (TUI, CLI & MCP) runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect SharePoint & OneDrive (TUI, CLI & MCP)
Works with Claude Code, with some setup first
You need a SharePoint & OneDrive (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time)
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server SharePoint & OneDrive (TUI, CLI & MCP) for Claude Code on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by 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) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SHAREPOINT_ACCESS_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the SharePoint & OneDrive (TUI, CLI & MCP) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
docker --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: docker --version
Install once; it works for everything that needs Docker
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
Mac: press Command+Space and type Terminal · Windows: open 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.2Replace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
You should see SharePoint & OneDrive (TUI, CLI & MCP) listed as connected
Use SharePoint & OneDrive (TUI, CLI & MCP) and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using SharePoint & OneDrive (TUI, CLI & MCP) or shows a SharePoint & OneDrive (TUI, CLI & MCP) tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
TEAMS_TOKEN_FILE Optional shared Microsoft Graph token file path.Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a SharePoint & OneDrive (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time)
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server SharePoint & OneDrive (TUI, CLI & MCP) for Cursor on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by 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) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SHAREPOINT_ACCESS_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the SharePoint & OneDrive (TUI, CLI & MCP) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
docker --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: docker --version
Install once; it works for everything that needs Docker
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
In the SharePoint & OneDrive (TUI, CLI & MCP) settings, SHAREPOINT_ACCESS_TOKEN is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use SharePoint & OneDrive (TUI, CLI & MCP) and tell me what you can do for me, then show me one thing✓ If Cursor says it is using SharePoint & OneDrive (TUI, CLI & MCP) or shows a SharePoint & OneDrive (TUI, CLI & MCP) tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
TEAMS_TOKEN_FILE Optional shared Microsoft Graph token file path.Descriptions are as written by the maker.
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a SharePoint & OneDrive (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time)
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server SharePoint & OneDrive (TUI, CLI & MCP) for VS Code on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by 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) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For SHAREPOINT_ACCESS_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the SharePoint & OneDrive (TUI, CLI & MCP) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
docker --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number: docker --version
Install once; it works for everything that needs Docker
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
In the SharePoint & OneDrive (TUI, CLI & MCP) settings, SHAREPOINT_ACCESS_TOKEN is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use SharePoint & OneDrive (TUI, CLI & MCP) and tell me what you can do for me, then show me one thing✓ If VS Code says it is using SharePoint & OneDrive (TUI, CLI & MCP) or shows a SharePoint & OneDrive (TUI, CLI & MCP) tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
TEAMS_TOKEN_FILE Optional shared Microsoft Graph token file path.Descriptions are as written by the maker.
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
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 secret required envTEAMS_TOKEN_FILE envDescriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
io.github.BiteFoundry/sharepointoci: ghcr.io/bitefoundry/sharepoint:0.4.2Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 26, 2026
The registry name was verified with the GitHub account BiteFoundry, which owns the repo
Code last changed yesterday
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Not checked: only npm and PyPI packages with a version can be checked
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/bitefoundry-sharepoint)Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: SHAREPOINT_ACCESS_TOKEN
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed yesterday, and the latest version (0.4.2) reached the registry 2 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Docker on your computer.
In the same category: Puter MCP, XcodeBuildMCP, Vexa, Atlassian Rovo MCP Server, MR Office
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
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.
Atlassian’s official server lets AI search and manage Jira work and Confluence pages. Connects to Atlassian’s cloud with OAuth sign-in.
Create, open and edit documents, spreadsheets and PDFs in MR Office's editor, inline in chat.
| This one SharePoint & OneDrive (TUI, CLI & MCP) | Puter MCP | XcodeBuildMCP | Vexa | Atlassian Rovo MCP Server | MR Office | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Runs in the cloud, nothing to install | Installs on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Cloud or install on your computer |
| Needs a key | Yes | No | No | Yes | No | No |
| Add with + in Claude | No | No | No | No | Yes | No |
| Basic checks | 3/3 | 4/4 | 3/3 | 2/4 | 4/4 | 5/5 |
| License | MIT | AGPL-3.0 | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
@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.