Introducing "dev-gas-extension," a Gemini CLI extension designed to supercharge your Google Apps Script (GAS) development. This tool streamlines your entire workflow by integrating GAS with VSCode. It allows you to generate, test, and deploy scripts using natural language prompts within a unified environment. A key feature is the "fake sandbox," which provides a secure local environment for safely testing AI-generated code before deployment. With custom commands to automate tasks like creating, cloning, and updating projects, this extension significantly enhances efficiency and productivity for GAS developers.
First, install the Gemini CLI using npm:
npm install -g @google/gemini-cliNext, you will need to authorize the CLI. Follow the instructions provided in the official documentation.
Install Clasp, the command-line tool for Google Apps Script:
npm install -g @google/claspAuthorize Clasp by following the instructions on 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 will handle this for you.
The gas-fakes package is required for local testing and should be installed in your working directory.
1. Create a working directory
makedir sample
cd sampleIn this article, this working directory is used.
2. Install gas-fakes
npm install @mcpher/gas-fakes3. Authorization
You can see how to authorize at https://github.com/brucemcpherson/gas-fakes/blob/main/GETTING_STARTED.md.
Install the Gemini CLI extension for GAS development:
gemini extensions install https://github.com/tanaikech/dev-gas-extensionFor managing Google Workspace as well, you can install the ToolsForMCPServer-extension.
This extension can be used both on the terminal with and without VSCode.
1. Launch Gemini CLI
Launch the Gemini CLI from the VSCode terminal:
gemini2. Verify the installed MCP servers with the following command in the Gemini CLI:
/mcp
When dev-gas-extension could be correctly installed, the following response can be seen.
Configured MCP servers:
🟢 gas-fakes-mcp (from dev-gas-extension) - Ready (1 tool)
Tools:
- run_gas_with_gas-fakes
🟢 clasp (from dev-gas-extension) - Ready (5 tools)
Tools:
- clone_project
- create_project
- list_projects
- pull_files
- push_files
🟢 workspace-developer (from dev-gas-extension) - Ready (2 tools)
Tools:
- fetch_workspace_docs
- search_workspace_docs
The workspace-developer tool is from the Use Large Language Models (LLMs) to develop on Google Workspace guide.
The sample prompts using the tools of this MCP server are as follows.
-
v1.0.0 (October 21, 2025)
- Initial release.