MCPInstall
Workspace Operator logo

Workspace Operator

by Artoxem 12 stars artoxem/workspace-operator

Google Workspace automation for AI agents: 132 tools, safe bulk operations, undo.

READMEmaster

Workspace Operator

Deep automation for Google Workspace through the Model Context Protocol

Drive · Docs · Sheets · Gmail · Calendar · Tasks · Forms · Apps Script — one local MCP server with 38 consolidated tools (19 in the default core profile), staged writes and server-side tool profiles.

Python MCP Tools PyPI Antigravity License: MIT GitHub stars Downloads

English · Русский


Workspace Operator — MCP server for Google Workspace

Workspace Operator runs on your machine, talks to Google over your own OAuth client, and gives an AI agent the operations that turn "read my inbox" into "do the work and let me undo it": staged Apps Script updates, file transfer, sheet formatting, threaded replies and attachments.

38 tools · 3 resources · 3 resource templates · 7 prompts, every tool annotated with readOnlyHint / destructiveHint.

Nothing here is tied to a specific account, spreadsheet or document: every tool takes identifiers and ranges, and all examples use synthetic data.

Bulk email deletion: the plan lists the three messages and the operator presses Deny

Deleting email: the agent plans one bulk request for the three messages, the operator denies it, and nothing changes — the messages stay in the inbox.

Bulk file move: the review lists every file and the destination, the operator approves

Moving files: the review shows what goes where, the operator approves, and the job runs in the background.

Jump to: Quick start · Tool profiles · Operations · Approval in the browser · Tool catalog · Safety · Limitations

How it compares

Google Workspace MCP (remote)Workspace Operator
TransportStreamable HTTP, Google-hostedstdio + Streamable HTTP, local or Docker
AvailabilityDeveloper Previewpublic, MIT
Data pathGoogle MCP endpointyour machine, your OAuth client
Apps Script—create · read · stage · execute · cancel · restore · run function
Local files—upload, export to pdf/docx/xlsx/csv
Sheets formatting—bold, colours, number formats, widths, freeze
Gmail threadssingle messagesthreads, attachments, in-thread replies
Server-side tool profilesIAM / admin allow-listread-only / core / read-write / full + allow-deny

Official servers are the right default for "ask my mail a question". Workspace Operator is for "change the workspace and be able to roll it back".

What you get

GroupToolsHighlights
🔎 Discovery4Cross-search, Drive search, digest, table diff
📦 Bulk operations7plan → confirm → run → undo for Drive, Gmail, Docs and Sheets
📁 Drive4search, read, write, recoverable trash, permissions
📊 Sheets6values, format, structure, data, delete (confirm)
📄 Docs3read, write, replace/format (confirm)
📧 Gmail4read, write, settings, recoverable trash
📅 Calendar3read, write, delete
✅ Tasks2read, write
📝 Forms2read, write
📮 Postmaster1domains and deliverability stats
⚙️ Apps Script3read, staged writes, run (admin)

Plus 3 resources, 3 resource templates and 7 prompts — see the tool catalog.

Who it is for

Workspace Operator is a single-user server: one process, one Google account, one tool profile. "Several clients" does not mean "several users".

You haveDoes it fit?What happens
One person with several MCP clientsYesEach client can use its own bearer token (http_tokens); they share the account, profile and data
A small team on one Google accountWorks, without isolationEveryone sees the same Drive/Gmail; bulk jobs and the audit log are shared; use the read-only profile for people you do not fully trust
Several Google accountsOne instance per accountSeparate config, OAuth token, data directory and port or container per person
Public service or multi-tenant SaaSNoNo per-user authentication, quotas, job ownership or data separation

A bearer token only identifies a client in the audit log; it does not create a separate user. Anyone holding a valid token can call every exposed tool and cancel any bulk job in that instance. Read SECURITY.md before sharing an instance with other people.

Quick start

0 — Choose how to run it

You wantUseWhat it means
One desktop client (Claude Desktop, Cursor, DSH, Windsurf, Cline)stdioThe client starts the server as a child process. No port, no bearer header, no background service; the server stops when the client stops.
One server shared by several clients or agentsDocker / HTTPA long-running container on 127.0.0.1:8765. Every client connects by URL with a bearer token.
Change the codesource checkoutSame as stdio, installed from requirements.txt.

