This page is auto-generated from
apps/web/src/lib/mcp/server.ts. Do
not edit by hand — your changes will be overwritten by
pnpm --filter @chatblocks/web gen-mcp-tool-ref. CI runs
gen:check on every PR and fails if this file has drifted from the
source.24 tools
Connect with acb_live_* API key as a Bearer token. See MCP setup for client configs.
auditLog.recent
Recent audit log. Recent audit log entries (credential decrypts, MCP writes, etc.).
Input schema
blocks.build
Compile block source files. Compile a block’s files via Vercel Sandbox. Streams queued → building → succeeded|failed. Returns buildId on success — pass to blocks.publish.
Input schema
blocks.capabilities
Block runtime capabilities. What runs inside a code block: supported libraries, CSP/sandbox rules, blocked APIs. Call BEFORE picking a library to avoid round-trips. Returns structured data + markdown for display.
Input schema
blocks.get
Get a block. Fetch a block by id.
Input schema
blocks.getFiles
Read block source files. Read a block’s source files plus latest build + published-version state.
Input schema
blocks.init
Initialize a new block. Create an empty block with a starter file scaffold. Returns { blockId }.
Input schema
blocks.list
List blocks. List blocks in the workspace. Retired blocks hidden unless includeRetired.
Input schema
blocks.patchFiles
Patch block source files. Incremental edit: upserts adds/replaces files, deletes removes them. Validates merged set; failure returns validation.ok=false without mutating. Use blocks.setFiles for fresh starts.
Input schema
blocks.publish
Publish a block build. Pin a successful build (buildId from blocks.build, status=succeeded) as the published version. Placements on your own canvases auto-upgrade.
Input schema
blocks.publishEmbed
Publish an embed block. Snapshot-publish an embed-format block (no build). Pass framable: true only for URLs verified iframe-safe (e.g. YouTube /embed/). Placements on your canvases auto-upgrade.
Input schema
blocks.setFiles
Replace block source files. Replace a block’s entire file set (omitted paths are deleted). Validates before writing; failure returns validation.ok=false without mutating. Then blocks.build → publish.
Input schema
blocks.setRetired
Retire or restore a block. Soft-delete (retired: true) or restore (retired: false) a block. Retired blocks are hidden from lists and resource limits but stay in the DB; existing placements render a ‘Block removed’ tombstone. Restore re-checks the block cap. Use placements.listForBlock first to see affected canvases.
Input schema
blocks.update
Update block metadata. Patch metadata (name, description, manifest, tags). Source code: use blocks.setFiles.
Input schema
blocks.view
View a block. Display a published self-contained code block from this workspace in an MCP Apps host; external network, embeds, stores and live-data blocks are unsupported.
Input schema
canvases.get
Get a canvas. Fetch a canvas with placements (current layout) and suggested_next_position (server-computed gap — use instead of guessing x/y).
Input schema
canvases.list
List canvases. List canvases in the workspace.
Input schema
canvases.setVisibility
Set canvas visibility. Set to private | workspace | public. public is viewable without login at /<username>/<slug> and returns that shareUrl.
Input schema