Tool Commands

The MCP builder tool registry β€” the same surface Claude Desktop and other MCP clients reach over stdio β€” is also reachable directly from the CLI as plain function calls. No subprocess, no protocol round-trip.

These are agent-facing surfaces; they live under bb dev to keep the top-level bb --help focused on the human-facing build/deploy/standards verbs.

Command
Purpose

List every fine-grained tool with its JSON schema

Invoke a single tool by name

Inspect, dump, or reset persisted builder sessions

Browse the static resource registry (recipes, skills, error patterns, etc.)

dev tools list

Lists every builder tool with its full JSON schema.

bb dev tools list                              # full schemas, as JSON
bb dev tools list --names                      # just tool names, one per line

Flags:

Flag
Description

--names

Print only the tool names

dev tools call

Invokes a single fine-grained builder tool by name. Args come from --args (inline JSON) or --args-file (path to a JSON file).

bb dev tools call get_current_timestamp
bb dev tools call get_skill_instructions --args '{"skillId":"smart-token"}'
bb dev tools call set_collection_metadata --args-file ./metadata.json --session demo

Flags:

Flag
Description

--args <json>

Tool arguments as an inline JSON string

--args-file <path>

Tool arguments read from a JSON file

--session <id>

Session id for stateful tools. Persisted to ~/.bitbadges/sessions/<id>.json. Defaults to --args.sessionId, or the built-in default session.

--raw

Print the structured result instead of the formatted text block

Stateful tools (set_*, add_*, remove_*, get_transaction, …) read from and write to the named session. Sessions survive across invocations, so agents can compose a collection across many CLI calls:

Unknown tool names exit 1 and print the available tool list on stderr.

session

Persisted builder sessions live under ~/.bitbadges/sessions/<id>.json. Use the session subcommand to inspect or reset them.

Subcommand
Purpose

list

Print every persisted session id, one per line

show <id>

Print the session snapshot as JSON

reset <id>

Delete the session file

dev resources

Static MCP resources β€” the bundled token registry, recipes, skills, error patterns, and docs slugs. Same surface the MCP clients see, reachable from the CLI for inspection or scripting.

Subcommand
Flag
Description

list

--uris

Print only the resource URIs

read <uri>

β€”

Read a resource body by URI (e.g. bitbadges://recipes/all)

See also

  • Build Commands β€” flag-based deterministic builders. Use these instead of composing tool calls when a template fits.

  • Analysis Commands β€” check, explain, simulate, preview for the assembled tx.

  • The MCP builder server (bitbadges-builder bin) exposes the same registry over stdio β€” point any MCP client at it for the same surface in Claude Desktop, Cursor, etc.

Last updated