Skip to main content

AI Agent Integration

Juicebox provides comprehensive tooling for AI assistants and automated development workflows. This includes an MCP server for documentation access, Claude Code skills for protocol operations, and machine-readable data files.

Claude Code Skills

The fastest way to build on Juicebox with AI assistance is using our Claude Code skills plugin.

Install: Add to your Claude Code settings or clone github.com/mejango/juicebox-skills

Available Skills

SkillDescription
/jb-projectCreate and configure Juicebox V5 projects
/jb-rulesetConfigure and queue rulesets with all parameters
/jb-pay-hookGenerate custom pay hooks with Foundry tests
/jb-cash-out-hookGenerate custom cash out hooks with tests
/jb-split-hookGenerate custom split hooks with tests
/jb-decodeDecode and analyze transaction calldata
/jb-queryQuery project state from the blockchain
/jb-docsSearch documentation via MCP server
/jb-v5-apiAPI reference for all contract functions
/jb-v5-implDeep implementation knowledge and edge cases

Example Usage

/jb-project

Create a crowdfunding project that:
- Accepts ETH
- Issues 1M tokens per ETH
- Reserves 20% for the team
- Has a 100 ETH payout limit per 30-day cycle
- Allows token holders to cash out at any time

The skill will generate complete deployment code with proper configurations.


Machine-Readable Resources

For programmatic access to protocol data:

ResourceURLDescription
LLM Summary/llms.txtQuick protocol overview for LLMs
Full Context/llms-full.txtComplete protocol reference
Contract Addresses/api/contracts.jsonAll V5 addresses as JSON
SDK Reference/api/sdk.jsonjuice-sdk-react hooks and types

MCP Server

The Juicebox documentation is available through an MCP (Model Context Protocol) server for AI assistants.

HTTP API

Base URL: https://docs.juicebox.money/api/mcp

Documentation Endpoints

MethodEndpointDescription
POST/searchSearch docs by query, category, version
POST/get-docGet full document by path or title
GET/list-docsList all docs in a category
GET/structureGet documentation structure/stats

Code & Integration Endpoints

MethodEndpointDescription
POST/search-codeSearch code examples by language
GET/contractsGet contract addresses by name/chain
GET/sdkGet SDK hook/utility reference
GET/patternsGet integration patterns by project type

Quick Examples

Search documentation:

curl -X POST https://docs.juicebox.money/api/mcp/search \
-H "Content-Type: application/json" \
-d '{"query": "deploy project", "category": "developer", "limit": 5}'

Get contract addresses:

curl "https://docs.juicebox.money/api/mcp/contracts?contract=JBController"

Get integration pattern:

curl "https://docs.juicebox.money/api/mcp/patterns?projectType=revnet"

Search code examples:

curl -X POST https://docs.juicebox.money/api/mcp/search-code \
-H "Content-Type: application/json" \
-d '{"query": "pay", "language": "solidity", "limit": 5}'

Parameters

Documentation Search:

  • query (string, required): Search terms
  • category: developer | user | dao | ecosystem | all
  • version: v3 | v4 | v5 | all
  • limit (number): Max results (default: 10)

Contract Addresses:

  • contract: Contract name (e.g., JBController, REVDeployer)
  • chainId: 1 | 10 | 8453 | 42161 | testnets | all
  • category: core | revnet | hooks | suckers | omnichain | all

SDK Reference:

  • package: juice-sdk-react | juice-sdk-core | revnet-sdk | all
  • hook: Specific hook name (e.g., useJBProjectProvider)
  • category: context | read | write | omnichain | math | all

Integration Patterns:

  • pattern: Pattern ID (e.g., pay-project, wagmi-setup)
  • projectType: crowdfunding | revnet | dao-treasury | subscription

Using with Claude Desktop

For local MCP server access:

  1. Clone and install:

    git clone https://github.com/jbx-protocol/juice-docs-v3
    cd juice-docs-v3
    npm run mcp:install && npm run mcp:build-index
  2. Configure Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

    {
    "mcpServers": {
    "juice-docs": {
    "command": "node",
    "args": ["/path/to/juice-docs-v3/mcp-server/src/index.js"],
    "cwd": "/path/to/juice-docs-v3"
    }
    }
    }
  3. Restart Claude Desktop


For AI Agent Developers

If you're building AI agents that interact with Juicebox:

  1. Use Claude Code Skills - Most comprehensive, handles complex operations
  2. Query MCP Server - For documentation lookup and code examples
  3. Use JSON APIs - For contract addresses and SDK reference
  4. Parse llms-full.txt - For complete protocol context

Key Capabilities

TaskRecommended Approach
Deploy a project/jb-project skill
Generate custom hook/jb-pay-hook, /jb-cash-out-hook, or /jb-split-hook
Query project state/jb-query skill with cast/ethers
Decode transaction/jb-decode skill
Look up function signature/jb-v5-api skill or MCP /get-doc
Understand internal mechanics/jb-v5-impl skill
Get contract addressMCP /contracts or /api/contracts.json

Example: AI Agent Workflow

// 1. Get contract addresses
const contracts = await fetch('https://docs.juicebox.money/api/contracts.json')
.then(r => r.json());

// 2. Search for relevant documentation
const docs = await fetch('https://docs.juicebox.money/api/mcp/search', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ query: 'launch project', category: 'developer' })
}).then(r => r.json());

// 3. Get specific document
const guide = await fetch('https://docs.juicebox.money/api/mcp/get-doc', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ path: 'dev/v5/build/life-of-a-project.md' })
}).then(r => r.json());

More Information