list_categories
Retrieve all component categories from the ReactBits MCP Server to browse available animated React components for development projects.
Instructions
List all available component categories
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/services/ReactBitsService.ts:172-174 (handler)Core handler function that executes the list_categories tool logic by returning mapped category names from the component registry.async listCategories(): Promise<string[]> { return componentRegistry.categories.map(cat => cat.name); }
- src/index.ts:105-113 (registration)Registers the 'list_categories' tool in the MCP server with name, description, and empty input schema.{ name: 'list_categories', description: 'List all available component categories', inputSchema: { type: 'object', properties: {}, }, }, ];
- src/index.ts:202-212 (handler)Dispatch handler in the MCP server that invokes the service method and returns the JSON-formatted response.case 'list_categories': { const categories = await reactBitsService.listCategories(); return { content: [ { type: 'text', text: JSON.stringify(categories, null, 2), }, ], }; }
- src/index.ts:108-111 (schema)Input schema for the list_categories tool, which accepts no parameters.inputSchema: { type: 'object', properties: {}, },