Both paths need Google OAuth once. The HTTP path additionally needs a local MCP_AUTH_TOKEN string; it is not a Google credential and has nothing to do with your Google account.

1 — Install

stdio (recommended for a single desktop client)

pip install workspace-operator-mcp
workspace-operator version

Docker / HTTP (recommended for several clients)

docker pull ghcr.io/artoxem/workspace-operator:latest

From source (development)

git clone https://github.com/Artoxem/workspace-operator.git
cd workspace-operator
python -m venv .venv && .venv\Scripts\activate    # Windows
pip install -r requirements.txt

Python 3.10 or newer. The package installs the workspace-operator command; python -m workspace_operator works from a source checkout too.

2 — Google OAuth (once)

  1. Create or pick a project in Google Cloud Console.
  2. Enable the APIs you need: Drive, Docs, Sheets, Gmail, Calendar, Apps Script, plus Tasks and Forms. Postmaster Tools is optional and only useful for domains you have verified.
  3. Configure the OAuth consent screen: External, add your account as a test user while the app is in Testing.
  4. Create an OAuth client ID of type Desktop app, then download the JSON and save it as oauth.keys.json in ~/.google/.
  5. Authorize once:
workspace-operator doctor

The first run opens a browser. Sign in, allow the scopes, and the token is saved to ~/.google/token.json.

No browser (server, SSH, Docker host)? Authorize on a machine with a browser, then copy token.json next to oauth.keys.json on the target and mount that directory read-write into the container. The server refreshes the token in place, so a read-only mount breaks it.

Changed scopes or upgraded a major version? Delete token.json and run workspace-operator doctor again. The doctor prints exactly which scopes are missing instead of failing silently.

Step by step: docs/AUTH_SETUP.md · docs/ru/AUTH_SETUP.md

3 — Configure

cp config.example.yaml config.yaml
client_secrets_file: "/home/you/.google/oauth.keys.json"
token_file: "/home/you/.google/token.json"
backup_dir: "/home/you/.google/backups"
# mcp_auth_token: prefer the MCP_AUTH_TOKEN environment variable (see below)
tool_profile: "core"            # core | full | read-write | read-only

The server looks for a config file itself: ./config.yaml (or .yml / .json), then workspace-operator/config.yaml in your OS config directory (%APPDATA%\workspace-operator\config.yaml on Windows, ~/.config/workspace-operator/config.yaml on Linux, Application Support on macOS). MCP_CONFIG_FILE or --config PATH overrides the lookup, and a file named there must exist — the server exits with a clear error instead of falling back to defaults. workspace-operator doctor prints which file was used.

On Windows use forward slashes (C:/Users/you/.google/oauth.keys.json) or double backslashes in YAML. Every key can be overridden by an environment variable; see docs/SECURITY.md.

Two different secrets, do not mix them up:

SecretWhat it isWho creates it
token.jsonGoogle OAuth token — proof that Google granted the scopesGoogle, after you click Allow in the browser
mcp_auth_tokenLocal bearer string — a gate for the MCP server (and the HTTP Authorization header)You, any random string

Over stdio mcp_auth_token is only an activation key. Over HTTP it is the real per-request bearer, so it must be random: the server refuses to start with a placeholder such as change_me or a token shorter than 24 characters.

Keep secrets out of config.yaml. Set MCP_AUTH_TOKEN as an environment variable (generate one with python -c "import secrets; print(secrets.token_urlsafe(32))"); workspace-operator doctor warns when the token sits in the config file, when secret files are readable by other users and when stale credentials (token.json.bak-*, service-account.json) are left next to the token. token.json is written atomically with owner-only permissions. If a secret may have leaked, follow docs/SECURITY.md.

4 — Connect a client

stdio client — the client launches the installed command:

{
  "mcpServers": {
    "workspace-operator": {
      "command": "workspace-operator",
      "args": ["serve"],
      "env": {
        "MCP_CONFIG_FILE": "C:/Users/you/.google/config.yaml",
        "MCP_AUTH_TOKEN": "<paste a long random string>"
      }
    }
  }
}

