npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

gas-clasp-mcp

v0.1.9

Published

Model Context Protocol (MCP) server for Google Clasp integration

Readme

prototype MCP

Configuration

Add to your MCP settings:

{
  "mcpServers": {
    "prototype": {
      "command": "npx",
      "args": ["tsx", "/path/to/mcp.ts"],
      "env": {},
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

インストールと実行方法

  1. 依存関係のインストール:

    npm install
  2. 直接実行:

    npx tsx mcp.ts

Tools

Google Clasp操作ツール

このMCPサーバーは、Google Apps Scriptのコマンドラインツールclaspを操作するための以下のツールを提供します。

環境設定 (env)

デプロイには環境(environment)が設定できるようになりました:

  • development: 開発環境(デフォルト)
  • staging: テスト環境
  • production: 本番環境
    • 重要: production環境へのデプロイは、gitのmainブランチかつ変更がない(すべてコミット済み)状態でのみ可能です
  1. clasp_setup: claspの環境を一括セットアップします。インストール状態をチェックし、必要に応じてインストールします。オプションでGoogleアカウントへのログインも行います。
    {
      "rootDir": "プロジェクトのルートディレクトリ",
      "autoInstall": "claspがインストールされていない場合、自動的にインストールするかどうか (任意: true/false)",
      "autoLogin": "自動的にGoogleアカウントへのログインを開始するかどうか (任意: true/false)",
      "global": "インストールする場合、グローバルインストールするかどうか (任意: true/false)",
      "listProjects": "セットアップ後にプロジェクト一覧を表示するかどうか (任意: true/false)"
    }
  2. clasp_logout: 現在ログインしているGoogleアカウントからログアウトします。
    {
      "rootDir": "プロジェクトのルートディレクトリ"
    }
  3. clasp_create: 新しいGoogle Apps Scriptプロジェクトを作成します。
    {
      "title": "プロジェクトのタイトル",
      "rootDir": "プロジェクトのルートディレクトリ",
      "type": "プロジェクトタイプ (任意: standalone/docs/sheets/slides/forms/webapp/api)"
    }
  4. clasp_clone: 既存のGoogle Apps Scriptプロジェクトをクローンします。
    {
      "scriptId": "クローンするスクリプトID",
      "rootDir": "クローン先のディレクトリ"
    }
  5. clasp_pull: リモートのGoogle Apps Scriptプロジェクトの変更をローカルに取得します。
    {
      "rootDir": "プルするプロジェクトのディレクトリ",
      "scriptId": "プルするスクリプトID(任意)"
    }
  6. clasp_push: ローカルの変更をリモートのGoogle Apps Scriptプロジェクトにプッシュします。
    {
      "rootDir": "プッシュするプロジェクトのディレクトリ",
      "force": "確認プロンプトを無視するかどうか (任意: true/false)",
      "watch": "ファイル変更を監視して自動プッシュするかどうか (任意: true/false)",
    }
  7. clasp_deploy: Google Apps Scriptプロジェクトをデプロイします。
    {
      "rootDir": "デプロイするプロジェクトのディレクトリ",
      "env": "実行環境 (development/staging/production)",
      "version": "デプロイするバージョン (任意)",
      "description": "デプロイの説明 (任意)",
    }
  8. clasp_list: Google Apps Scriptプロジェクトのリストを表示します。
    {
      "rootDir": "プロジェクトのディレクトリ"
    }

使用例

// 開発環境でのデプロイ
use_mcp_tool({
  server_name: "test",
  tool_name: "clasp_deploy",
  arguments: {
    "rootDir": "/Users/username/projects/my-gas-project",
    "env": "development",
    "description": "開発環境デプロイ"
  }
});

// 本番環境でのデプロイ (mainブランチかつ変更なしの状態が必要)
use_mcp_tool({
  server_name: "test",
  tool_name: "clasp_deploy",
  arguments: {
    "rootDir": "/Users/username/projects/my-gas-project",
    "env": "production",
    "description": "本番環境リリース v1.0.0"
  }
});