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.

19 lines (18 loc) 791 B
import { ACETERNITY_COMPONENTS } from "../utils/components-data.js"; import { searchComponents as searchUtil, formatComponentInfo } from "../utils/index.js"; export async function searchComponents(args) { const { query, category } = args; const results = searchUtil(ACETERNITY_COMPONENTS, query, category); return { message: `Found ${results.length} components matching your search`, components: results.map(component => ({ name: component.name, description: component.description, category: component.category, installCommand: component.installCommand, isPro: component.isPro, tags: component.tags })), formattedResults: results.map(formatComponentInfo).join("\n") }; }