New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

bbb-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bbb-mcp-server

BrainBrainBrains — persistent memory + context layer for AI-assisted dev teams via MCP

Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
41
156.25%
Maintainers
1
Weekly downloads
 
Created
Source

bbb-mcp-server

BrainBrainBrains — persistent memory + context layer for AI-assisted dev teams, exposed via the Model Context Protocol (MCP).

Store decisions, conventions, constraints, and architecture notes. Query them with full-text search. Assemble smart context for any task. Snapshot and rehydrate sessions across tools.

Quick Start

npx bbb-mcp-server --project my-project

Setup

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "bbb": {
      "command": "npx",
      "args": ["-y", "bbb-mcp-server", "--project", "my-project"]
    }
  }
}

Claude Code

claude mcp add bbb -- npx -y bbb-mcp-server --project my-project

Codex

Add to ~/.codex/config.toml:

[mcp_servers.bbb]
command = "npx"
args = ["-y", "bbb-mcp-server", "--project", "my-project"]

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "bbb": {
      "command": "npx",
      "args": ["-y", "bbb-mcp-server", "--project", "my-project"]
    }
  }
}

Tools (50)

Phase 1 — Core (17)

Memory (5)

ToolDescription
memory_storeStore a memory (decision, convention, constraint, etc.)
memory_queryFull-text search with BM25 ranking
memory_listPaginated listing with filters
memory_updateVersion-aware update (supersedes old)
memory_deleteDelete by ID

Artifacts (3)

ToolDescription
artifact_storeStore/update ADRs, PRDs, API contracts, etc.
artifact_getFetch by ID or search by type/title
artifact_listPaginated listing with filters

Tasks (3)

ToolDescription
task_createCreate task with dependencies
task_updateUpdate status, linked artifacts
task_get_dagDependency graph view

Context (2)

ToolDescription
context_assembleSmart context assembly with token budgeting
search_memoriesDirect FTS5 search

Project (2)

ToolDescription
project_initInitialize a new project
ingest_codebaseAuto-index repository files

Session (2)

ToolDescription
session_snapshotCapture full session state
session_rehydrateRestore snapshot + generate tool config

Phase 2 — Agent Workflows (20)

Swarm Sessions (4)

ToolDescription
swarm_session_startStart a new swarm session in the hydrate phase
swarm_session_transitionTransition session to the next lifecycle phase
swarm_session_statusGet current status and allowed transitions
swarm_session_completeMark a swarm session as complete

Permissions & Approvals (5)

ToolDescription
permission_setSet allow/deny/approval_required rules per tool and role
permission_listList permission rules with filters
approval_requestRequest approval to execute a tool
approval_respondApprove or reject a pending request
approval_listList pending/resolved execution requests

Audit (3)

ToolDescription
audit_queryQuery audit events with filters
audit_verifyVerify audit trail integrity (SHA-256 chain)
audit_exportExport audit trail as JSON

Task Runner (4)

ToolDescription
task_decomposeCreate a task DAG from a structured plan
task_executeMark a task as executed with results
task_batchBatch create or update multiple tasks
task_rollbackRoll back a failed task to pending

Sandbox (4)

ToolDescription
sandbox_createCreate an E2B sandbox
sandbox_execExecute a command in a sandbox
sandbox_statusGet sandbox status
sandbox_destroyDestroy a sandbox

Phase 3 — Multi-Model Orchestration (13)

Roles (4)

ToolDescription
role_registerRegister an agent role with mission, model, and budget
role_listList all registered roles
role_getGet full role details by ID or name
role_updateUpdate a role's configuration

Models (2)

ToolDescription
model_registerRegister an AI model with provider, capabilities, and pricing
model_listList registered models with filters

Dispatch (1)

ToolDescription
task_dispatchRoute a task to the best model based on capabilities and strategy

Agent Comms (2)

ToolDescription
agent_message_sendSend a message between agent roles
agent_message_inboxGet pending messages for a role

Conflicts (2)

ToolDescription
conflict_listList detected conflicts between agent outputs
conflict_resolveResolve a conflict using a resolution strategy

Observability (2)

ToolDescription
cost_reportGet aggregated cost report by period, role, or model
metrics_dashboardGet metrics dashboard with cost, latency, throughput, and error rates

How It Works

  • SQLite + FTS5 — One .db file per project at ~/.bbb/data/. Full-text search with BM25 ranking. WAL mode for performance.
  • Context Assembly — Extracts keywords from your task, searches memories + codebase, scores by relevance (BM25 + recency + tag overlap), and assembles a token-budgeted context block.
  • Session Portability — Snapshot your entire project state and rehydrate it in any tool (Claude Code, Cursor, Claude Desktop, VS Code, Codex).
  • Agent Workflows — Swarm session lifecycle, tool permissions with approval gates, SHA-256 audit chain, task decomposition/execution/rollback, and E2B sandbox integration.
  • Multi-Model Orchestration — Role-based routing across Claude, GPT, and Gemini with cost-optimized/quality-optimized/balanced strategies, inter-agent messaging, conflict detection, and cost tracking.

License

MIT

Keywords

mcp

FAQs

Package last updated on 12 Feb 2026

Related posts