Skip to content

BitBadges/bitbadges-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitBadges Plugin for Claude Code

A Claude Code plugin that auto-wires the BitBadges builder MCP server and teaches Claude how to leverage the BitBadges CLI + docs to build, review, simulate, and query tokens.

The plugin is a thin harness on top of the CLI. It does not redefine token types or duplicate skill content — every workflow ultimately routes to bitbadges-cli commands, the bitbadges-builder MCP, or the public docs at https://docs.bitbadges.io. Source of truth stays in the SDK; the plugin just makes Claude reach for the right tool at the right time.

Prerequisites

The BitBadges chain binary + CLI are the canonical way to interact with BitBadges. Install them first:

curl -fsSL https://install.bitbadges.io | sh

This installs bitbadgeschaind (the chain binary) and bitbadges-cli (the JS CLI that exposes 104+ API routes plus the bitbadges-builder MCP server). This plugin is a Claude Code convenience layer on top of those — it does not replace them.

Get an API key at bitbadges.io/developer and configure it once:

bitbadges-cli config set apiKey YOUR_KEY

Install the plugin

After the prerequisites above:

/plugin marketplace add BitBadges/bitbadges-plugin
/plugin install bitbadges

Then run /bitbadges:setup once to verify everything is wired and /bitbadges:status whenever you want a health check.

What the plugin adds

  • MCP toolsbitbadges-builder registered automatically (no separate claude mcp add step). Exposes 50+ session-based per-field token construction tools, queries, validation, review, and simulation.
  • 8 skills — guides that route Claude to the right CLI command, MCP tool, or docs page for each common BitBadges workflow:
    • build — meta-guide for building any token type. Discovers via bitbadges-cli skills, loads canonical instructions from the SDK, constructs via per-field MCP tools.
    • review, simulate, explain — pre-broadcast safety net. Wraps bitbadges-cli check, MCP simulate_transaction, and bitbadges-cli explain.
    • query, address, claim — runtime ops. Wraps the API routes, address derivations, and claim builder respectively.
    • broadcast — hard-railed signer. Picks one of four signing paths based on what wallet the user has (chain binary, browser bridge via /sign, throwaway burner, or programmatic gen-tx-payload). Dry-run by default, explicit confirmation for live.
  • 2 slash commands/bitbadges:setup (one-time prereq check + API key wiring) and /bitbadges:status (health check).
  • bitbadges-builder subagent for focused builder loops.
  • SessionStart pre-warm so the first MCP-tool call doesn't pay npx download latency.

The skills don't duplicate token-type knowledge from the SDK. They tell Claude where to find that knowledge (CLI / MCP / Gitbook) and how to combine it. The full Gitbook docs at https://docs.bitbadges.io are also fair game — fetch what you need.

Fallback behavior

If bitbadges-cli and bitbadges-builder aren't on your PATH (because you skipped the prerequisites), the plugin falls back to npx -y -p bitbadges bitbadges-builder for the MCP server. This works for read-only LLM workflows but is a degraded path — a globally installed CLI is faster, more reliable, and what /bitbadges:setup will recommend.

API key

The plugin reads ~/.bitbadges/config.json first if you've already configured the BitBadges CLI. Otherwise /bitbadges:setup prompts.

Get an API key at bitbadges.io/developer.

Migration from manual MCP setup

If you previously ran:

claude mcp add bitbadges-builder -- npx -y -p bitbadges bitbadges-builder

Remove the user-scope entry before installing the plugin to avoid duplicate MCP servers:

claude mcp remove bitbadges-builder

/bitbadges:setup will detect duplicates and offer to clean up.

What's where

License

CC BY-NC-SA 4.0 — see LICENSE. Matches the parent bitbadgesjs and bitbadgeschain projects.

About

Claude Code plugin for BitBadges — auto-wires the bitbadges-builder MCP server and ships curated skills for token creation, review, simulation, and on-chain queries.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages