Skip to main content
Glama
ceorkm

ReactBits MCP Server

by ceorkm

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {}, }, }, ];
  • 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), }, ], }; }
  • Input schema for the list_categories tool, which accepts no parameters.
    inputSchema: { type: 'object', properties: {}, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ceorkm/reactbits-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server