v0.5.0 — sharing you can actually see and revoke
Changed
Breaking:
unshare_docnow requiresexpectRole. A call passing onlydocumentIdandlist_permissionsfirst and echo the role back.
unshare_docnow requiresexpectRole. Revoking access is the one operation in the surface with no undo — verified live, a Drive revision carries no permission data at all, so version history restores content and never sharing. Echo back the rolelist_permissionsreported and the call proceeds only if the grant is still that; otherwise nothing is removed. An optionalexpectTitlerefuses a wrong document id as well.
Fixed
- Two tool descriptions pointed at tools that do not exist.
set_styletold callers to runinspect_style, which was renamedget_style;list_suggestionspointed atapply_suggestion, whose singular form was deleted. Both sent the model somewhere there was nothing. A test now reads the descriptions and fails on any name that is not a registered tool (#45). set_styleandedit_docdid not say which to use. Since 0.3.0 both can style existing text, butedit_docrequires restating the whole run, and retyping is how text gets silently dropped. Each now names the other and says when it is the wrong choice (#45).- A domain or group grant could be seen but never revoked.
unshare_docmatched on email, and a domain or anyone-with-link grant has none — so the domain-wide grant every doc gets under a Workspace was permanent as far as the tool surface was concerned. It now also accepts apermissionIdfromlist_permissions, which covers every grant type, echoes back what it removed, refuses the owner, and lists what is present when nothing matches (#41). list_permissionscould not name a domain or link grant. It never asked Drive fordomainorallowFileDiscovery, so a domain-wide grant came back with a null email and no way to tell which domain it covered — rendering asnull:reader. Every entry now carries asubjectnaming its audience (alice@x.com,x.com (domain),anyone with the link), and domain/link grants report whether the file is discoverable in search rather than only reachable by link (#42).
Install: npx -y @dasasian/gdocs-mcp · npm · docs
Full diff: v0.4.0...v0.5.0