Skip to content

Commit 56f0e62

Browse files
feat: add Claude Code CLI support (#1111)
Added support for installing clasp as a Claude Code extension. - Created `.claude-plugin/plugin.json` for plugin-based installation. - Created `claude-mcp.json` for manual MCP configuration. - Updated README.md with installation instructions. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 64acdc2 commit 56f0e62

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.claude-plugin/plugin.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "clasp",
3+
"version": "1.0.0",
4+
"description": "Develop Apps Script projects locally using clasp",
5+
"mcpServers": {
6+
"clasp": {
7+
"command": "npx",
8+
"args": ["-y", "@google/clasp", "mcp"]
9+
}
10+
}
11+
}

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,32 @@ This makes clasp available as an MCP server in Gemini CLI.
7878

7979
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.
8080

81+
### Installing as a Claude Code CLI Extension
82+
83+
You can use clasp with Claude Code CLI in one of two ways:
84+
85+
#### 1. Install as a Plugin (Recommended)
86+
87+
Run the following command in Claude Code to install clasp as a plugin directly from the repository:
88+
89+
```sh
90+
/plugin install @google/clasp
91+
```
92+
93+
#### 2. Manual Installation
94+
95+
You can manually add clasp as an MCP server using the provided configuration file or by running:
96+
97+
```sh
98+
claude mcp add clasp -- npx -y @google/clasp mcp
99+
```
100+
101+
Or by referencing the configuration file included in the repository:
102+
103+
```sh
104+
claude mcp add-json clasp "$(cat claude-mcp.json)"
105+
```
106+
81107
## Commands
82108

83109
The following command provide basic Apps Script project management.

claude-mcp.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"mcpServers": {
3+
"clasp": {
4+
"command": "npx",
5+
"args": ["-y", "@google/clasp", "mcp"]
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)