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

weegloo

v1.5.7

Published

CLI to set up the Weegloo MCP plugin for Cursor, Claude Code, Codex, Antigravity, and Android Studio (interactive or non-interactive)

Readme

weegloo

A CLI to set up the Weegloo MCP plugin for Cursor, Claude Code, Codex, Antigravity, and Android Studio — interactive by default, or fully non-interactive for agents and CI.

Usage

npx weegloo@latest

Or install globally:

npm install -g weegloo
weegloo

CLI options

Run with no options for the interactive installer. Any option below pre-fills its choice and skips that prompt. With -y (or in a non-TTY / piped / CI / agent environment) the installer runs fully non-interactively, prompting for nothing.

| Option | Meaning | |---|---| | -b, --branch <ref> | Plugin version/branch to install (default: latest). Alias of --ref; also reads WEEGLOO_REF. | | -a, --agent <id> | Target IDE/agent: cursor | claude | codex | antigravity | androidstudio. | | --host <id> | Run the agent inside a GUI host: xcode. Only valid with --agent claude/codex. Injects a PATH into the weegloo-upload server env so the host can find npx (see GUI hosts). | | -l, --location <loc> | Install location: project | global (default: global). | | --mcp <group> | Install the MCP server with group: default | core | extra | all. | | --no-mcp | Do not install the MCP server. | | -t, --token <pat> | Weegloo Personal Access Token. Also reads WEEGLOO_TOKEN (the flag wins). | | --ignore-skill | Do not install Skills. | | --ignore-rule | Do not install Rules. | | -y, --yes | Non-interactive: use defaults for anything not given. | | --all-branches | Show all branches in the version picker (interactive only). | | -h, --help | Show this help. |

Non-interactive mode

Triggered by -y or a non-TTY environment (piped, CI, or an agent). In this mode:

  • Defaults: branch latest, MCP + Skills + Rules installed, group default, location global, all Skills and Rules selected.
  • Required: --agent is always required, and a token (--token or WEEGLOO_TOKEN) is required whenever MCP is installed. Missing required values exit immediately with an error instead of hanging on a prompt.
  • Conflicting or invalid flags (e.g. --mcp together with --no-mcp, nothing left to install, or an unknown enum value) also exit with a clear error.
# Fully non-interactive: MCP + Skills + Rules for Claude Code
WEEGLOO_TOKEN=… npx weegloo@latest -y --agent claude

# Skills/Rules only, no MCP (no token needed)
npx weegloo@latest -y --agent claude --no-mcp

# Codex running inside Xcode Intelligence (injects PATH so Xcode can spawn npx)
WEEGLOO_TOKEN=… npx weegloo@latest -y --agent codex --host xcode

# Pre-fill a couple of choices, get prompted for the rest (interactive)
npx weegloo@latest --agent cursor --location global

GUI hosts (Xcode)

When an agent runs inside a GUI host — e.g. Codex or Claude Code driven by Xcode 27's Intelligence — the host spawns MCP servers with the bare login PATH (/usr/bin:/bin). nvm/homebrew node installs are not on that PATH, so the npx-based weegloo-upload server fails to launch (ENOENT) and its tools silently never appear.

Selecting Xcode in the interactive IDE list (then choosing Claude Code or Codex), or passing --host xcode, writes the config to the same standard location as a normal Claude/Codex install (Xcode copies it from there) but adds a PATH entry to the weegloo-upload server's env, pinned to the bin directory of the node that ran the installer:

[mcp_servers.weegloo-upload.env]
PATH = "/Users/you/.nvm/versions/node/v18.20.8/bin:/usr/bin:/bin"
UPLOAD_API_URL = "https://upload.weegloo.com/v1"
AUTH_BEARER_TOKEN = "…"

PATH (rather than an absolute command) is sufficient on its own — it covers both locating npx and npx's #!/usr/bin/env node shebang. Because the path embeds the node version, re-run the installer after a node upgrade. --host has no effect on Windows (there cmd /c npx already resolves node next to npx.cmd) and only applies to --agent claude/codex (Xcode Intelligence hosts only those).

Overriding the ref (branch / tag)

Skills and Rules files are downloaded in real time from the GitHub branch or tag that corresponds 1:1 with the npm dist-tag.

| Command | pluginRef value | GitHub ref fetched | |---|---|---| | npx weegloo@latest | "latest" | branch latest | | npx weegloo@beta | "beta" | branch beta | | npx [email protected] | "v1.0.0" | tag v1.0.0 |

To fetch from a specific branch directly:

# CLI argument (-b / --branch / --ref are equivalent)
npx weegloo@latest --branch some-branch

# Environment variable
WEEGLOO_REF=some-branch npx weegloo@latest

Installation Flow