HTTP client — the container or workspace-operator serve --http is already running:

{
  "mcpServers": {
    "workspace-operator": {
      "url": "http://127.0.0.1:8765/mcp",
      "headers": { "Authorization": "Bearer put-a-long-random-string-here" }
    }
  }
}

Per-client file locations: docs/IDE_SETUP.md · docs/ru/IDE_SETUP.md. Antigravity has its own walkthrough: antigravity/README.md.

If the client cannot start the command, check workspace-operator version in the same shell the client uses — IDEs often have a different PATH.

Tool profiles

A profile is a server-side allow-list: tools outside it are neither listed nor callable. It complements OAuth scopes (what Google allows) and client permissions (what the agent may do without asking).

ProfileToolsUse it for
core19everyday read/write, no formatting or destructive edits
full38formatting, destructive edits, Forms, Postmaster, Script
read-write30automation without destructive actions
read-only17exploration, demos, shared machines, untrusted agents
tool_profile: "core"
# Optional, applied on top. Deny wins over allow.
allowed_tools: ["workspace_search", "sheets_read", "read_doc", "gmail_read"]
denied_tools: ["gmail_write", "drive_write"]

Environment overrides: MCP_TOOL_PROFILE, MCP_ALLOWED_TOOLS, MCP_DENIED_TOOLS. workspace-operator serve --profile full picks a profile for one run and wins over both the config file and MCP_TOOL_PROFILE. A blocked call returns a clear explanation instead of failing silently.

Profiles are the second filter. At startup the server also hides tools whose Google OAuth scope is missing; see Scopes and tools.

See choosing a profile and the 2.0 migration guide.

Operations

python -m workspace_operator doctor     # config, token, scopes, API reachability
python -m workspace_operator doctor --offline   # same, without network probes
python -m workspace_operator tools      # catalog (--profile read-only, --json)
python -m workspace_operator serve      # stdio server
FeatureHow to use itWhat it does
Dry runMCP_DRY_RUN=1 or dry_run: trueEvery non-read-only tool returns a preview instead of executing — safe demos, safe exploration
Audit logMCP_AUDIT_LOG=~/.google/audit.jsonlOne JSON line per call: tool, profile, status, duration, argument names (never values)
RetriesMCP_RETRY_ATTEMPTS=3Transient Google API errors (429/5xx) are retried with exponential backoff
Doctorpython -m workspace_operator doctorChecks secrets, token, granted vs configured scopes and API reachability; exits 1 when a critical check fails
Scope routingMCP_SCOPE_ROUTING=1 (default)Hides tools whose Google scope is missing; 0 disables hiding for debugging
Public sharingMCP_ALLOW_PUBLIC_SHARING=0 (default)Public links stay blocked unless explicitly enabled
Approval queueworkspace-operator approvals listShows pending destructive calls; approve <id> / deny <id> releases or blocks the exact hashed call; link <id> prints the browser page link (it carries a secret the agent never sees); watch opens new requests in your browser (see below)
Upload guardMCP_UPLOAD_ROOTS=/a,/bdrive_write(action="upload") always refuses OAuth secrets, .env*, keys and ~/.google/~/.ssh; the optional allow-list restricts it to chosen folders

In dry-run the read-only tools still work, so an agent can explore data while every write is turned into an explicit preview.

Approval in the browser

Set MCP_APPROVAL_BROWSER_WAIT=45 on the server and run workspace-operator approvals watch on the machine where the page should open — outside the container, with access to the same approval queue. A destructive call then waits for your decision, and each new request opens in your default browser: Approve lets the call continue, Deny stops it, and merely opening the page is not consent. The agent never receives the link or its secret. With MCP_APPROVAL_BROWSER_WAIT=0 (the default) the call returns approval_id immediately and you decide with approvals approve or the page from approvals link.

Drive moves, uploads, file and message deletions all use bulk_plan → bulk_run, so one approval covers the whole list — a single file is just a list of one. The review page groups items by source folder, offers show all and a CSV manifest, and prints a short fingerprint of the plan, so the list you checked is the one that runs. Deleting a folder shows how many items go to Trash with it. Shared drives are opt-in with MCP_BULK_ALLOW_SHARED_DRIVES=1. See Reviewing Drive moves, uploads and deletions.

