Scan your whole stack
From OX Research Newsroom
Are you using @google/clasp?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v3.4.1
@google/clasp was last scanned on 28 Aug 2026 at version 3.4.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 3.4.1 LATEST | 28 Aug 2026 | No rules fired |
| 3.4.0 | 21 Aug 2026 | No rules fired |
Findings for v3.4.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 3.4.1; other versions have their own rules, not their own score.
0 CRITICAL 1 HIGH 0 MEDIUM 0 LOW
The publisher’s own README, as collected from the registry.
Note: This is not an officially supported Google product.
Develop Apps Script projects locally using clasp (Command Line Apps Script Projects).
To get started, try out the codelab!
You can also try clasp in Gitpod, a one-click online IDE for GitHub:
🗺️ Develop Locally: clasp allows you to develop your Apps Script projects locally. That means you can check-in your code into source control, collaborate with other developers, and use your favorite tools to develop Apps Script.
🔢 Manage Deployment Versions: Create, update, and view your multiple deployments of your project.
📁 Structure Code: clasp automatically converts your flat project on script.google.com into folders. For example:
tests/slides.gstests/sheets.gstests/slides.jssheets.js➡️ Run Apps Script: Execute your Apps Script from the command line. Features:
First download clasp:
npm install -g @google/clasp
Then enable the Google Apps Script API: https://script.google.com/home/usersettings
You can install clasp as an Gemini CLI extensions using the following command:
gemini extensions install https://github.com/google/clasp
This makes clasp available as an MCP server in Gemini CLI.
Make sure to enable the Google Apps Script API (as explained above) and perform a clasp login (with your specific login parameters) before you use the extension.
You can use clasp with Claude Code CLI in one of two ways:
Run the following command in Claude Code to install clasp as a plugin directly from the repository:
/plugin install @google/clasp
You can manually add clasp as an MCP server using the provided configuration file or by running:
claude mcp add clasp -- npx -y @google/clasp mcp
Or by referencing the configuration file included in the repository:
claude mcp add-json clasp "$(cat claude-mcp.json)"
The following command provide basic Apps Script project management.
Note: Most of them require you to
clasp loginandclasp create/clonebefore using the rest of the commands.
clasp
clasp login [--no-localhost] [--creds <file>] [--use-project-scopes] [--include-clasp-scopes] [--extra-scopes <scopes>] [--redirect-port]clasp logoutclasp show-authorized-user [--json]clasp create-script [--title <title>] [--type <type>] [--rootDir <dir>] [--parentId <id>]clasp clone-script <scriptId | scriptURL> [versionNumber] [--rootDir <dir>]clasp delete-script [--force]clasp pull [--versionNumber]clasp push [--watch] [--force]clasp show-file-status [--json]clasp open-scriptclasp list-deploymentsclasp create-deployment [--versionNumber <version>] [--description <description>] [--deploymentId <id>]clasp delete-deployment [deploymentId] [--all]clasp create-version [description]clasp list-versionsclasp list-scriptsNOTE: These commands require you to add your Project ID.
clasp tail-logs [--json] [--watch] [--simplified]clasp setup-logs [--json]clasp list-apisclasp enable-api<api>clasp disable-api <api>clasp run-function [function]Clasp no longer transpiles typescript code. For typescript projects, use typescript with a bundler like Rollup to transform code prior to pushing with clasp. This has the advantage of offering more robust support for Typescript features along with ESM module and NPM package support.
There are several template projects on GitHub that show how to transform Typescript code into Apps Script that are all excellent choices.
Clasp 3.x introduces some breaking changes from 2.x. For common use cases these changes should not impact usage, but some lesser used commands have been restructured and renamed to improve consistency.
| 2.x | 3.x |
|---|---|
open |
open-script |
open --web |
open-web-app |
open --addon |
open-container |
open --creds |
open-credentials-setup |
login --creds <file> |
login -u <name> --creds <file> |
logs --open |
open-logs |
logs --setup |
N/A |
apis --open |
open-api-console |
apis enable <api> |
enable-api <api> |
apis disable <api> |
disable-api <api> |
deploy -i <id> |
update-deployment <id> |
settings |
N/A |
Other commands have also been renamed but retain aliases for compatibility.
Most command require user authorization. Run clasp login to authorize access to manage your scripts.
Use the global --user option to switch between accounts. This supports both running clasp as different users as well as when invoking the clasp run-function command.
Examples:
clasp login # Saves as default credentials
clasp clone # User not specified, runs using default credentials
clasp login --user testaccount # Authorized new named credentials
clasp run-function --user testaccount myFunction # Runs function as test account
While clasp includes a default OAuth client, using your own project is recommend and can improve security and compliance in environments that limit which third party applications users may authorize. To set up your own project:
Desktop Application. Download and save the generated client secrets file. This is required when authorizing using theclasp login --creds <filename> command.script.googleapis.com (required)serviceusage.googleapis.com (required to list/enable/disable APIs)drive.googleapis.com (required to list scripts, create container-bound scripts)logging.googleapis.com (required to read logs)Note: If configuring the project for external use where OAuth scopes must be registered, include the following:
https://www.googleapis.com/auth/script.deployments
https://www.googleapis.com/auth/script.projects
https://www.googleapis.com/auth/script.webapp.deploy
https://www.googleapis.com/auth/drive.metadata.readonly
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/service.management
https://www.googleapis.com/auth/logging.read
https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/userinfo.profile
https://www.googleapis.com/auth/cloud-platform
If your organization restricts authorization for third-party apps, you may either:
1072944905499-vm2v2i5dvn0a0d2o4ca36i1vge8cvbn0.apps.googleusercontent.comUse the --adc option on any command to read credentials from the environment using Google Cloud's application default credentials mechanism.
Note that if using a service account, service accounts can not own scripts. To use a service account to push or pull files from Apps Script, the scripts must be shared with the service account with the appropriate role (e.g. Editor in able to push.)
.claspignore)Like .gitignore, .claspignore allows you to ignore files that you do not wish to upload on clasp push. Steps:
.claspignore in your project's root directory.clasp push. Note: The .claspignore patterns are applied by multimatch, which is different from .gitignore, especially for directories. To ignore a directory, use syntax like **/node_modules/**.A sample .claspignore ignoring everything except the manifest and build/main.js:
**/**
!build/main.js
!appsscript.json
Note: The .claspignore patterns are applied relative from the rootDir.
If no .claspignore is specified, a default set of patterns is applied. This default set will only consider the appsscript.json manifest and any JavaScript, TypeScript and .html source files within the rootDir folder. Child folders other than .git and node_modules are processed.
# ignore all files…
**/**
# except the extensions…
!appsscript.json
!**/*.gs
!**/*.js
!**/*.ts
!**/*.html
# ignore even valid files if in…
.git/**
node_modules/**
.clasp.json)When running clone or create, a file named .clasp.json is created in the current directory to describe clasp's configuration for the current project. Example .clasp.json:
{
"scriptId": "",
"rootDir": "build/",
"projectId": "project-id-xxxxxxxxxxxxxxxxxxx",
"fileExtension": "ts",
"filePushOrder": ["file1.ts", "file2.ts"]
}
The following configuration values can be used:
scriptId (required)Specifies the id of the Google Script project that clasp will target.
rootDir (optional)Specifies the local directory in which clasp will store your project files. If not specified, clasp will default to the current directory.
projectId (optional)Specifies the id of the Google Cloud Platform project that clasp will target. You must associate Google Script project with Google Cloud Platform beforehand.
clasp open.Resources > Cloud Platform project....project-id-xxxxxxxxxxxxxxxxxxx.Even if you do not set this manually, clasp will ask this via a prompt to you at the required time.
fileExtension (deprecated, optional)Specifies the file extension for local script files in your Apps Script project.
scriptExtensions (optional)Specifies the file extensions for local script files in your Apps Script project. May be a string or array of strings. Files matching the extension will be considered scripts files.
When pulling files, the first extension listed is used to write files.
Defaults to [".js", ".gs"]
htmlExtensions (optional)Specifies the file extensions for local HTML files in your Apps Script project. May be a string or array of strings. Files matching the extension will be considered HTML files.
When pulling files, the first extension listed is used to write files.
Defaults to [".html"]
filePushOrder (optional)Specifies the files that should be pushed first, useful for scripts that rely on order of execution. All other files are pushed after this list of files, sorted by name.
Note that file paths are relative to directory containing .clasp.json. If rootDir is also set, any files listed should include that path as well.
skipSubdirectories (optional)For backwards compatibility with previous behavior where subdirectories
are ignored if a .claspignore file is not present. Clasp provides default
ignore rules, making the previous warning and behavior confusing. If you
need to force clasp to ignore subdirectories and do not want to construct
a .claspignore file, set this option to true.
--user <name>: Uses credentials stored under the named key. When omitted, the default user is used.--adc: Uses application default credentials from the environment. Intended to support service accounts in CI workflows.--project <file>: Reads project settings from a file other than .clasp.json. Intended to support multiple deployment targets.--auth <file>: (DEPRECATED) Reads credentials from a file other than .clasprc.json. Use the --user option to maintain multiple authorized accounts.--ignore <file>: Reads ignore patterns from a file other than .claspignore.--json: Show output in JSON format.Logs the user in. Saves the client credentials to a .clasprc.json file in the user's home directory
--no-localhost: Do not run a local server, manually enter code instead.--creds <file>: Use custom credentials used for clasp run. Saves a .clasprc.json file to current working directory. This file should be private!--use-project-scopes: Use scopes from appsscript.json instead of default clasp scopes. Useful for clasp run when your script requires runtime scopes.--include-clasp-scopes: Include default clasp scopes in addition to project scopes from appsscript.json. Can only be used with --use-project-scopes.--extra-scopes <scopes>: Include additional OAuth scopes as a comma-separated list (for example, scopeA,scopeB). Empty entries are rejected.--redirect-port <port>: Specify a custom port for the local redirect server during the login process. Useful for environments where a specific port is required.clasp loginclasp login --no-localhostclasp login --user test-user --creds client_secret.jsonclasp login --user test-user --use-project-scopes --creds client_secret.jsonclasp login --user test-user --use-project-scopes --include-clasp-scopes --creds client_secret.jsonclasp login --user test-user --extra-scopes https://www.googleapis.com/auth/spreadsheets.readonly,https://www.googleapis.com/auth/drive.readonly --creds client_secret.jsonclasp login --redirect-port 37473Logs out the user by deleting client credentials.
clasp logoutShows the current authorization status. When logged in, the output includes
the OAuth client ID and whether the client is google-provided (clasp default)
or user-provided (custom credentials).
--json: Output authorization details as JSON, including clientId and clientType.clasp show-authorized-userclasp show-authorized-user --jsonCreates a new script project. Prompts the user for the script type if not specified.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.