In interactive mode the CLI asks the following questions in order (a flag from CLI options can pre-fill any of them, skipping that prompt):

  1. Install location - Global (~/.cursor/) or current project (.cursor/)
  2. IDE - Cursor / Claude Code / Codex / Antigravity / Android Studio
  3. Personal Access Token - Generate from the Weegloo console
  4. MCP server group - default / core / extra / all
  5. Skills - Select skills to install (multi-select)
  6. Rules - Select rules to install (multi-select)

What Gets Installed

Cursor

| Item | Path (Global) | Path (Project) | |------|---------------|----------------| | MCP config | macOS: ~/Library/Application Support/Cursor/mcp.json · Windows: %APPDATA%\Cursor\mcp.json · Linux: ~/.config/Cursor/mcp.json | .cursor/mcp.json | | Skills | ~/.cursor/skills/<skill-name>/ | .cursor/skills/<skill-name>/ | | Rules | ~/.cursor/rules/<rule-name>.mdc | .cursor/rules/<rule-name>.mdc |

Claude Code

| Item | Path (Global) | Path (Project) | |------|---------------|----------------| | MCP config | ~/.claude.json | .mcp.json (project root) | | Skills | ~/.claude/skills/<skill-name>/ | .claude/skills/<skill-name>/ | | Rules | ~/.claude/rules/<rule-name>.md | .claude/rules/<rule-name>.md |

Codex

| Item | Path (Global) | Path (Project) | |------|---------------|----------------| | MCP config | ~/.codex/config.toml | .codex/config.toml | | Skills | ~/.agents/skills/<skill-name>/ | .agents/skills/<skill-name>/ | | Instructions | ~/.codex/AGENTS.md | AGENTS.md |

Codex writes mcp_servers.weegloo (HTTP URL) and mcp_servers.weegloo-upload (npx + env with your Personal Access Token). Multiple Weegloo instruction rules are merged into AGENTS.md with stable markers (re-runs update sections by rule id). Codex's own .rules files are for command approval policy, not agent instructions.

Project installs also register the project as trusted in ~/.codex/config.toml ([projects."<dir>"] trust_level = "trusted"): Codex only loads project-scoped .codex/ config for trusted projects, so without this entry the MCP servers written to .codex/config.toml would be silently ignored (and codex mcp login weegloo would fail with "No MCP server named 'weegloo' found"). An existing [projects."<dir>"] entry — including an explicit untrusted decision — is never modified; the installer warns instead.

Codex path rationale: Codex discovers persistent instructions from AGENTS.md / AGENTS.override.md files (docs), and discovers skills from .agents/skills and ~/.agents/skills (docs). Codex .rules files control sandbox approval policy, so Weegloo behavioral rules are installed as AGENTS.md instructions instead (docs).

Antigravity

| Item | Path (Global) | Path (Project) | |------|---------------|----------------| | MCP config | ~/.gemini/config/mcp_config.json | .agents/mcp_config.json | | Skills | ~/.gemini/skills/<skill-name>/ | .agents/skills/<skill-name>/ | | Rules | ~/.gemini/GEMINI.md | AGENTS.md (project root) |

Antigravity writes mcpServers.weegloo (HTTP URL via serverUrl) and mcpServers.weegloo-upload (npx + env with your Personal Access Token) into mcp_config.json. Behavioral rules are not written as separate files: they are merged into Antigravity's context file — GEMINI.md for a global install, AGENTS.md for a project install — with stable per-rule markers, so re-running the installer updates each section in place instead of duplicating content. GEMINI.md is Antigravity's global context file; AGENTS.md is the portable project context file (also read by other agents).

Android Studio

Project-only — Android Studio has no global install (--location global is normalized to the current project).

| Item | Path | |------|------| | MCP config | mcp.json in Android Studio's version-specific config dir (e.g. Windows: %APPDATA%\Google\AndroidStudio<ver>\ · macOS: ~/Library/Application Support/Google/AndroidStudio<ver>/ · Linux: ~/.config/Google/AndroidStudio<ver>/); the newest AndroidStudio* dir is auto-detected | | Skills | .android-studio/skills/<skill-name>/ (project root) | | Rules | AGENTS.md (project root) |

Android Studio writes both MCP servers into mcp.json (docs): the remote mcpServers.weegloo (with httpUrl, headers, timeout, enabled, trust, includeTools, excludeTools) and the local stdio mcpServers.weegloo-upload (npx + env with your Personal Access Token). The remote weegloo server authenticates with the Personal Access Token sent directly as an Authorization: Bearer header (no Connect/OAuth step); weegloo-upload authenticates with the same PAT in its env. Skills install to .android-studio/skills/ and behavioral rules are merged into the project's AGENTS.md (single file, per-rule markers).

Available Skills

  • weegloo-create-content-type - Guide for creating ContentType resources
  • weegloo-web-hosting - Guide for deploying and hosting web projects

Available Rules

  • weegloo-global-rules - Global MCP rules (applied to all MCP operations)
  • weegloo-web-hosting-rules - Web hosting specific rules

Requirements

Links