Gemini CLI Extension for GAS Development Kit

I created a Gemini CLI extension as a GAS Development Kit. For this, I developed the CLI of gas-fakes.

Repository

https://github.com/tanaikech/gas-development-kit-extension

Installation

1. Install Gemini CLI

First, install the Gemini CLI using npm:

npm install -g @google/gemini-cli

Next, you will need to authorize the CLI. Follow the instructions provided in the official documentation.

2. Install Clasp

Even when Clasp is not installed, when gas-fakes is installed, you can run Google Apps Script in a sandbox using gas-fakes.

Install Clasp, the command-line tool for Google Apps Script:

npm install -g @google/clasp

Authorize Clasp by following the instructions in the official GitHub repository.

Clasp can now be used as an MCP server. While you can configure it directly in your settings.json, the Gemini CLI extension in this guide handles this for you.

3. Install gas-fakes

Install gas-fakes, the command-line tool for executing Google Apps Script:

npm install -g @mcpher/gas-fakes

For authorization instructions, see the Getting Started guide.

4. Install gas-development-kit-extension

Install the Gemini CLI extension for the GAS Development Kit:

gemini extensions install https://github.com/tanaikech/gas-development-kit-extension

This Gemini CLI extension doesn’t include the scripts for the Clasp and gas-fakes MCP servers because both tools have already implemented them. This makes the extension’s installation lightweight.

For managing Google Workspace, you can also install the ToolsForMCPServer-extension.

 Share!