Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "clasp",
"version": "1.0.0",
"description": "Develop Apps Script projects locally using clasp",
"mcpServers": {
"clasp": {
"command": "npx",
"args": ["-y", "@google/clasp", "mcp"]
}
}
}
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,32 @@ 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.

### Installing as a Claude Code CLI Extension

You can use clasp with Claude Code CLI in one of two ways:

#### 1. Install as a Plugin (Recommended)

Run the following command in Claude Code to install clasp as a plugin directly from the repository:

```sh
/plugin install @google/clasp
```

#### 2. Manual Installation

You can manually add clasp as an MCP server using the provided configuration file or by running:

```sh
claude mcp add clasp -- npx -y @google/clasp mcp
```

Or by referencing the configuration file included in the repository:

```sh
claude mcp add-json clasp "$(cat claude-mcp.json)"
```

## Commands

The following command provide basic Apps Script project management.
Expand Down
8 changes: 8 additions & 0 deletions claude-mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mcpServers": {
"clasp": {
"command": "npx",
"args": ["-y", "@google/clasp", "mcp"]
}
}
}