HTTP transport (localhost first)

python -m workspace_operator serve --http --port 8765

Profiles are exposed as stable paths: /mcp (config profile, default core), /mcp/read, /mcp/read-write and /mcp/full. Connect each client to the surface it needs; the list stays stable for that connection.

  • binds 127.0.0.1 by default — not reachable from the network;
  • every request needs Authorization: Bearer <mcp_auth_token>; extra per-client tokens can be listed under http_tokens in config.yaml, and the audit log records the token name as client;
  • DNS-rebinding protection is on: only expected Host headers pass, browser origins are denied unless explicitly allowed;
  • GET /healthz is unauthenticated and returns only version and transport info;
  • binding a non-loopback address requires both --allow-network and --insecure; loopback names accept any host port (containers, proxies), anything else needs an explicit --allow-host, so network exposure is always deliberate;
  • refuses to start over HTTP with a placeholder or short (<24 chars) token;
  • the browser approval page needs a per-approval secret and rejects cross-origin POSTs (see docs/APPROVALS.md).

Docker

The container speaks HTTP. It cannot open a browser, so authorize Google on the host first:

pip install workspace-operator-mcp   # or use a source checkout
workspace-operator doctor           # browser -> ~/.google/token.json

Then use Compose (recommended) or a single docker run.

Compose

cp .env.example .env                # set MCP_AUTH_TOKEN and GOOGLE_DIR
docker compose up -d
curl http://127.0.0.1:8765/healthz

docker-compose.yml mounts config.docker.yaml, the Google folder read-write, and ./data for the audit log and bulk jobs. The image itself binds 127.0.0.1; Compose adds --allow-network --insecure and publishes the port on the host loopback only. With a plain docker run, append --http --host 0.0.0.0 --allow-network --insecure to the command and keep the -p 127.0.0.1:8765:8765 mapping (otherwise the container is exposed without TLS). Uploads inside the container are limited to /home/app/data/upload. The shipped config.docker.yaml keeps the conservative core profile (20 tools); put MCP_TOOL_PROFILE=full (or read-write, read-only) in .env to change the exposed surface without editing the tracked config — Compose passes the variable through.

docker run — Linux/macOS

docker run -d --name workspace-operator --restart unless-stopped \
  -p 127.0.0.1:8765:8765 \
  -v "$HOME/.google:/home/app/.google" \
  -v "$PWD/config.docker.yaml:/app/config.yaml:ro" \
  -v "$PWD/data:/home/app/data" \
  -e MCP_AUTH_TOKEN="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')" \
  ghcr.io/artoxem/workspace-operator:latest \
  --http --host 0.0.0.0 --port 8765 --allow-network --insecure

docker run — Windows PowerShell

