How lionello/onedrive-cli works
onedrive-cli is a Node.js command-line client for personal OneDrive, with OAuth login, filesystem-like drive operations, album and sharing features, and a read-only MCP server. The README documents these user-facing capabilities and token handoff; the only indexed source excerpt is package metadata, so command internals and most call relationships cannot be verified. Capability nodes therefore point to the known CLI entry file without implying unobserved internal call chains.
Main entry points: onedrive Command interface · oauthcallbackhandler.html OAuth callback page
Components 14
CLI and authentication
- Command interface
bin/onedrive - OAuth login
bin/onedrive - OAuth callback page
docs/oauthcallbackhandler.html - Access token
Drive operations
- File operations
bin/onedrive - Search and find
bin/onedrive - Storage usage
bin/onedrive
Albums and sharing
- Photo albums
bin/onedrive - Sharing controls
bin/onedrive
MCP access
- MCP server
bin/onedrive - Browse tools
bin/onedrive
Other components
- CLI user
- OneDrive
- MCP client
Connections 18
- CLI user → Command interface: runs commands
README.md - Command interface → OAuth login: dispatches login
README.md - OAuth login → OAuth callback page: hands off token
README.md - OAuth login → Access token: stores token
README.md - Command interface → File operations: dispatches commands
README.md - Command interface → Search and find: dispatches commands
README.md - Command interface → Storage usage: dispatches df
README.md - Command interface → Photo albums: dispatches album
README.md - Command interface → Sharing controls: dispatches commands
README.md - MCP client → MCP server: connects over stdio
README.md - Command interface → MCP server: starts mcp
README.md - MCP server → Browse tools: exposes tools
README.md - Browse tools → OneDrive: reads drive
README.md - File operations → OneDrive: operates on
- Search and find → OneDrive: searches
- Storage usage → OneDrive: reports quota
- Photo albums → OneDrive: manages bundles
- Sharing controls → OneDrive: changes sharing