Sasha MCP reference

Synced folders: folders copied from GitHub

This is the synced-folders section of the usage guide. Call getDocs with { "section": "synced-folders" } to read it on an instance.

An admin can connect a folder of a GitHub repository to a project in the Sasha web interface (Settings → Shared Drives). Sasha copies its documents into a folder of that project and syncs it every day. A synced folder is read-only: change its documents in GitHub, never in Sasha. You read its documents with the knowledge tools like any others.

  • listProjects gives a project that holds synced folders a syncedFolders list: folder (the folder name in the project), source (owner/repo@branch or owner/repo@branch:path) and lastSynced (UTC, or null if it never synced).
  • syncFolder syncs one folder now, as Check now does on its card, and waits until the sync ends. Send project (the project's id: its folder name) and folder (the synced folder's name). It returns folder, source, commit (the GitHub commit now in Sasha), lastSynced and error: null after a good sync, else { code, message } for the last failed attempt, for example GITHUB_TOKEN_INVALID. A failed sync keeps the last good copy, so commit and lastSynced then describe that copy.

syncFolder needs synced-folders:sync. Only an admin holds it, and it is not part of a default grant: an admin's chat in the Sasha web interface has it, and another client has it only when it asks for it by name. An unknown project or folder is refused with Not found. No tool adds a synced folder or sets its GitHub token: a token typed in chat would stay in the conversation. An admin does both in the Sasha web interface.

Built with BernardCookie settings