gws-mcp

v0.3.1
gws-mcp Checked 15 hours ago Published 5 months ago

MCP server wrapping the local `gws` (Google Workspace) CLI, so sandboxed agents (Claude Cowork, etc.) can use Google Workspace through your host-side OAuth…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gws_list_services List Google Workspace services

List the Google Workspace services exposed by this MCP server. Respects the host's allowlist (GWS_MCP_ALLOWED_SERVICES).

gws_help Show gws CLI help

Run `gws [args...] --help` to discover services, resources, and methods. Pass an empty array for the top-level help.

ParameterTypeDescription
argsarrayUp to 4 positional args, e.g. ['drive'] or ['drive','files']

gws_schema Inspect method schema

Get the JSON schema for `service.resource.method` (e.g. `drive.files.list`, `gmail.users.messages.send`). Use this BEFORE calling `gws_call` to learn parameter and body shapes.

ParameterTypeDescription
target *stringDotted path: service.resource[.subresource].method
resolveRefsbooleanInline $ref references into a single schema

gws_call Invoke a Google Workspace API

Generic dispatcher to the host's `gws` CLI. Always call `gws_schema` first to learn the exact param/body shape.

ParameterTypeDescription
method *stringMethod name, e.g. list, get, create, update, send, delete
resource *stringResource on the service, e.g. files, spreadsheets, users
service *stringService name, e.g. drive, sheets, gmail, calendar, docs
apiVersionstringOverride API version (e.g. v2, v3)
dryRunbooleanValidate the request locally and print what would be sent without hitting Google. Use this to debug body/param shapes safely.
formatstringOutput format (default json)
jsonRequest body for POST/PATCH/PUT methods. Pass a JSON object/array (preferred) — do NOT pre-stringify it; the server will JSON.stringify exactly once. A raw JSON string is accepted as a fallback (and…
outputstringHOST path to write binary response (e.g. for drive.files.get with alt=media)
pageAllbooleanAuto-paginate, one JSON line per page (NDJSON)
pageDelayMsintegerDelay between pages in ms
pageLimitintegerMax pages when pageAll=true
paramsURL/query parameters. Pass a JSON object (preferred) — do NOT pre-stringify it. A JSON-encoded string is also accepted as a fallback.
subResourcestringOptional sub-resource (e.g. 'messages' for gmail users messages)
uploadstringAbsolute path on the HOST to a file to upload as multipart media. Sandbox paths will NOT work — write the file to a host-shared location first.
uploadContentTypestringMIME type of the upload

gws_list_skills List Google Workspace skills

List field-tested skill guides (loaded from the host's ~/.agents/skills/gws-*). Each entry has name, description, and the related `gws ... --help` command. Call `gws_get_skill` to read the full guide.

gws_get_skill Read a Google Workspace skill guide

Return the full markdown body of a skill loaded from ~/.agents/skills/<name>/SKILL.md. Use this to get concrete examples, param shapes, and safety notes for a specific workflow.

ParameterTypeDescription
name *stringSkill name as shown by `gws_list_skills`, e.g. `gws-drive`, `gws-sheets`