@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
71 lines • 1.9 kB
TypeScript
#!/usr/bin/env node
/**
* ReactBits MCP Server
*
* Provides Model Context Protocol (MCP) access to ReactBits component library.
* This server allows LLMs and other AI systems to browse, search, and retrieve
* React components from the ReactBits library.
*
* Features:
* - List all 107 ReactBits components
* - Search components by name or category
* - Get component source code in multiple variants (JS, JS+Tailwind, TS, TS+Tailwind)
* - List categories with component counts
* - Generate installation commands for components
*/
declare class ReactBitsServer {
private server;
private reactBitsService;
constructor();
/**
* Setup MCP tool handlers
* Tools will be implemented in subsequent tasks following TurnBold methodology
*/
private setupToolHandlers;
/**
* Setup error handling for the MCP server
*/
private setupErrorHandling;
/**
* Handle list_components tool
*/
private handleListComponents;
/**
* Handle get_component_code tool (com integração GitHub)
*/
private handleGetComponentCode;
/**
* Gerar template básico do componente (fallback)
*/
private generateComponentTemplate;
/**
* Handle search_components tool
*/
private handleSearchComponents;
/**
* Handle list_categories tool
*/
private handleListCategories;
/**
* Handle install_component tool
*/
private handleInstallComponent;
/**
* Handle get_reactbits_stats tool
*/
private handleGetReactBitsStats;
/**
* Handle advanced_search tool (corrigido)
*/
private handleAdvancedSearch;
/**
* Handle get_component_docs tool
*/
private handleGetComponentDocs;
/**
* Start the ReactBits MCP server
*/
start(): Promise<void>;
}
export { ReactBitsServer };
//# sourceMappingURL=index.d.ts.map