AI agents

Ask your coding agent to discover, inspect, and install Sona UI components directly in your project.

Sona UI is designed for source-owned installation. Your agent can use the registry to bring the component into your codebase, then adapt it to your existing tokens and layout.

How the pieces fit

LayerWhat it does
RegistryDelivers source files, dependencies, and foundations through the Sona namespace.
Agent catalogHelps an agent select a component by intent, capability, accessibility, and motion.
Sona UI skillTeaches the agent how to inspect, install, compose, and validate components.
MCPGives supported clients natural-language access to the shadcn registry.

The registry namespace is:

text

Recommended path

  1. Connect your agent.
  2. Install the Sona UI skill.
  3. Ask the agent to find a component by the interaction you need.
  4. Review its detail resource before installation.
  5. Install it through the registry and validate the consumer project.

Example requests

text
text
text

Direct resources

The official shadcn MCP server is the supported MCP path. Sona UI does not require a custom MCP server for registry discovery or installation.

Connect your agent

Configure the Sona UI registry in the project where your agent will work. Then connect the official shadcn MCP server for natural-language discovery and installation.

Add this entry to the components configuration file:

text
json
components.json

MCP configuration

toml
~/.codex/config.toml

Verify the connection

Ask your agent:

text

The agent should identify this component:

text

Explain why it fits and link to its documentation or registry item.

Troubleshooting

If the registry is not found, check that the components configuration contains the Sona namespace and the item URL placeholder shown below. If MCP is not connected, check the client configuration, restart the client, and verify that the official shadcn MCP server appears as connected.

text

When installation fails, classify the boundary first:

  • Consumer configuration: aliases, CSS entry point, framework version, or permissions.
  • Registry payload: missing file, dependency, target, or foundation.
  • Deployment: a public registry or documentation URL is unreachable.

If the skill is not detected, confirm it was installed to the directory expected by the client, then restart or reload the client. For local registry testing, use:

text