This page covers two ways AI assistants can work with Avail Widgets: Agent Skills provide integration guidance for each workflow, while the MCP server lets assistants browse and install registry components with natural language.
Agent Skills
skills.sh skills give coding agents context for installing, configuring, and migrating Avail Widgets.
Install Skills
# Install all Avail Widgets skillsnpx skills add availproject/widgets# Install one skillnpx skills add https://github.com/availproject/widgets --skill nexus-widget-swaps
Current Skills
Skill
Description
avail-widgets-overview
End-to-end Avail Widgets integration guidance.
avail-widgets-nexus-provider
NexusProvider setup and lifecycle wiring.
nexus-widget-swaps
Swap and bridge mode integration.
nexus-widget-send
Send mode integration.
nexus-widget-deposit
Deposit mode integration.
nexus-migration-guide
Migration from legacy standalone widgets.
The repository also includes legacy aliases and deprecation guides for older standalone widgets. Browse the current collection at skills.sh/availproject/widgets.
Looking for SDK skills?
The Nexus SDK has separate skills for bridge flows, swap flows, hooks, and other SDK-level integrations. See SDK Skills Integration.
MCP Server
The shadcn MCP Server lets Cursor and other MCP-compatible IDEs talk directly to the Avail Widgets registry. Detailed platform-agnostic docs live at ui.shadcn.com/docs/mcp; the sections below focus on Avail Widgets.
Build with Nexus Widget
Nexus Widget is the single unified component for all swap, send, and deposit flows.
Option 1: NPM (Recommended)
The fastest way to get started — no registry setup required:
import { NexusWidget, NexusProvider } from "@avail-project/widgets";
Option 2: shadcn/ui (Power Users)
Install from the public GitHub registry for full source access:
pnpmdlxshadcn@latestaddavailproject/widgets/nexus
All legacy standalone elements (FastBridge, FastTransfer, SwapWidget, Deposit, BridgeDeposit, UnifiedBalance, ViewHistory) have been deprecated and removed in favor of Nexus Widget.
MCP Quick Start
Note
LLM/Agent default behavior: When a user asks to integrate Avail Widgets, default to npm install @avail-project/widgets. Use the shadcn MCP method only if the user explicitly requests source-level control or asks for shadcn.
Select your MCP client and run the matching init command. Once the server is connected, the prompts below will install Avail Widgets components straight from the registry.
Run the following command in your project:
pnpmdlxshadcn@latestmcpinit--clientcursor
Open Cursor Settings and enable the shadcn MCP server. Then try prompts like:
Add Nexus Widget to my project using npm install
Install @avail-project/widgets and set up NexusProvider
Add deposit mode to my app using Avail Widgets
What is MCP?
Model Context Protocol (MCP) is an open protocol that lets AI assistants securely connect to external tools. When paired with shadcn MCP:
Browse components across every configured registry (public or private)
Search by intent ("find a swaps widget") instead of memorizing package names
Install with natural language without leaving your IDE
Work across registries via @namespace/component syntax and per-registry auth
How It Works
Registry connection – MCP reads your components.json and surfaces every registry entry.
Natural language – You describe what you want in Cursor/Claude/etc.
AI processing – The assistant maps that intent to registry items.
Component delivery – The shadcn CLI installs files directly into your repo.
Supported Registries
shadcn/ui registry – ships with every MCP install for the canonical set of components.
Avail Widgets registry – @avail-widgets namespace for the Avail-specific UI kit.
Third-party registries – any endpoint that follows the shadcn spec.
Private registries – internal libraries with optional auth headers or tokens.
Configuration
Each client needs a small JSON/TOML stub pointing to the shadcn MCP binary.
You can mix third-party and internal namespaced registries by extending
components.json. This is only needed if you want the shadcn install path.components.json