$token = python -c "import secrets; print(secrets.token_urlsafe(32))"
docker run -d --name workspace-operator --restart unless-stopped `
  -p 127.0.0.1:8765:8765 `
  -v "${env:USERPROFILE}\.google:/home/app/.google" `
  -v "${PWD}\config.docker.yaml:/app/config.yaml:ro" `
  -v "${PWD}\data:/home/app/data" `
  -e MCP_AUTH_TOKEN=$token `
  ghcr.io/artoxem/workspace-operator:latest `
  --http --host 0.0.0.0 --port 8765 --allow-network --insecure

Point the HTTP client at http://127.0.0.1:8765/mcp with Authorization: Bearer <token>. The Google folder is mounted read-write on purpose: the server refreshes token.json in place.

Healthy container and the public health endpoint

docker compose ps reports healthy and /healthz returns the running version.

stdio clients that only speak stdio can still use the image — the entrypoint takes the same arguments as the CLI:

docker run -i --rm \
  -v "$HOME/.google:/home/app/.google" \
  --entrypoint python \
  ghcr.io/artoxem/workspace-operator:latest -m workspace_operator serve

Something not working? See docs/TROUBLESHOOTING.md.

Tool catalog

39 consolidated tools. The default core profile exposes 20; full adds formatting, destructive edits, Forms, Postmaster and Script actions.

Call a consolidated tool with an action, for example drive_read(action="metadata", file_id=...) or sheets_write(action="append", spreadsheet_id=..., range=..., values=...).

ToolSafetyActionsWhat it does
workspace_searchread-Search Drive, Gmail and Calendar in one call.
drive_searchread-Search Drive with full query syntax (replaces find_files and drive_search_advanced).
digestread-Summarise Gmail, Calendar and Drive for the last N hours.
compare_tablesread-Diff two sheet ranges by a key column.
drive_readreadmetadata, export, list_permissionsRead Drive metadata, permissions and exported files.
drive_writewritecreate_folder, copy, rename, upload, share, restoreCreate, copy, rename, upload, share and restore Drive files; upload needs approval. Use bulk_plan and bulk_run for moves.
drive_permissionsdestructiveremove, revoke_publicRemove access from a Drive file.
read_docread-Read the contents of a Google Doc.
docs_writewritecreate, append, insert_imageCreate and extend Google Docs.
docs_editdestructivereplace, formatReplace or format text in a Google Doc, with a preview.
sheets_readreadmeta, read, export_csvRead sheet metadata, values and CSV exports.
sheets_writewritecreate_spreadsheet, add_sheet, update, append, clear, find_replaceCreate spreadsheets and write values.
sheets_formatwriteformat, borders, conditional, validation, protectFormat ranges, borders, conditional rules, validation and protection.
sheets_structurewriteinsert_rows, insert_columns, merge, sort, named_range, filter_viewInsert, merge, sort and organise sheet ranges.
sheets_deletedestructivedelete_rows, delete_columns, delete_sheetDelete rows, columns or a sheet (requires confirm).
sheets_datawritechart, pivotCharts and pivot tables.
gmail_readreadprofile, list, read, thread, attachment, search, labels, filtersRead Gmail messages, threads, attachments, labels and filters.
gmail_writewritesend, reply, send_with_attachments, draft_create, draft_update, draft_send, draft_listSend, reply and draft Gmail messages. Archive through bulk_plan.
gmail_settingswritelabel_create, label_apply, filter_createManage Gmail labels and filters.
gmail_deletedestructivedraftDelete a draft. Messages go through bulk_plan → bulk_run.
calendar_readreadevents, calendarsRead events and calendars.
calendar_writewritemeeting, update, move, respond, colorCreate, update, move, answer and colour events.
calendar_deletedestructive-Delete an event (requires confirm).
tasks_readreadlists, listRead task lists and tasks.
tasks_writewritecreate, completeCreate and complete tasks.
forms_readreadget, responsesRead forms and responses.
forms_writewritecreate, add_questionsCreate forms and add questions.
postmaster_readreaddomains, trafficRead Postmaster domains and traffic statistics.
script_readreadcontent, deploymentsRead Apps Script content and deployments.
script_writewritecreate_project, prepare, execute, cancel, restore, create_deployment, update_deploymentPrepare, execute, restore and deploy Apps Script changes.
script_rundestructive-Run an Apps Script API function (arbitrary code; confirm required).
bulk_planread-Resolve a selector into a dry-run bulk plan.
bulk_rundestructive-Execute a reviewed bulk plan as a background job.
bulk_statusread-Read progress for a bulk job.
bulk_resultread-Read one page of bulk job results.
bulk_listread-List recent bulk jobs.
bulk_cancelwrite-Request cancellation of a running bulk job.
bulk_undodestructive-Undo a completed bulk rename or trash job.

Resources

URIAttaches
gdrive://recent20 most recently modified Drive files
gmail://inboxRecent unread inbox messages
gcalendar://upcomingEvents for the next 7 days
gdrive://file/{file_id}Metadata for one file
gsheets://{spreadsheet_id}/{range}A sheet range as a table
gdocs://{document_id}Full document text, tables included

Prompts

PromptWhat it does
summarize_inboxFetch recent mail → ready for a summary
analyze_spreadsheetRead a range → ready for analysis
plan_weekLoad calendar events → ready for planning
search_driveSearch files → ready for organisation advice
weekly_reviewLast N days of mail, files and agenda → weekly summary
inbox_triageGmail slice → urgent / waiting / informational / archive
compare_briefTwo ranges → reconciliation report

Safety by default

GuardApplies to
confirm=true + human approvaldrive_permissions, docs_edit, sheets_delete, gmail_delete, calendar_delete, calendar_delete, script_run, bulk_run, bulk_undo — a human approves the exact call: in the client's elicitation dialog when it supports one, otherwise in the CLI or on the browser page. The agent's result carries no commands and no link; it retries with the one-time approval_id. With MCP_APPROVAL_BROWSER_WAIT the call waits for the browser click instead of returning immediately
dry_run / previewbulk_plan, sheets_write.find_replace, gmail_settings.label_apply
Draft mode by defaultgmail_write.send, gmail_write.reply, gmail_write.send_with_attachments
Public sharingdisabled unless allow_public_sharing=true and allow_public=true
No permanent file deleteDrive tools only move to Trash; drive_empty_trash and drive_transfer_ownership are not exposed
Staged Apps Scriptscript_write.prepare → script_write.execute (backup first)
Scope routingtools whose Google scope is missing are hidden at startup
Tool annotationsevery tool carries readOnlyHint / destructiveHint
Profilescore (default), full, read-write, read-only + allow/deny lists

⚠️ An agent can reach everything your OAuth token can. Use read-only scopes and the read-only profile for sensitive accounts — docs/SECURITY.md.

How it works

server.py                    builds the MCP server and registers the request handlers
workspace_operator/
├─ toolset/                  typed catalog, action router, scope/profile surface
│  ├─ models.py              ToolSpec / ActionSpec / Safety / Surface
│  ├─ catalog.py             39 consolidated tools and action → handler map
│  ├─ surface.py             profile + scope filtering
│  ├─ routing.py             action validation and confirm gate
│  └─ scopes.py              granted Google scopes from the token file
├─ definitions/              tool and prompt definitions as data: one JSON per domain,
│                            order.json (the order of tools/list), prompts.json
├─ tool_router.py            tools/call pipeline: resolve → validate → dry-run → approve → run
├─ prompts.py                prompt messages built from live Gmail/Calendar/Drive/Sheets data
├─ resources.py              read-only resources (Drive, Gmail, Calendar, Sheets, Docs)
├─ dispatch.py               routing table: handler name → function + argument mapping
├─ profiles.py               core / full / read-write / read-only
├─ config.py                 config file + environment overrides
├─ auth.py                   OAuth 2.0 credentials; token refresh under a file lock
├─ secure_files.py           owner-only atomic writes, file lock, protected paths
├─ approvals.py              human approval queue (per-approval secret, one-time ids)
├─ http_transport.py         Streamable HTTP: bearer auth, DNS-rebinding guard, approval pages
├─ bulk/                     plan → job engine: selector, store, run/cancel/undo
├─ text.py                   entity/whitespace normalisation, timestamps, error hints
├─ operations.py             staged-operation store for Apps Script
├─ security.py               token and email checks
├─ runtime.py                retries, audit log, dry-run helpers
├─ cli.py                    doctor / tools / approvals / serve
└─ handlers/                 Google API implementations used by the catalog
tests/                       unit, surface and in-memory MCP checks
antigravity/                 ready-to-paste mcp_config.json
skills/google-workspace/     Agent Skill: when to use which tool

Design rules:

  • the catalog is the single source of truth for names, actions, scopes and docs;
  • every action maps to exactly one handler and is validated before dispatch;
  • tool schemas (definitions/*.json) and the handler table (dispatch.py) are data; tests/test_definitions.py and tests/test_handler_dispatch.py pin what clients see and what each of the 104 handlers receives, including defaults;
  • the call path, prompts and resources are pinned branch by branch (tests/test_call_tool_branches.py, tests/test_resources_prompts.py) against snapshots taken before they were split out of server.py;
  • destructive actions require a human approval_id (and are still confirm-gated);
  • no tool permanently deletes a Drive file; Trash is the boundary;
  • server-side profiles and scope routing keep the exposed surface small.

Adding a tool or action

A handler is reachable through four places that must agree; the tests tell you which one you forgot:

  1. the handler function in workspace_operator/handlers/ (add it to handlers/__init__.py);
  2. its schema in workspace_operator/definitions/<domain>.json (name, description, input_schema, safety: read / write / destructive) and its name in order.json;
  3. its route in workspace_operator/dispatch.py (P("key", default=...) per argument) and the import in server.py;
  4. its action in workspace_operator/toolset/catalog.py (scopes, confirm), then the tool tables in README.md, README.ru.md and docs/TOOLS_REFERENCE.md (en/ru).

Regenerate the golden snapshots only for an intentional change: UPDATE_GOLDEN=1 python -m pytest tests/test_handler_dispatch.py. JSON files must be listed in [tool.setuptools.package-data] (already covered for definitions/), or the wheel ships without them.

Testing

pip install -e ".[dev]"
python -m pytest                       # 533 unit and in-memory MCP tests (coverage via --cov)
python -m ruff check workspace_operator tests
python -m mypy

The suite covers the catalog, action router, profiles, scope filtering, HTTP security decisions, approvals, file/secret safety, handlers and documentation sync. GitHub Actions (.github/workflows/ci.yml) runs pytest on Linux and Windows (Python 3.10, 3.12, 3.13), ruff, mypy, bandit and a dependency audit; the PyPI and Docker publish workflows depend on it. Live Google calls are not part of CI; use /mcp/full with a test document when you want a manual smoke.

Documentation

🇬🇧 English

DocumentDescription
AUTH_SETUP.mdGoogle OAuth setup, step by step
TOOLS_REFERENCE.mdEvery tool, resource and prompt
SECURITY.mdScopes, profiles, safety model
IDE_SETUP.mdAntigravity, Cursor, Windsurf, VS Code
TROUBLESHOOTING.mdSymptom → cause → fix, including Docker
PROFILES.mdChoosing core/full/read-only
MIGRATION_2.0.md1.x → 2.0 mapping
APPROVALS.mdHuman approval flow for destructive calls
LEARN.mdHow this server was built
VERSIONS.mdVersion history and release summary

🇷🇺 На русском

ДокументОписание
AUTH_SETUP.mdПошаговая настройка OAuth
TOOLS_REFERENCE.mdСправочник инструментов
SECURITY.mdСкоупы, профили, модель безопасности
IDE_SETUP.mdAntigravity, Cursor, Windsurf, VS Code
TROUBLESHOOTING.mdСимптом → причина → решение
PROFILES.mdВыбор core/full/read-only
MIGRATION_2.0.mdПереход с 1.x на 2.0
VERSIONS.mdИстория версий и сводка релизов

Limitations

Knowing the edges is part of the contract:

  • Drive: deleting means "move to Trash"; there is no permanent-delete or ownership-transfer tool.
  • Sheets: tabs, rows, columns, merges, sorting, pivot tables, validation, protection and borders are handled; charts cover the basic types.
  • Docs: text styling works on matched text; no template-fill tool is exposed.
  • Slides and Drive comments were removed in 2.0; see the migration guide.
  • One account per server: a single OAuth token, no multi-tenant mode.

Roadmap

  • Cross-product search, tool profiles
  • Files, Apps Script execution
  • Sheet formatting
  • Gmail threads, attachments, replies
  • Calendar update/delete/respond
  • digest and compare_tables
  • Optional HTTP transport (Streamable HTTP, stateless, localhost-first)
  • 2.0 consolidated surface, scope routing, core profile

Responsibility

You are responsible for what the agent does with your account. Read docs/SECURITY.md, start with read-only, keep backups on.


MIT licensed · built on the MCP Python SDK

More Productivity & Workflow MCP servers

Similar servers from the same category.

Integrates with monday.com API to enable direct access to boards, workflows, and data for automating tasks and managing resources without context switching.

Productivity & Workflow
Activepieces logo

Activepieces

activepieces

Dynamic server to which you can add apps (Google Calendar, Notion, etc) or advanced Activepieces Flows (Refund logic, a research and enrichment logic, etc).

search
Time logo

Time

modelcontextprotocol

Time and timezone conversion capabilities

timeconversion

Interact with Microsoft Word.

word