Model Context Protocol (MCP) Documentation
codbrain exposes 15 standard JSON-RPC HTTP Model Context Protocol tools to AI assistants (Claude Code, Cursor, Codex).
One-Line MCP Integration
// Run in your terminal to connect Claude Code or Cursor to codbrain:
claude mcp add codbrain --transport http https://codbrain.online/api/mcpThe 15 MCP Tools Reference
Full tools inventory exposed over Model Context Protocol JSON-RPC.
Returns scope-aware operational rules and patterns tailored to the seller's target market.
Fetches step-by-step executable procedure checklists (e.g. choose-product, make-static-ads, build-cod-store).
Returns signed 10-minute URL for pre-built headless store architecture (Gadget & Cosmetics engine).
Calculates unit economics, breaking points, CPL thresholds, and profit metrics from seller profile + reported outcomes.
Audits local host environment for required CLI tools (ffmpeg, node, vercel) and external integration keys.
Retrieves seller configuration parameters (target markets, target currency, average confirmation rate).
Creates or updates private notes in the seller's isolated PostgreSQL database with category and graph links.
Queries the seller's private wiki notes by category, title, or graph links.
Returns full private wiki catalog with missing graph references and unexplored knowledge gaps.
Append-only execution log tracking operational decisions, costs, and execution blockers.
Submits operational learnings, test failures, or market observations to the consensus distillation queue.
Reports quantitative campaign performance (CR, delivery rate, CPA) to update benchmark consensus.
Returns aggregate market benchmarks (locked until seller contributes consensus observations).
Returns initial protocol contract, writes CODBRAIN.md rules file to workspace root.
Lists all available pre-packaged store engines with validation security gates.
Security Sandbox Specifications
Local Agent Execution
codbrain returns facts, metrics, and templates. Shell commands and network calls are executed by your agent on your local machine under your control.
Supabase RLS Isolation
Seller databases are separated by PostgreSQL Row Level Security. Every note and execution log is bound to the authenticated API key payload.
Input Injection Firewall
scanForInjection audits all inbound text for shell command attempts, raw URLs, or secret token leaks before database insertion.