@rpironato/mcp-reactbits-server
Version:
Enhanced MCP server for accessing ReactBits component library with GitHub API integration, advanced search, and comprehensive metadata - 107 components with real code access from DavidHDev/react-bits repository
53 lines • 2 kB
TypeScript
/**
* ReactBits Service - Core service for accessing ReactBits components
* This service will be fully implemented in Task 7
*/
import type { ComponentMetadata, ComponentCode, ComponentQuery, ComponentCategory, ComponentVersion } from '@/types/index.js';
/**
* Service class for accessing ReactBits component library
* Provides methods to read, search, and process ReactBits components
*/
export declare class ReactBitsService {
private readonly reactBitsPath;
constructor(reactBitsPath?: string);
/**
* Get all available components with basic metadata
* @returns Promise resolving to array of component metadata
*/
getAllComponents(): Promise<ComponentMetadata[]>;
/**
* Get source code for a specific component and version
* @param name Component name
* @param version Component version
* @returns Promise resolving to component code and metadata
*/
getComponentCode(name: string, version: ComponentVersion): Promise<ComponentCode>;
/**
* Search components based on query parameters
* @param query Search and filter parameters
* @returns Promise resolving to array of matching components
*/
searchComponents(query: ComponentQuery): Promise<ComponentMetadata[]>;
/**
* Get all categories with component counts
* @returns Promise resolving to array of category information
*/
getCategories(): Promise<Array<{
name: ComponentCategory;
count: number;
components: string[];
}>>;
/**
* Check if a component exists
* @param name Component name
* @returns Promise resolving to boolean indicating existence
*/
componentExists(name: string): Promise<boolean>;
/**
* Get available versions for a specific component
* @param name Component name
* @returns Promise resolving to array of available versions
*/
getComponentVersions(name: string): Promise<ComponentVersion[]>;
}
//# sourceMappingURL=index.d.ts.map