プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Workspace Operator

作者:Artoxemバージョン 2.1.2i★ 12iパソコンで動く公式サイト ↗
レジストリ名io.github.Artoxem/workspace-operator

インストール方法

What it does

Google Workspace automation for AI agents: 39 tools, human-approved deletes, bulk undo.

  • Connects パソコンで動く
  • Account or key No key needed
  • Category その他

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気25/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア37/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

Workspace Operator をインストールして。https://mcp.popnx.com/i/artoxem-workspace-operator.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月17日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server Workspace Operator を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "workspace-operator": { "command": "uvx", "args": [ "workspace-operator-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Workspace Operator のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "workspace-operator": {
          "command": "uvx",
          "args": [
            "workspace-operator-mcp"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    Workspace Operator を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Workspace Operator を使っていると言うか、回答に Workspace Operator のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ Workspace Operator につなげません

Workspace Operator はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · Workspace Operator につなげるアプリを使う

  • 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)

B · その他 の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server Workspace Operator を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user workspace-operator -- uvx workspace-operator-mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Workspace Operator のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user workspace-operator -- uvx workspace-operator-mcp
  4. Claude Code で /mcp と入力

    Workspace Operator が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    Workspace Operator を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Workspace Operator を使っていると言うか、回答に Workspace Operator のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server Workspace Operator を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "workspace-operator": { "command": "uvx", "args": [ "workspace-operator-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Workspace Operator のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    Workspace Operator を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Workspace Operator を使っていると言うか、回答に Workspace Operator のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server Workspace Operator を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "workspace-operator": { "type": "stdio", "command": "uvx", "args": [ "workspace-operator-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Workspace Operator のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    Workspace Operator を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Workspace Operator を使っていると言うか、回答に Workspace Operator のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?Workspace Operator を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user workspace-operator -- uvx workspace-operator-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "workspace-operator": {
      "command": "uvx",
      "args": [
        "workspace-operator-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "workspace-operator": {
      "command": "uvx",
      "args": [
        "workspace-operator-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "workspace-operator": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "workspace-operator-mcp"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
807/週
接続方法
パソコンで動く
最新バージョンi
2.1.2
カテゴリi
その他
レジストリ公開日i
2026年11月17日
コードの最終更新i
2026年11月18日
作者
Artoxem
パッケージ
pypi: workspace-operator-mcp
ウェブサイト
pypi.org
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月19日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント Artoxem で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:昨日

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

まだ確認していません

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/artoxem-workspace-operator.svg)](https://mcp.popnx.com/en/servers/artoxem-workspace-operator)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

その他のほかのサーバーとの比較i

  • このカテゴリのほかの20749件のうち96%よりスターが多い
  • このカテゴリのほかの20749件のうち93%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの20749件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Workspace Operatorは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は昨日、最新バージョン(2.1.2)がレジストリに届いたのは一昨日です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

作者:koala73広く使われている★ 9.1万3 日前更新

クラウドで動く✓ 提供元 · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

作者:openstatusHQ広く使われている★ 92742 か月前更新

クラウドで動く✓ 提供元 · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

作者:JanDeDobbeleer広く使われている★ 2.4万 リポジトリ全体のスター30 日前更新

クラウドで動く✓ 提供元 · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

作者:Klavis-AI成長中★ 582414 か月前更新

クラウドで動くリポジトリはアーカイブ済み✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

作者:jitsucom広く使われている★ 51364 か月前更新

クラウドで動く✓ 提供元 · jitsu.com
似たものと比べる
これ
Workspace Operator
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえいいえいいえいいえ
基本チェック3/34/44/44/41/44/4
ライセンスMITAGPL-3.0AGPL-3.0MITApache-2.0MIT
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

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 39 tools, staged writes and server-side tool profiles.

English · Русский


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.

39 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.

*Find the last message, read it, then move it to Trash. The message stays recoverable for 30 days.*

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, download, export to pdf/docx/xlsx/pptx
Sheets formatting—bold, colours, number formats, widths, freeze
Gmail threadssingle messagesthreads, attachments, in-thread replies
Server-side tool profilesIAM / admin allow-listread-only / 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:1.22.1

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: "put-a-long-random-string-here" tool_profile: "core" # core | full | read-write | read-only

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

mcp_auth_token is not network security by itself; it is an activation key and a per-request bearer for the HTTP transport.

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": "put-a-long-random-string-here" } } } }

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
core20everyday read/write, no formatting or destructive edits
full39formatting, 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. A blocked call returns a clear explanation instead of failing silently.

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

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

冒頭だけを表示しています。続きはリポジトリで読めます