UNPKG

aceternityui-mcp

Version:

A Model Context Protocol (MCP) server that provides seamless integration with the Aceternity UI Components. This package enables AI assistants and applications to interact with Aceternity UI Components, usage and install commands.

27 lines (26 loc) 1.07 kB
import { ACETERNITY_COMPONENTS } from "../utils/components-data.js"; import { formatInstallationSteps } from "../utils/index.js"; export async function getInstallationInfo(args) { const { componentName } = args; const component = ACETERNITY_COMPONENTS.find(comp => comp.name.toLowerCase() === componentName.toLowerCase()); if (!component) { throw new Error(`Component "${componentName}" not found`); } const installInfo = { component: component.name, command: component.installCommand, withExample: `${component.installCommand} -e`, dependencies: component.dependencies, steps: [ "Run the installation command", "Import the component in your React/Next.js project", "Ensure Tailwind CSS is configured", "Add Framer Motion to your project if not already present", "Customize the component as needed" ] }; return { installationInfo: installInfo, formattedSteps: formatInstallationSteps(installInfo) }; }