KosmoKrator

storage

Microsoft OneDrive MCP, CLI, and Lua Integration for AI Agents

Microsoft OneDrive integration docs for AI agents: MCP gateway setup, Microsoft OneDrive CLI commands, Lua API reference, credentials, and function schemas.

6 functions 5 read 1 write Bearer token auth

Microsoft OneDrive for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
one_drive
route_slug
one-drive
package
one-drive
auth_strategy
bearer_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Microsoft OneDrive MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Microsoft OneDrive.

Microsoft OneDrive CLI Matrix

Use these pages for direct Microsoft OneDrive CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
one_drive.onedrive_list_files Read read 2 List files and folders in the root of the user's OneDrive. Returns item names, IDs, sizes, and metadata. Use the item ID with onedrive_get_file or onedrive_download_file for details or content.
one_drive.onedrive_get_file Read read 1 Get detailed metadata for a specific file or folder in OneDrive by its item ID. Returns name, size, dates, MIME type, and download URL.
one_drive.onedrive_upload_file Write write 3 Upload a file to OneDrive. Specify the destination path and file content. Creates the file if it does not exist, or replaces it if it does. Supports files up to 4 MB via the simple upload API.
one_drive.onedrive_download_file Read read 1 Download a file's content from OneDrive by its drive item ID. Returns the raw file content. Use onedrive_list_files or onedrive_get_file to find the item ID.
one_drive.onedrive_list_shared Read read 2 List files and folders that have been shared with the current user. Returns item names, IDs, sizes, and metadata for shared content.
one_drive.onedrive_get_current_user Read read 0 Get the profile of the currently authenticated Microsoft user. Returns display name, email, job title, and other profile details.