list_all_categories
Retrieve all icon categories and their corresponding icon counts to organize and explore available icons efficiently in Lucide Icons MCP.
Instructions
List all available icon categories with their icon counts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {},
"type": "object"
}
Implementation Reference
- src/utils.ts:211-217 (registration)Registers the 'list_all_categories' MCP tool. Includes schema (empty object, no input params), inline handler that returns JSON of all categories using createTextResponse helper, and description.// Tool: list_all_categories server.tool( "list_all_categories", "List all available icon categories with their icon counts", {}, async () => createTextResponse(categories) );
- src/utils.ts:14-20 (helper)Helper function used by the tool handler to format the categories data as a text content response with JSON stringified.const createTextResponse = (data: any) => ({ content: [ { type: "text" as const, text: JSON.stringify(data, null, 2) } ]