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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lance-digital/gearindigo-mcp-server

v1.1.0

Published

MCP server for GEAR.indigo Biz - read your design documents (artifacts) via the v1 REST API with a Personal Access Token

Downloads

251

Readme

GEAR.indigo MCP Server

GEAR.indigo Biz で作成した設計ドキュメント(成果物)にアクセスするための MCP (Model Context Protocol) サーバーです。

GEAR.indigo Biz の /api/v1 REST API を Personal Access Token (PAT) で叩く薄いクライアントで、 gibiz Claude Code プラグイン(bash CLI)と 同じ API・同じトークン を使います。 プラグイン用に発行した dg_... トークン(GIBIZ_API_TOKEN)をそのまま流用できます。

機能

  • whoami: トークン検証・認証ユーザー / スコープの確認(401/403 の切り分け用)
  • list_projects: 所属組織のプロジェクト一覧の取得(ID 確認に便利)
  • list_artifacts: 成果物一覧の取得(既定はコンテンツ抜きの軽量メタデータ)
  • get_artifact: 成果物コンテンツの取得(summary / metadataOnly でトークン節約可能)
  • search_artifacts: 成果物のキーワード全文検索(マッチ箇所のスニペット返却)

プロジェクト・コードベースの両方に対応します(projectIdcodebaseId のどちらかを指定)。

セットアップ

1. Personal Access Token の取得

GEAR.indigo Biz/settings/api-tokens で PAT を発行してください。 発行直後の平文トークン(dg_... 43文字)は一度しか表示されません。 既に gibiz プラグイン用に発行済みであれば、そのトークンをそのまま使えます。

スコープは read(一覧 / 取得 / 検索)のみ。レビュー投稿はセキュリティ上 PAT からは実行できません。

2. MCP クライアントの設定

本番(biz.gearindigo.app)を使う場合は GIBIZ_API_TOKEN(PAT)だけで動きます。 GIBIZ_API_URL は未設定なら https://biz.gearindigo.app にフォールバックします(自前ホスト時のみ指定)。

Claude Code (CLI)

claude mcp add --transport stdio \
  --env GIBIZ_API_TOKEN=dg_xxxxxxxx \
  --scope user \
  gear-indigo-biz -- npx -y @lance-digital/gearindigo-mcp-server

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) または %APPDATA%\Claude\claude_desktop_config.json (Windows) に追加:

{
  "mcpServers": {
    "gear-indigo-biz": {
      "command": "npx",
      "args": ["-y", "@lance-digital/gearindigo-mcp-server"],
      "env": {
        "GIBIZ_API_TOKEN": "YOUR_PAT"
      }
    }
  }
}

自前ホストや検証環境に向ける場合は env"GIBIZ_API_URL": "https://<your-deployment>" を追加してください。

Cursor

.cursor/mcp.json に上記 mcpServers と同じ内容を追加してください。

3. クライアントを再起動

設定を反映するため、使用している MCP クライアントを再起動してください。

使用例

  • 「GEAR.indigo の認証を確認して」(whoami)
  • 「アクセスできるプロジェクトを一覧で見せて」(list_projects)
  • 「プロジェクト <projectId> の成果物一覧を見せて」
  • 「成果物 <artifactId> の中身を要約して」(summary)
  • <projectId> でユーザー認証に関する記述を検索して」

環境変数

| 変数名 | 必須 | 説明 | |--------|------|------| | GIBIZ_API_TOKEN | ○ | Personal Access Token (dg_...)。gibiz プラグインと共通。環境変数経由のみ(argv に出さない) | | GIBIZ_API_URL | × | デプロイ先のベース URL(既定: https://biz.gearindigo.app)。https:// は任意ホスト、http:// は loopback (localhost / 127.0.0.1 / ::1) のみ許可 |

トークン節約のコツ

  1. list_projects でプロジェクト ID を確認
  2. list_artifacts で何があるか把握
  3. search_artifacts でキーワードから当たりを付ける
  4. get_artifactmetadataOnlysummary(lines: 50) → summary(lines: 200) → 全文 の順で

ローカル開発

npm install                         # 依存インストール
npm run typecheck                   # 型チェック
npm run test:run                    # テスト
npm run build                       # dist/ にビルド

# 動作確認(stderr に "running on stdio" が出れば OK)
GIBIZ_API_URL=http://localhost:3000 GIBIZ_API_TOKEN=dg_... npm run dev

ライセンス

MIT