Guides
MCP
grep or read whole files straight from disk, and nothing works offline. If your agent runs on a machine where it can use the sharedoc CLI and a synced folder (Claude Code, or any agent with a shell), use that. MCP is for where the CLI can't go: Claude in claude.ai or Cowork, whose sandbox can't reach share-doc and starts fresh each task.share-doc is an MCP server. Add https://sharedoc.brightmotion.io/mcp as a connector and Claude can list, read, write, comment, post and search in your workspaces, with no CLI installed. You sign in once, and the connection stays with your Claude account.
claude.ai, Claude Desktop and Cowork#
- Open Settings → Connectors and choose Add custom connector.
- Name it share-doc and paste
https://sharedoc.brightmotion.io/mcpas the URL. Leave the OAuth fields empty. - Choose Connect. A share-doc page opens: tick the workspaces Claude may use, pick read or write, and choose Connect.
On a Team or Enterprise plan an owner adds the connector once; each member then connects their own share-doc account.
Claude Code#
claude mcp add --transport http sharedoc https://sharedoc.brightmotion.io/mcpThen run /mcp in Claude Code and choose Authenticate. For CI and headless runs, pass a CLI token instead of signing in (mint one under Settings → CLI access):
claude mcp add --transport http sharedoc https://sharedoc.brightmotion.io/mcp --header "Authorization: Bearer sdcli_…"What a connection may do#
- It is you, in the workspaces you ticked. Every call runs with your permissions, as the CLI's do. A read connection never sees a tool that writes; reconnect with write ticked to change that.
- Deleting asks twice. Claude asks you before the delete tool runs, and the tool itself only says what it would do until it is called again with
confirm: true. - Its writes say so. A doc edit, a comment or a post reads you · via Claude (opus-5.5), and the doc's history marks it as made through MCP.
- You can see and end it. Each connection is listed under Settings → CLI access (and in
sharedoc tokens list), with when it was last used. Revoke it there.
Usage data: the consent page asks whether to share which tools are used and whether they worked. Never the names, paths or text in a call.
Tools#
One tool per area; an action argument names the CLI command, spelled as the CLI spells it (files_get { action: "files history", project, path }). Each command's arguments and output are the ones in the CLI reference.
| Tool | Kind | Actions |
|---|---|---|
whoamiWho am I | read | whoami · tokens list · status · schema |
workspaces_getRead workspaces and projects | read | workspaces list · workspaces show · projects list · projects show · statuses list |
people_getRead members and access | read | members list · invites list · invite links · invite copy · access list · access shared |
files_catRead a file | read | files cat |
files_getList files and history | read | files list · files links · files history · files diff · files url · files backlinks |
docs_findFind docs by property | read | docs list · docs query |
searchSearch | read | search |
threads_getRead threads | read | threads list · thread show |
chat_getRead channels | read | channels list · channel history · channel invites · huddles list |
drafts_getRead drafts | read | drafts list · draft show · draft set show |
activityRead activity | read | events tail · unread |
slack_getRead Slack connections | read | slack list · slack status · slack people · slack file |
sync_getRead sync connections | read | sync endpoints · devices list |
files_putWrite a file | write | files put |
files_editEdit a doc | write | Replace exact text in a markdown doc: old_string must match once (or pass replace_all). The hub merges it into concurrent edits. |
files_updateUpdate files | write | files status · files assign · files mv · files reopen |
workspaces_updateManage workspaces and projects | write | projects create · projects rename · projects visibility · workspaces rename · workspaces icon · statuses add · statuses rm · statuses mv · statuses edit · statuses inherit |
people_updateManage members and access | write | members add · members invite · members role · invites resend · invite link · access set · access invite · status set · status clear |
thread_createStart a thread | write | thread create |
thread_replyReply in a thread | write | thread reply |
threads_updateUpdate threads | write | thread relabel · thread resolve · thread reopen · thread follow · thread unfollow · thread edit · react |
channel_postPost a message | write | channel post · dm |
channels_updateManage channels | write | channels create · channels add · channels join · channels leave · channel share · channel accept · channel approve |
drafts_updateWrite drafts | write | draft create · draft edit · draft variant add |
notifications_updateUpdate notifications | write | unread read · unread ack · notify prefs |
slack_updateManage Slack links | write | slack links · slack dm |
sync_updateManage sync connections | write | sync pause · sync resume · sync approve · sync discard · sync undo · sync folders · folders settings · devices rename |
sharedoc_deleteDelete or archive | asks first | files archive · projects delete · workspaces delete · members remove · invites revoke · invite revoke · invite replace · access remove · thread delete · channels archive · channels delete · channel disconnect · draft delete · draft set dismiss · draft variant rm · sync disconnect · devices disconnect · slack disconnect · tokens revoke |
Limits#
- A long doc comes back in pieces: the result says which lines it holds and where to go on (
from_line). - A picture comes back as its thumbnail; other files as a link to download.
files_puttakes up to 5 MB; bigger files need the CLI.- Anything that works on a folder on your machine —
sync add,connect,share— stays in the CLI.