Agent integrations
MCP
Connect Pax to MCP-compatible agents with a local server, structured tools, and no hosted inference.
Pax ships an MCP server in @pax-sh/mcp with 23 tools covering project initialization, brand inspection, scene creation, validation, preview, quality checks, export, documentation retrieval, the effects and blocks registries, motion personalities, and deterministic demo video render. All tools run locally. Pax never hosts inference on your behalf.
Architecture
Agent (Cursor, Claude Code, Codex, OpenCode)
|
| MCP over stdio / configured transport
v
@pax-sh/mcp server ---> paxfx CLI + packages (local)
|
+-- scenes, recipes, preview, export, docsInstallation
Install Pax from source
git clone https://github.com/pax-design/pax.git
cd pax
corepack enable
pnpm install
pnpm build
pnpm paxfx install mcpUsage
List available tools and inspect capabilities:
pnpm paxfx mcp tools
pnpm paxfx mcp serveExample tool invocation shape (JSON varies by host):
{
"tool": "create_scene",
"arguments": {
"recipe": "title-card",
"params": { "title": "Launch" }
}
}Examples
create_scene
Create a scene from a released recipe, then validate before preview. The CLI equivalent writes under .pax/scenes/:
pnpm paxfx recipes run title-card
pnpm paxfx scene validate .pax/scenes/title-card.scene.jsonvalidate
Run validation on a scene or compiled package before export.
preview
Start a local preview server for supported scene outputs. Preview remains on localhost.
retrieve_docs
Fetch documentation excerpts for in-editor agent context. Maps to public /docs/* content and llms.txt.
API Reference
MCP tools
All 23 tools, catalogued in packages/mcp/src/server.ts. Tools marked dangerous write files and require explicit agent approval in your host.
initialize_projecttype: tool
Initialize a Pax project with .pax/ scaffolding and default config files. Idempotent.
inspect_brandtype: tool
Read the local brand profile from .pax/brand.json, deriving one from a repository scan when
absent.
list_recipestype: tool
List every runnable recipe with parameters, outputs, and tags.
create_scenetype: tool
Create a scene from a recipe id and parameters. Writes the scene JSON and a DOM preview under
.pax/scenes/.
validatetype: tool
Validate a Pax scene or Lottie document and return structured issues.
previewtype: tool
Prepare a local preview document and return the studio command to serve it.
capture_framestype: tool
Capture deterministic frames of a scene by sampling animation tracks. Writes SVG frames and a
manifest under .pax/reports/frames/.
inspect_qualitytype: tool
Run deterministic critic checks (motion, accessibility, overflow, performance budget) and write
.pax/reports/check.json.
repairtype: tool
Apply high-confidence repairs. May modify project files.
exporttype: tool
Export a scene to lottie, dotlottie, svg, react, vanilla, or capability-gated media formats.
Writes .pax/exports/ with a reproducibility manifest.
retrieve_docstype: tool
Search Pax documentation and return the most relevant excerpts.
capabilitiestype: tool
Report Pax capabilities: tool count, export formats, effects, blocks, recipes, and local machine capabilities.
list_effectstype: tool
Browse the 25 canvas and WebGL effects with tiers, engines, and install commands.
get_effecttype: tool
Read one effect's props, performance tier, reduced-motion behavior, and install commands.
install_effecttype: tool
Return the shadcn install command for an effect and framework.
blocks_listtype: tool
List blocks registry assets, optionally filtered by kind or category.
blocks_searchtype: tool
Search blocks registry assets by id, title, description, or category.
blocks_inspecttype: tool
Inspect one blocks asset: metadata, tier, dependencies, and install command.
blocks_addtype: tool
Install a blocks asset into components/pax/<id>/ in the current project.
list_effectstype: tool
Browse Pax canvas and WebGL effects with tiers and framework support.
get_effecttype: tool
Read effect props, performance tiers, and install commands for one effect.
install_effecttype: tool
Return the shadcn install command for an effect. May guide file writes in the host project.
blocks_listtype: tool
List Pax blocks registry assets. Accepts kind, category, and collection filters; summaries carry collection membership.
blocks_searchtype: tool
Search Pax blocks registry assets by query with optional category and collection filters.
blocks_collectionstype: tool
List curated collections (acid, editorial) with titles, descriptions, and member counts.
blocks_inspecttype: tool
Inspect a Pax blocks asset: metadata, dependencies, files, tier, and reduced-motion behavior.
motion_personalitiestype: tool
List the five Pax motion personalities with durations, easing, stagger, and reduced-motion strategies.
blocks_addtype: tool
Install a Pax block into components/pax/ in the host project.
demo_templatestype: tool
List demo video templates and presets.
render_demotype: tool
Render a demo document or template to video. Writes video artifacts.
Related
Was this page helpful?
Answers are not recorded or transmitted. Pax has no telemetry.