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

capybara-mcp

v0.1.6

Published

Capybara MCP tools — generate game assets from Claude Code, Cursor, Codex, and other MCP agents

Readme

capybara-mcp

MCP server for Capybara game asset generation. Works with Claude Code, Cursor, Codex, OpenCode, Pi, and any MCP-capable agent.

Tools

| Tool | Description | |------|-------------| | generate_assets | Generate maps, characters, props, HUD, and audio | | get_job_status | Recover results if a session was interrupted |

Quick start

1. Configure (one time)

npx capybara-mcp-setup --api-key <your-api-key>

For Claude Code:

claude mcp add capybara-mcp -e CAPYBARA_API_KEY=<your-api-key> -- npx -y capybara-mcp

2. Environment variables

| Variable | Required | Description | |----------|----------|-------------| | CAPYBARA_API_KEY | Yes | Your Capybara API key | | CAPYBARA_SKIP_GIT_CHECKPOINT | No | Set to 1 to disable safety commits before overwriting files | | CAPYBARA_GIT_AUTHOR_NAME | No | Author name for checkpoint commits (default capybara-mcp) | | CAPYBARA_GIT_AUTHOR_EMAIL | No | Author email for checkpoint commits (default [email protected]) |

The API endpoint is built in (https://caoybaramcp-production.up.railway.app/v1). No other env vars needed.

3. Run manually

CAPYBARA_API_KEY=<key> npx capybara-mcp

How it works

  1. The agent calls generate_assets with asset specs (maps, characters, etc.).
  2. The client reads src/data/assets.md and existing JSON from your game repo.
  3. Assets are generated via the Capybara API and written back to disk.
  4. Live progress is written to .capybara/status.active.md (rewritten in place; cleared on success). Cancelled runs go to status.cancelled.md (keep job_id for recovery); failures go to status.failed.md.

Git safety checkpoint

When generation would overwrite an existing file, the client tries to preserve the previous version in git (best-effort):

  • If the file has uncommitted changes (or is untracked but present), those contents are committed first as capybara-mcp: checkpoint before overwriting….
  • If the file is already clean at HEAD, no commit is made — git restore -- <path> still recovers the prior version after the write.
  • Skipped when not a git repo, git is unavailable, the path is gitignored, or CAPYBARA_SKIP_GIT_CHECKPOINT=1.
  • Checkpoint failures never block writing assets; the tool summary notes skips/errors.

To undo a generation write before you commit the new files:

git restore -- path/to/file

If interrupted, use get_job_status with the returned job_id.

Requirements

  • Node.js 18+
  • A Capybara API key with sufficient credits
  • A game project with src/data/assets.md (for non-first-build generation)

License

MIT