BSV AI DevKit

Tools and dated knowledge for building BSV applications with AI coding agents, testnet first. This repository holds the @bsv/mcp server, the bsv-dev agent skill, the content both of them serve, and sample apps.
What is here
| Path | What it is |
|---|
content/ | The single source of facts and rules: dated facts (facts/*.md), the guardrails G-01..G-38 (guardrails.yaml), pinned versions (versions.json), the docs index, custody shapes and the threat model. Facts are edited here and nowhere else. |
packages/mcp/ | @bsv/mcp 2.0.0, the MCP server. packages/mcp/content/ is a generated snapshot of content/ that ships in the npm package. |
packages/skill/ | The bsv-dev skill 0.1.1 and Claude Code plugin: skills/bsv-dev/ (SKILL.md, the generated references/, assets and scripts), the commands /bsv-review and /bsv-design, and the plugin manifest, which bundles bsv-mcp and bsv-docs. |
packages/sync/ | Private build step: renders content/ into packages/mcp/content/ and the skill's references, and lints facts and links. |
samples/ | Sample apps; see samples/README.md. |
docs/ | The design spec and implementation plans (docs/superpowers/), the phase-1 exit checklist and agent evals (docs/evals/), the WriteChoice briefing (docs/writechoice/) and the @bsv/simple-mcp deprecation kit (docs/deprecation/). |
setup.sh | Clones the BSV repositories that code_search, find_function_definition and brc_lookup read locally. |
Install
Skill (any agent that reads Agent Skills):
npx skills add bsv-blockchain/bsv-ai-toolkit
Claude Code plugin (skill plus MCP):
claude plugin marketplace add bsv-blockchain/bsv-ai-toolkit && claude plugin install bsv-dev@bsv
MCP server only, in Claude Code:
claude mcp add bsv-mcp -e BSV_NETWORK=testnet -- npx -y @bsv/mcp
@bsv/mcp 2.0.0 is not released yet. Until it is, npx @bsv/mcp resolves the 1.x release, which this README does not describe; run 2.0.0 from a clone instead (see Development).
Other MCP clients take the same command in their JSON configuration:
{
"mcpServers": {
"bsv-mcp": {
"command": "npx",
"args": ["-y", "@bsv/mcp"],
"env": { "BSV_NETWORK": "testnet" }
}
}
}
Local code search (optional). code_search and find_function_definition need local clones; brc_lookup uses them when present. Clone them and pass the directory to the server:
./setup.sh ~/bsv-repos # ts-stack, BRCs, broadcaster, bsv-desktop, go-wallet-toolbox, runar (shallow)
./setup.sh --list # just print the repository URLs
claude mcp add bsv-mcp -e BSV_NETWORK=testnet -e BSV_REPOS_DIR="$HOME/bsv-repos" -- npx -y @bsv/mcp
The server starts without BSV_REPOS_DIR; the two search tools then answer with a hint to run setup.sh. Install ripgrep (rg) for faster search; without it they fall back to grep.
Testnet coins. Get them from the faucet at bsvfaucet.com: sign in with a BSV wallet, up to 10M satoshis per request, one request per 24 hours. Mainnet has no faucet.
@bsv/mcp tools