storage
Microsoft OneDrive MCP Integration for OpenAI Agents SDK
Connect Microsoft OneDrive to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Microsoft OneDrive to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Microsoft OneDrive MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-one_drive": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=one_drive",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=one_drive --write=deny Why Use KosmoKrator Here
Expose only Microsoft OneDrive instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Microsoft OneDrive Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Microsoft OneDrive integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__one_drive__onedrive_list_files | one_drive.onedrive_list_files | Read | 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. |
integration__one_drive__onedrive_get_file | one_drive.onedrive_get_file | Read | Get detailed metadata for a specific file or folder in OneDrive by its item ID. Returns name, size, dates, MIME type, and download URL. |
integration__one_drive__onedrive_upload_file | one_drive.onedrive_upload_file | Write | 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. |
integration__one_drive__onedrive_download_file | one_drive.onedrive_download_file | Read | 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. |
integration__one_drive__onedrive_list_shared | one_drive.onedrive_list_shared | Read | List files and folders that have been shared with the current user. Returns item names, IDs, sizes, and metadata for shared content. |
integration__one_drive__onedrive_get_current_user | one_drive.onedrive_get_current_user | Read | Get the profile of the currently authenticated Microsoft user. Returns display name, email, job title, and other profile details. |