### Install google-workspace-mcp globally Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/README.md Installs the package globally so you can point the MCP client directly at the binary instead of using npx. ```bash npm install -g @aaronsb/google-workspace-mcp ``` -------------------------------- ### drive.apps.list (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists a user's installed apps. For more information, see Return user info. ```APIDOC ## GET drive.apps.list ### Description Lists a user's installed apps. For more information, see Return user info. ### Method GET ### Endpoint drive.apps.list ``` -------------------------------- ### drive.changes.getStartPageToken (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the starting pageToken for listing future changes. For more information, see Retrieve changes. ```APIDOC ## GET drive.changes.getStartPageToken ### Description Gets the starting pageToken for listing future changes. For more information, see Retrieve changes. ### Method GET ### Endpoint drive.changes.getStartPageToken ``` -------------------------------- ### GET spaces.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets details about a meeting space. For more information, see Manage meeting spaces. For an example, see Get a meeting space. ```APIDOC ## GET spaces.get ### Description Gets details about a meeting space. For more information, see Manage meeting spaces. For an example, see Get a meeting space. ### Method GET ### Endpoint spaces.get ``` -------------------------------- ### drive.approvals.start (POST) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Starts an approval on a file. For more information, see Manage approvals. ```APIDOC ## [POST] drive.approvals.start ### Description Starts an approval on a file. For more information, see Manage approvals. ### Method POST ### Endpoint drive.approvals.start ``` -------------------------------- ### Build local .mcpb bundle Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/release-runbook.md Builds the .mcpb bundle for every platform using make mcpb. Requires the mcpb CLI installed via npm install -g @anthropic-ai/mcpb. Publishing to the mcpb registry is a separate manual step; CI only handles GitHub Release artifacts. ```bash make mcpb # the bundle — one, for every platform ``` -------------------------------- ### Coverage report: What do we cover? Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/core/ADR-100-build-time-coverage-analysis-of-gws-cli-surface.md Example terminal output from the coverage analysis tool showing overall and per-service coverage counts and percentages. ```text Coverage: 62/147 operations (42%) gmail: 12/23 operations (52%) calendar: 8/14 operations (57%) drive: 11/19 operations (58%) sheets: 5/12 operations (42%) ... ``` -------------------------------- ### batch mode example for manage_contacts delete Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/api/ADR-308-rename-queue-operations-to-bulk-operations-with-queue-and-batch-modes.md Example of batch mode: one tool, one operation, many items, one HTTP request. Cannot thread $N references between items. ```plaintext bulk_operations { mode: 'batch', tool: 'manage_contacts', operation: 'delete', items: [ {contactId: 'people/c1'}, {contactId: 'people/c2'} ] } ``` -------------------------------- ### Example per-service manifest file (sheets.yaml) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/api/ADR-304-split-manifest-yaml-into-per-service-files.md Each file contains only that service's definition as the YAML root, without an enclosing services: key. The filename minus .yaml is the service key. ```yaml # src/factory/manifest/sheets.yaml tool_name: manage_sheets description: "Read, write, and manage Google Sheets spreadsheets." requires_email: true gws_service: sheets operations: get: type: detail ... ``` -------------------------------- ### GET conferenceRecords.recordings.list Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists the recording resources from the conference record. By default, ordered by start time and in ascending order. For more information, see Work with artifacts. ```APIDOC ## GET conferenceRecords.recordings.list ### Description Lists the recording resources from the conference record. By default, ordered by start time and in ascending order. For more information, see Work with artifacts. ### Method GET ### Endpoint conferenceRecords.recordings.list ``` -------------------------------- ### users.messages.get (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the specified message. ```APIDOC ## GET users.messages.get ### Description Gets the specified message. ### Method GET ### Endpoint users.messages.get ``` -------------------------------- ### GET users.settings.forwardingAddresses.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the specified forwarding address. ```APIDOC ## [GET] users.settings.forwardingAddresses.get ### Description Gets the specified forwarding address. ### Method GET ### Endpoint users.settings.forwardingAddresses.get ``` -------------------------------- ### GET users.settings.filters.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets a filter. For more information, see Manage Gmail filters. ```APIDOC ## [GET] users.settings.filters.get ### Description Gets a filter. For more information, see Manage Gmail filters. ### Method GET ### Endpoint users.settings.filters.get ``` -------------------------------- ### drive.apps.get (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets a specific app. For more information, see Return user info. ```APIDOC ## GET drive.apps.get ### Description Gets a specific app. For more information, see Return user info. ### Method GET ### Endpoint drive.apps.get ``` -------------------------------- ### Use tools with account email Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/README.md Example invocations for the manage_email, manage_calendar, and manage_drive tools after authentication. Each uses the account email to perform a specific operation. ```text manage_email { "operation": "triage", "email": "you@gmail.com" } manage_calendar { "operation": "agenda", "email": "you@gmail.com" } manage_drive { "operation": "search", "email": "you@gmail.com", "query": "quarterly report" } ``` -------------------------------- ### Coverage report: New operations since baseline Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/core/ADR-100-build-time-coverage-analysis-of-gws-cli-surface.md Example terminal output showing newly added gws operations not yet covered, with operation names and descriptions. ```text New since last baseline: + drive.files.generateIds (action) — Generate file IDs for upload + sheets.spreadsheets.getByDataFilter (detail) — Get filtered spreadsheet data + chat.spaces.messages.create (action) — Send a Chat message ``` -------------------------------- ### GET users.settings.sendAs.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection. ```APIDOC ## GET users.settings.sendAs.get ### Description Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection. ### Method GET ### Endpoint users.settings.sendAs.get ``` -------------------------------- ### drive.accessproposals.list (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists the access proposals on a file. Only approvers are able to list access proposals; otherwise a 403 error is returned. ```APIDOC ## GET drive.accessproposals.list ### Description List the access proposals on a file. For more information, see Manage pending access proposals. Note: Only approvers are able to list access proposals on a file. If the user isn't an approver, a 403 error is returned. ### Method GET ### Endpoint drive.accessproposals.list ``` -------------------------------- ### GET tasks.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Returns the specified task. ```APIDOC ## GET tasks.get ### Description Returns the specified task. ### Method GET ### Endpoint tasks.get ``` -------------------------------- ### Default safety policy template (safety-policy.yaml) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/auth/ADR-203-safety-policy-file-enforced-at-the-google-client.md Default template written on first start when configDir()/safety-policy.yaml is missing. It reproduces today's behavior: no presets, no method rules, unclassified writes allowed, and account widening allowed. Delete the file to regenerate the default on next start. ```yaml # google-workspace-mcp safety policy. Delete this file to regenerate the default. version: 1 presets: [] # draft-only-email, no-delete, read-only, audit methods: {} # "service.method glob" or class (send, reach, write): allow | block unclassified: allow # block: writes no rule names fail closed accounts: widen: allow # block: refuse authenticate/scopes asking for readwrite ``` -------------------------------- ### files.listLabels (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists the labels on a file. For more information, see List labels on a file. ```APIDOC ## [GET] files.listLabels ### Description Lists the labels on a file. For more information, see List labels on a file. ### Method GET ### Endpoint files.listLabels ``` -------------------------------- ### GET tasklists.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Returns the authenticated user's specified task list. ```APIDOC ## GET tasklists.get ### Description Returns the authenticated user's specified task list. ### Method GET ### Endpoint tasklists.get ``` -------------------------------- ### Coverage report: Parameter gaps in covered operations Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/core/ADR-100-build-time-coverage-analysis-of-gws-cli-surface.md Example terminal output showing parameter gaps for covered operations, including missing parameters and mismatched max values. ```text Parameter gaps in covered operations: drive.files.list: + includeLabels (string) — Comma-separated label IDs to include - pageSize: manifest max=50, schema max=1000 calendar.events.list: + sharedExtendedProperty (string) — Filter by shared extended property ``` -------------------------------- ### TypeScript union prevention example Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/design-notes/adr-103-helper-semantics.md Example of a call to 'docs' with 'documents.export' that should be a compile error when using a TypeScript union of valid resource paths. ```typescript call('docs', 'documents.export', …) // no such method ``` -------------------------------- ### Conventional commit message examples Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/CONTRIBUTING.md Examples of conventional commit messages for different change types: feat, fix, docs, test, and refactor. ```text feat: add new feature fix: resolve specific issue docs: update documentation test: add/update tests refactor: code improvements ``` -------------------------------- ### GET tasklists.list Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Returns all the authenticated user's task lists. A user can have up to 2000 lists at a time. ```APIDOC ## GET tasklists.list ### Description Returns all the authenticated user's task lists. A user can have up to 2000 lists at a time. ### Method GET ### Endpoint tasklists.list ``` -------------------------------- ### GET conferenceRecords.list Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists the conference records. By default, ordered by start time and in descending order. This endpoint is exposed as `manage_meet listConferences, activeConferences`. ```APIDOC ## GET conferenceRecords.list ### Description Lists the conference records. By default, ordered by start time and in descending order. For more information, see Work with conferences. ### Method GET ### Endpoint conferenceRecords.list ### Response #### Success Response (200) - List of conference records ``` -------------------------------- ### GET conferenceRecords.transcripts.list Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists the set of transcripts from the conference record. By default, ordered by start time and in ascending order. For more information, see Work with artifacts. ```APIDOC ## GET conferenceRecords.transcripts.list ### Description Lists the set of transcripts from the conference record. By default, ordered by start time and in ascending order. For more information, see Work with artifacts. ### Method GET ### Endpoint conferenceRecords.transcripts.list ``` -------------------------------- ### Cross-scratchpad assembly with copy_lines Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/api/ADR-301-scratchpad-buffer-for-service-agnostic-content-authoring.md Illustrates assembling content from multiple scratchpads using import, create, copy_lines, append_lines, and send. copy_lines reads from the source without modifying it, and composes with queue_operations for batch assembly. ```text import(sp-A, source: doc, docId: report) → Q3 report import(sp-B, source: email, messageId: notes) → meeting notes create(sp-C, label: "combined briefing") → empty copy_lines(sp-C, from: sp-A, lines: 1-15, afterLine: 0) append_lines(sp-C, "\n---\n\n## Discussion Notes\n") copy_lines(sp-C, from: sp-B, lines: 8-30, afterLine: 20) send(sp-C, target: email, to: execs@co.com, subject: "Q3 Briefing") send(sp-C, target: doc_create, title: "Q3 Briefing") ``` -------------------------------- ### Validate and check manifest with make manifest-lint and make check Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/coverage.md Run these commands after adding a manifest entry. `make manifest-lint` validates the manifest; `make check` runs type-check, lint, test, build, and smoke, and includes a guard that refuses write operations that can only send an empty POST. ```bash make manifest-lint # validate the manifest make check # type-check, lint, test, build, smoke ``` -------------------------------- ### GET users.sections.items.list Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists items in a section. Only spaces can be section items. ```APIDOC ## [GET] users.sections.items.list ### Description Lists items in a section. Only spaces can be section items. ### Method GET ### Endpoint users.sections.items.list ### Authentication Requires user authentication with the authorization scopes: `https://www.googleapis.com/auth/chat.users.sections`, `https://www.googleapis.com/auth/chat.users.sections.readonly` ``` -------------------------------- ### POST spaces.setup Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Creates a space and adds specified users to it. The calling user is automatically added to the space and should not be specified as a membership. Supports adding human users, Google groups, and creating direct messages. ```APIDOC ## POST spaces.setup ### Description Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see Set up a space with initial members. ### Method POST ### Endpoint spaces.setup ### Request Body - `displayName` (string) - Required - The display name of the space. If you receive the error message `ALREADY_EXISTS` when setting up a space, try a different `displayName`. - `memberships` (array) - Optional - Memberships to add to the space. The calling user is automatically added and should not be included. - `membership.member.name` (string) - Optional - To add a human user, use `users/{user}`, where `{user}` can be the email address, the People API ID, or the Directory API ID. For example, `users/user@example.com` or `users/123456789`. - `membership.group_member.name` (string) - Optional - To add a Google group, use `groups/{group}`, where `{group}` is the ID from the Cloud Identity Groups API. For example, `groups/123456789`. Group email is not supported. - `singleUserBotDm` (boolean) - Optional - Set to `true` to create a DM between the calling user and the calling app. Do not specify any memberships when using this. ### Notes - For a named space or group chat, if the caller blocks, or is blocked by some members, or doesn't have permission to add some members, then those members aren't added to the created space. - To create a DM between the calling user and another human user, specify exactly one membership. If one user blocks the other, the request fails and the DM isn't created. - If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. - Spaces with threaded replies aren't supported. ``` -------------------------------- ### GET conferenceRecords.smartNotes.list Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists the set of smart notes from the conference record. By default, ordered by start time and in ascending order. For more information, see Work with artifacts. ```APIDOC ## GET conferenceRecords.smartNotes.list ### Description Lists the set of smart notes from the conference record. By default, ordered by start time and in ascending order. For more information, see Work with artifacts. ### Method GET ### Endpoint conferenceRecords.smartNotes.list ``` -------------------------------- ### gws token injection and spawn in src/executor/gws.ts Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/core/ADR-103-generate-a-google-api-descriptor-retire-the-gws-facade.md Shows the entire contract with the gws CLI: get an access token, inject it into the environment, and spawn gws with JSON output. This is the only integration point with the CLI. ```TypeScript const accessToken = await getAccessToken(account); // ours env.GOOGLE_WORKSPACE_CLI_TOKEN = accessToken; // we inject it spawn(gws, [...args, '--format', 'json']); // gws does HTTP, returns JSON ``` -------------------------------- ### GET spaces.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Returns details about a space. Supports app and user authentication with various authorization scopes, and user authentication can grant administrator privileges under certain conditions. ```APIDOC ## GET spaces.get ### Description Returns details about a space. For an example, see Get details about a space. ### Method GET ### Endpoint spaces.get ### Authentication Supports the following types of authentication: - App authentication with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.bot` - `https://www.googleapis.com/auth/chat.app.spaces` with administrator approval - User authentication with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces` - User authentication grants administrator privileges when an administrator account authenticates, `use_admin_access` is `true`, and one of the following authorization scopes is used: - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - `https://www.googleapis.com/auth/chat.admin.spaces` ### Limitations App authentication has the following limitations: - `space.access_settings` is only populated when using the `chat.app.spaces` scope. - `space.predefind_permission_settings` and `space.permission_settings` are only populated when using the `chat.app.spaces` scope, and only for spaces the app created. ``` -------------------------------- ### Build and test with Docker Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/CONTRIBUTING.md Builds the development Docker image and runs tests inside a container. The container mounts the current directory to /app and executes npm test. ```bash # Build the development image docker build -t google-workspace-mcp:local . # Run tests in container docker run -i --rm \ -v $(pwd):/app \ google-workspace-mcp:local \ npm test ``` -------------------------------- ### permissions.list (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists a file's or shared drive's permissions. For more information, see Share files, folders, and drives. ```APIDOC ## GET permissions.list ### Description Lists a file's or shared drive's permissions. For more information, see Share files, folders, and drives. ### Method GET ### Endpoint permissions.list ``` -------------------------------- ### events.quickAdd (POST) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Creates an event based on a simple text string. ```APIDOC ## POST events.quickAdd ### Description Creates an event based on a simple text string. ### Method POST ### Endpoint events.quickAdd ``` -------------------------------- ### users.messages.attachments.get (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the specified message attachment. ```APIDOC ## GET users.messages.attachments.get ### Description Gets the specified message attachment. ### Method GET ### Endpoint users.messages.attachments.get ``` -------------------------------- ### Try candidate as a user Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/release-runbook.md Run the candidate package from npm using the rc dist-tag. ```bash npx @aaronsb/google-workspace-mcp@rc ``` -------------------------------- ### documents.get (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the latest version of the specified document. ```APIDOC ## [GET] documents.get ### Description Gets the latest version of the specified document. ### Method GET ### Endpoint documents.get ``` -------------------------------- ### GET users.settings.sendAs.list Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists the send-as aliases for the specified account. The result includes the primary send-as address associated with the account as well as any custom "from" aliases. ```APIDOC ## GET users.settings.sendAs.list ### Description Lists the send-as aliases for the specified account. The result includes the primary send-as address associated with the account as well as any custom "from" aliases. ### Method GET ### Endpoint users.settings.sendAs.list ``` -------------------------------- ### Promote candidate to release Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/release-runbook.md Builds the release on the candidate's commit. Refuses if local main differs from origin, candidate tag not on origin, final version already released, or hotfix released after candidate. ```bash make promote ``` -------------------------------- ### bulk_operations batch call for Gmail trash Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/README.md Example of the bulk_operations call that batches identical operations (here, trashing multiple Gmail messages) into a single Google request. Works only where Google publishes a batch method — currently contacts (create, update, delete, get) and Gmail (trash, label changes). For other operations, the server names the operations that can be batched and points back to sequential mode. ```text bulk_operations { mode: 'batch', tool: 'manage_email', operation: 'trash', items: ['msg1', 'msg2', 'msg3', … ] } ``` -------------------------------- ### Verify CI runs Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/release-runbook.md Check that both the .mcpb build and publish workflows are running and green. ```bash gh run list --limit 3 # both the .mcpb build and the publish should be running gh run watch ``` -------------------------------- ### GET users.threads.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the specified thread. For more information, see Manage threads. ```APIDOC ## GET users.threads.get ### Description Gets the specified thread. For more information, see Manage threads. ### Method GET ### Endpoint users.threads.get ``` -------------------------------- ### Build the development Docker image Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/CONTRIBUTING.md Builds the development Docker image for the Google Workspace MCP project. ```bash docker build -t google-workspace-mcp:local . ``` -------------------------------- ### TypeScript: Tool Registration Loop Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/api/ADR-300-service-tool-factory-with-manifest-driven-generation.md Startup registration loop that reads the manifest, applies optional patches, generates schema and handler, and registers each tool. The factory produces functional tools for any gws service with zero custom code. ```typescript for (const [service, config] of Object.entries(manifest.services)) { const patch = patches[service]; // optional const schema = generateSchema(config); const handler = generateHandler(config, patch); registerTool(schema, handler); } ``` -------------------------------- ### GET users.labels.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the specified label. For more information, see Manage labels. ```APIDOC ## GET users.labels.get ### Description Gets the specified label. For more information, see Manage labels. ### Method GET ### Endpoint users.labels.get ``` -------------------------------- ### Create local config directory Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/CONTRIBUTING.md Creates a local configuration directory for the MCP server. ```bash mkdir -p ~/.mcp/google-workspace-mcp ``` -------------------------------- ### drive.approvals.get (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets an approval by ID. For more information, see Manage approvals. ```APIDOC ## GET drive.approvals.get ### Description Gets an approval by ID. For more information, see Manage approvals. ### Method GET ### Endpoint drive.approvals.get ``` -------------------------------- ### POST tasklists.insert Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Creates a new task list and adds it to the authenticated user's task lists. A user can have up to 2000 lists at a time. ```APIDOC ## POST tasklists.insert ### Description Creates a new task list and adds it to the authenticated user's task lists. A user can have up to 2000 lists at a time. ### Method POST ### Endpoint tasklists.insert ``` -------------------------------- ### GET conferenceRecords.transcripts.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets a transcript by transcript ID. For more information, see Work with artifacts. ```APIDOC ## GET conferenceRecords.transcripts.get ### Description Gets a transcript by transcript ID. For more information, see Work with artifacts. ### Method GET ### Endpoint conferenceRecords.transcripts.get ``` -------------------------------- ### GET conferenceRecords.recordings.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets a recording by recording ID. For more information, see Work with artifacts. ```APIDOC ## GET conferenceRecords.recordings.get ### Description Gets a recording by recording ID. For more information, see Work with artifacts. ### Method GET ### Endpoint conferenceRecords.recordings.get ``` -------------------------------- ### bulk_operations tool signature with mode Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/api/ADR-308-rename-queue-operations-to-bulk-operations-with-queue-and-batch-modes.md Shows the new tool name and mode parameter. The mode defaults to 'queue' so existing calls behave unchanged. ```plaintext bulk_operations { mode: 'queue' | 'batch', ... } ``` -------------------------------- ### drives.list Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists the user's shared drives. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the Search for shared drives guide. ```APIDOC ## GET drives.list ### Description Lists the user's shared drives. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the Search for shared drives guide. ### Method GET ### Endpoint drives.list ``` -------------------------------- ### Queue operations with scratchpad send and discard Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/api/ADR-301-scratchpad-buffer-for-service-agnostic-content-authoring.md Shows how scratchpad operations are regular tool calls that work with queue_operations. The $N.field result-reference syntax works across scratchpad operations. ```json { "tool": "queue_operations", "operations": [ { "tool": "manage_scratchpad", "operation": "send", "scratchpadId": "sp-abc123", "target": "email", "targetParams": { "email": "me@co.com", "to": "team-a@co.com", "subject": "Update" }}, { "tool": "manage_scratchpad", "operation": "send", "scratchpadId": "sp-abc123", "target": "email", "targetParams": { "email": "me@co.com", "to": "team-b@co.com", "subject": "Update" }}, { "tool": "manage_scratchpad", "operation": "discard", "scratchpadId": "sp-abc123" } ] } ``` -------------------------------- ### gmail.users.settings.getLanguage (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets language settings. For more information, see Manage language settings. ```APIDOC ## [GET] gmail.users.settings.getLanguage ### Description Gets language settings. For more information, see Manage language settings. ### Method GET ### Endpoint gmail.users.settings.getLanguage ``` -------------------------------- ### replies.get (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets a reply by ID. For more information, see Manage comments and replies. ```APIDOC ## GET replies.get ### Description Gets a reply by ID. For more information, see Manage comments and replies. ### Method GET ### Endpoint replies.get ``` -------------------------------- ### people.getBatchGet (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified. ```APIDOC ## GET people.getBatchGet ### Description Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified. ### Method GET ### Endpoint people.getBatchGet ### Parameters #### Query Parameters - resourceNames (array of strings) - Required - The list of resource names of the people to provide information about. - personFields (string) - Required - The fields to return. If not specified, a 400 error is returned. ### Response #### Success Response (200) - responses (array) - List of person resources. #### Error Response (400) - error (object) - Returned if 'personFields' is not specified. ``` -------------------------------- ### File Structure: Factory and Services Layout Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/api/ADR-300-service-tool-factory-with-manifest-driven-generation.md Directory layout for the factory, service patches, and server components. Shows where manifest, generator, types, defaults, and per-service patches reside. The server loads factory output plus accounts and queue. ```text src/ factory/ manifest.yaml # Service registry generator.ts # Schema + handler generation types.ts # ServiceConfig, ServicePatch, hook types defaults.ts # Default formatting, next-steps services/ gmail/ patch.ts # Email-specific hooks hydration.ts # Search result hydration calendar/ patch.ts # Calendar-specific hooks drive/ patch.ts # Drive-specific hooks server/ handler.ts # Loads factory output + accounts + queue tools.ts # Generated at startup, not hand-coded ``` -------------------------------- ### GET conferenceRecords.transcripts.entries.list Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. For more information, see Work with artifacts. Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when 1) we have interleaved speakers within milliseconds, or 2) the Google Docs transcript file is modified after generation. ```APIDOC ## GET conferenceRecords.transcripts.entries.list ### Description Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. For more information, see Work with artifacts. Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when 1) we have interleaved speakers within milliseconds, or 2) the Google Docs transcript file is modified after generation. ### Method GET ### Endpoint conferenceRecords.transcripts.entries.list ``` -------------------------------- ### Cut a release candidate with make release-rc Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/release-runbook.md First candidate of a series uses BUMP=minor; later candidates omit BUMP. Refuses off main, with uncommitted changes, or behind origin/main. ```bash make release-rc BUMP=minor # first candidate of a series: 4.8.0 → 4.9.0-rc.0 make release-rc # each later candidate: 4.9.0-rc.0 → 4.9.0-rc.1 ``` -------------------------------- ### Suggested watchdog using process.ppid Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/core/ADR-104-exit-when-the-mcp-client-goes-away.md The issue report's suggested watchdog is subtly broken because process.ppid is a live getter; after reparenting it reads as init/systemd, which is always alive, so the kill check never fails. The original ppid must be captured at startup. ```javascript setInterval(() => { try { process.kill(process.ppid, 0); } catch { process.exit(0); } }, 5000) ``` -------------------------------- ### GET conferenceRecords.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets a conference record by conference ID. This endpoint is exposed as `manage_meet getConference`. ```APIDOC ## GET conferenceRecords.get ### Description Gets a conference record by conference ID. For more information, see Work with conferences. ### Method GET ### Endpoint conferenceRecords.get ### Response #### Success Response (200) - Conference record details ``` -------------------------------- ### permissions.get (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets a permission by ID. For more information, see Share files, folders, and drives. ```APIDOC ## GET permissions.get ### Description Gets a permission by ID. For more information, see Share files, folders, and drives. ### Method GET ### Endpoint permissions.get ``` -------------------------------- ### spreadsheets.create (POST) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Creates a spreadsheet, returning the newly created spreadsheet. ```APIDOC ## [POST] spreadsheets.create ### Description Creates a spreadsheet, returning the newly created spreadsheet. ### Method POST ### Endpoint spreadsheets.create ``` -------------------------------- ### Directory structure for per-service manifest files Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/api/ADR-304-split-manifest-yaml-into-per-service-files.md Replaces the single src/factory/manifest.yaml with a directory of per-service YAML files. Each file is named after the service key. ```text src/factory/manifest/ gmail.yaml calendar.yaml drive.yaml sheets.yaml docs.yaml tasks.yaml meet.yaml ``` -------------------------------- ### GET conferenceRecords.smartNotes.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets smart notes by smart note ID. For more information, see Work with artifacts. ```APIDOC ## GET conferenceRecords.smartNotes.get ### Description Gets smart notes by smart note ID. For more information, see Work with artifacts. ### Method GET ### Endpoint conferenceRecords.smartNotes.get ``` -------------------------------- ### gmail.users.settings.getAutoForwarding (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the auto-forwarding setting for the specified account. For more information, see Manage email forwarding. ```APIDOC ## [GET] gmail.users.settings.getAutoForwarding ### Description Gets the auto-forwarding setting for the specified account. For more information, see Manage email forwarding. ### Method GET ### Endpoint gmail.users.settings.getAutoForwarding ``` -------------------------------- ### Authenticate an account with manage_accounts Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/README.md Opens a browser for OAuth to add an account. Run this before using any other tools. ```text manage_accounts { "operation": "authenticate" } ``` -------------------------------- ### GET chat.users.spaces.spaceNotificationSetting.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the space notification setting. Requires user authentication with the authorization scope: https://www.googleapis.com/auth/chat.users.spacesettings. ```APIDOC ## [GET] chat.users.spaces.spaceNotificationSetting.get ### Description Gets the space notification setting. For an example, see Get the caller's space notification setting. Requires user authentication with the authorization scope: `https://www.googleapis.com/auth/chat.users.spacesettings`. ### Method GET ### Endpoint chat.users.spaces.spaceNotificationSetting.get ### Authentication Requires user authentication with the authorization scope: `https://www.googleapis.com/auth/chat.users.spacesettings` ``` -------------------------------- ### Run container with source code mounted Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/CONTRIBUTING.md Runs the container with the source code directory mounted for local development. ```bash docker run -i --rm \ -p 8080:8080 \ -v ~/.mcp/google-workspace-mcp:/app/config \ -v $(pwd)/src:/app/src \ -e GOOGLE_CLIENT_ID=your_client_id \ -e GOOGLE_CLIENT_SECRET=your_client_secret \ -e LOG_MODE=strict \ google-workspace-mcp:local ``` -------------------------------- ### GET users.settings.getVacation Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets vacation responder settings. For more information, see Manage vacation settings with the Gmail API. ```APIDOC ## [GET] users.settings.getVacation ### Description Gets vacation responder settings. For more information, see Manage vacation settings with the Gmail API. ### Method GET ### Endpoint users.settings.getVacation ``` -------------------------------- ### gmail.users.settings.getImap (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets IMAP settings. For more information, see Configure POP and IMAP settings with the Gmail API. ```APIDOC ## [GET] gmail.users.settings.getImap ### Description Gets IMAP settings. For more information, see Configure POP and IMAP settings with the Gmail API. ### Method GET ### Endpoint gmail.users.settings.getImap ``` -------------------------------- ### teamdrives.create (POST) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Deprecated: Use `drives.create` instead. ```APIDOC ## POST teamdrives.create ### Description Deprecated: Use `drives.create` instead. ### Method POST ### Endpoint teamdrives.create ``` -------------------------------- ### drive.revisions.get (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets a revision's metadata or content by ID. For more information, see Manage file revisions. ```APIDOC ## GET drive.revisions.get ### Description Gets a revision's metadata or content by ID. For more information, see Manage file revisions. ### Method GET ### Endpoint drive.revisions.get ``` -------------------------------- ### contactGroups.get (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Get a specific contact group owned by the authenticated user by specifying a contact group resource name. ```APIDOC ## [GET] contactGroups.get ### Description Get a specific contact group owned by the authenticated user by specifying a contact group resource name. ### Method GET ### Endpoint contactGroups.get ``` -------------------------------- ### POST spaces.messagePins.create Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Creates a message pin in a space. Requires user authentication with specific authorization scopes. ```APIDOC ## POST spaces.messagePins.create ### Description Creates a message pin. ### Method POST ### Endpoint spaces.messagePins.create ### Authentication Requires user authentication with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.pins` - `https://www.googleapis.com/auth/chat.spaces` ``` -------------------------------- ### Check main branch Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/release-runbook.md Run before cutting a candidate. Ensures main is up to date and all tests pass; coverage is advisory. ```bash git checkout main && git pull make check # types + all tests must pass make coverage # review API coverage gaps (advisory, non-blocking) ``` -------------------------------- ### GET users.settings.getPop Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets POP settings for the user. For more information, see Configure POP and IMAP settings with the Gmail API. ```APIDOC ## [GET] users.settings.getPop ### Description Gets POP settings. For more information, see Configure POP and IMAP settings with the Gmail API. ### Method GET ### Endpoint users.settings.getPop ``` -------------------------------- ### contactGroups.batchGet (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names. ```APIDOC ## [GET] contactGroups.batchGet ### Description Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names. ### Method GET ### Endpoint contactGroups.batchGet ``` -------------------------------- ### media.download Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Downloads media. Download is supported on the URI `/v1/media/{+name}?alt=media`. ```APIDOC ## GET media.download ### Description Downloads media. Download is supported on the URI `/v1/media/{+name}?alt=media`. ### Method GET ### Endpoint media.download ``` -------------------------------- ### GET users.getProfile Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the current user's Gmail profile. This endpoint is part of the Gmail API and is exposed for direct use. ```APIDOC ## GET users.getProfile ### Description Gets the current user's Gmail profile. ### Method GET ### Endpoint users.getProfile ``` -------------------------------- ### drive.files.list (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Lists the user's files. This method accepts the `q` parameter for search queries and returns all files by default, including trashed files. Use the `trashed=false` query parameter to exclude trashed files from the results. ```APIDOC ## [GET] drive.files.list ### Description Lists the user's files. This method accepts the `q` parameter for search queries and returns all files by default, including trashed files. Use the `trashed=false` query parameter to exclude trashed files from the results. ### Method GET ### Endpoint drive.files.list ### Parameters #### Query Parameters - **q** (string) - Optional - Search query combining one or more search terms. - **trashed** (boolean) - Optional - Set to `false` to exclude trashed files from the results. ### Response #### Success Response (200) - List of files ``` -------------------------------- ### GET users.settings.sendAs.smimeInfo.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the specified S/MIME config for the specified send-as alias. For more information, see Manage S/MIME certificates with the Gmail API. ```APIDOC ## [GET] users.settings.sendAs.smimeInfo.get ### Description Gets the specified S/MIME config for the specified send-as alias. For more information, see Manage S/MIME certificates with the Gmail API. ### Method GET ### Endpoint users.settings.sendAs.smimeInfo.get ``` -------------------------------- ### POST users.settings.cse.keypairs.create Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user. For administrators, requests require authorization with a service account that has domain-wide delegation authority to impersonate users with the gmail.settings.basic scope. For users managing their own identities, requests require hardware key encryption turned on and configured. ```APIDOC ## [POST] users.settings.cse.keypairs.create ### Description Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user. For administrators managing identities and keypairs for users in their organization, requests require authorization with a service account that has domain-wide delegation authority to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require hardware key encryption turned on and configured. ### Method POST ### Endpoint users.settings.cse.keypairs.create ``` -------------------------------- ### manage_scratchpad - Import and Attachment Operations Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/architecture/api/ADR-301-scratchpad-buffer-for-service-agnostic-content-authoring.md Operations to load content from GWS resources and attach files to scratchpads. Attachments are stored in a side-table with reference markers. ```APIDOC ## manage_scratchpad - Import and Attachment Operations ### Description Operations to load content from GWS resources and attach files to scratchpads. Attachments are stored in a side-table with reference markers. ### Operations #### import - **Parameters**: `scratchpadId`, `source`, `sourceParams` - **Effect**: Load content from a GWS resource. Sets format. #### attach - **Parameters**: `scratchpadId`, `source` (`workspace`|`drive`), `filename` (workspace) or `fileId` + `email` (drive), `afterLine?` - **Effect**: Add file to side-table, insert reference marker. A Drive file is downloaded into the workspace first, so every attachment's `location` is a contained workspace path and the file ID only ever reaches the Drive API. #### detach - **Parameters**: `scratchpadId`, `refId` - **Effect**: Remove from side-table. Marker line left for agent to remove. ``` -------------------------------- ### operations.get (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. ```APIDOC ## [GET] operations.get ### Description Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. ### Method GET ### Endpoint operations.get ``` -------------------------------- ### Build-time flow: Google Discovery documents to descriptor.json Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/how-it-works.md Mermaid flowchart showing the build-time pipeline: Google Discovery documents feed a descriptor generator, producing a committed descriptor.json with 257 methods, and a CI drift gate regenerates and compares to prevent drift. ```mermaid flowchart LR disco["Google Discovery
documents"] --> gen["descriptor generator
generate-descriptor.mjs"] gen --> desc[("src/google/descriptor.json
257 methods · committed
paths · verbs · params · scopes")] desc --> gate{{"CI drift gate
regenerate and compare"}} classDef external fill:#f6821f,color:#1a1a1a,stroke:#d97706 classDef process fill:#2d7d9a,color:#ffffff,stroke:#4a5568 classDef artifact fill:#2d8e5e,color:#ffffff,stroke:#4a5568 classDef guard fill:#fbbf24,color:#1a1a1a,stroke:#d97706 class disco external class gen process class desc artifact class gate guard ``` -------------------------------- ### Reproduced failure: unrecognized subcommand '+export' Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/design-notes/adr-103-helper-semantics.md Output from running manage_scratchpad import source=doc against the shipped v3.0.0 server, showing the error 'unrecognized subcommand '+export'' and exit code 3. ```text manage_scratchpad import source=doc -> Import failed: error: unrecognized subcommand '+export' ``` -------------------------------- ### GET users.settings.delegates.get Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Gets the specified delegate. A delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority. ```APIDOC ## [GET] users.settings.delegates.get ### Description Gets the specified delegate. For more information, see Manage delegates. A delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority. ### Method GET ### Endpoint users.settings.delegates.get ``` -------------------------------- ### POST spaces.create Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Creates a space. For more information, see Manage meeting spaces. ```APIDOC ## POST spaces.create ### Description Creates a space. For more information, see Manage meeting spaces. ### Method POST ### Endpoint spaces.create ``` -------------------------------- ### Run container with Google API credentials Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/CONTRIBUTING.md Runs the container with Google API credentials. The port mapping -p 8080:8080 is required for OAuth callback handling. ```bash docker run -i --rm \ -p 8080:8080 \ -v ~/.mcp/google-workspace-mcp:/app/config \ -e GOOGLE_CLIENT_ID=your_client_id \ -e GOOGLE_CLIENT_SECRET=your_client_secret \ -e LOG_MODE=strict \ google-workspace-mcp:local ``` -------------------------------- ### events.list (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Returns events on the specified calendar. ```APIDOC ## GET events.list ### Description Returns events on the specified calendar. ### Method GET ### Endpoint events.list ``` -------------------------------- ### events.instances (GET) Source: https://github.com/aaronsb/google-workspace-mcp/blob/main/docs/api-surface.md Returns instances of the specified recurring event. ```APIDOC ## GET events.instances ### Description Returns instances of the specified recurring event. ### Method GET ### Endpoint events.instances ```