UNPKG

reactbits-mcp-server

Version:

MCP Server for React Bits - Access 99+ React components with animations, backgrounds, and UI elements

135 lines (134 loc) 3.99 kB
import { z } from 'zod'; import { handleGetComponent } from './get-component.js'; import { handleGetComponentDemo } from './get-component-demo.js'; import { handleListComponents } from './list-components.js'; import { handleGetComponentMetadata } from './get-component-metadata.js'; import { handleSearchComponents } from './search-components.js'; /** * Tool handlers mapping */ export declare const toolHandlers: { get_component: typeof handleGetComponent; get_component_demo: typeof handleGetComponentDemo; list_components: typeof handleListComponents; get_component_metadata: typeof handleGetComponentMetadata; search_components: typeof handleSearchComponents; }; /** * Tool schemas for validation */ export declare const toolSchemas: { get_component: z.ZodObject<{ componentName: z.ZodString; }, "strip", z.ZodTypeAny, { componentName: string; }, { componentName: string; }>; get_component_demo: z.ZodObject<{ componentName: z.ZodString; }, "strip", z.ZodTypeAny, { componentName: string; }, { componentName: string; }>; list_components: z.ZodObject<{ category: z.ZodOptional<z.ZodEnum<["Animations", "Backgrounds", "Components", "TextAnimations"]>>; }, "strip", z.ZodTypeAny, { category?: "Animations" | "Backgrounds" | "Components" | "TextAnimations" | undefined; }, { category?: "Animations" | "Backgrounds" | "Components" | "TextAnimations" | undefined; }>; get_component_metadata: z.ZodObject<{ componentName: z.ZodString; }, "strip", z.ZodTypeAny, { componentName: string; }, { componentName: string; }>; search_components: z.ZodObject<{ query: z.ZodString; category: z.ZodOptional<z.ZodEnum<["Animations", "Backgrounds", "Components", "TextAnimations"]>>; }, "strip", z.ZodTypeAny, { query: string; category?: "Animations" | "Backgrounds" | "Components" | "TextAnimations" | undefined; }, { query: string; category?: "Animations" | "Backgrounds" | "Components" | "TextAnimations" | undefined; }>; }; /** * Tools configuration for MCP server */ export declare const tools: { get_component: { description: string; inputSchema: { type: string; properties: { componentName: { type: string; description: string; }; }; required: string[]; }; }; get_component_demo: { description: string; inputSchema: { type: string; properties: { componentName: { type: string; description: string; }; }; required: string[]; }; }; list_components: { description: string; inputSchema: { type: string; properties: { category: { type: string; enum: string[]; description: string; }; }; }; }; get_component_metadata: { description: string; inputSchema: { type: string; properties: { componentName: { type: string; description: string; }; }; required: string[]; }; }; search_components: { description: string; inputSchema: { type: string; properties: { query: { type: string; description: string; }; category: { type: string; enum: string[]; description: string; }; }; required: string[]; }; }; };