MCP ExplorerExplorer

Gas Clasp Mcp

@HikaruEgashiraon 22 days ago
1 MIT
FreeCommunity
AI Systems
Apps Script for Agents

Overview

What is Gas Clasp Mcp

gas-clasp-mcp is a Model Context Protocol (MCP) server designed for integrating with Google Clasp, which is a command-line tool for Google Apps Script development.

Use cases

Use cases for gas-clasp-mcp include setting up Google Apps Script projects, managing deployments in different environments, automating script execution, and facilitating collaboration among developers working on Google Apps Script.

How to use

To use gas-clasp-mcp, configure it in your MCP settings by specifying the command and arguments for either Deno or Docker as shown in the configuration examples. You can then utilize the available tools like clasp_setup and clasp_logout to manage your Google Apps Script projects.

Key features

Key features of gas-clasp-mcp include environment configuration for development and production, tools for setting up and logging out of Google accounts, and the ability to manage Google Apps Script projects through the command-line interface.

Where to use

gas-clasp-mcp is primarily used in software development environments where Google Apps Script is utilized, particularly in projects that require automation or integration with Google services.

Content

Logo

GAS Clasp MCP

Google Apps Scriptを管理するMCPサーバーです

設定方法

  1. Denoをインストールします(https://docs.deno.com/runtime/getting_started/installation/
    を参照)。
  2. MCPの設定ファイルに以下を追加してください:
{
  "mcpServers": {
    "gas-clasp": {
      "command": "deno",
      "args": [
        "run",
        "--allow-read=.",
        "--allow-run",
        "--allow-env",
        "--allow-net",
        "jsr:@hikae/gas-clasp-mcp/mcp.ts"
      ],
      "env": {
        "WORKSPACE_DIR": "/Users/xxx/workspace"
      },
      "disabled": false,
      "alwaysAllow": [],
      "autoApprove": []
    }
  }
}

環境設定(env)

デプロイは、以下の環境を指定して実行できます:

  • development: 開発環境
  • production: 本番環境
    • 重要:
      本番環境へのデプロイは、mainブランチにpushが完了した後に実行可能になります。

利用可能なツール

  1. clasp_setup:
    clasp環境のセットアップ(claspのインストール、ログイン)を行います。
  2. clasp_create: 新しいGoogle Apps Scriptプロジェクトを作成します。
  3. clasp_clone: 既存のGoogle Apps Scriptプロジェクトをクローンします。
  4. clasp_pull:
    リモートの変更をローカルプロジェクトに取得します。指定した環境に応じて自動的に.clasp.jsonを切り替えます。
  5. clasp_push_and_deploy:
    ローカルの変更をプッシュし、必要に応じてデプロイします。指定した環境に応じて自動的に.clasp.jsonを切り替えます。
  6. clasp_list: アカウントに紐づくGoogle Apps
    Scriptプロジェクトの一覧を表示します。

Tools

No tools

Comments