list_all_components
Retrieve all available PrimeNG UI components with brief descriptions to explore options for Angular development.
Instructions
Lista todos los componentes disponibles en PrimeNG con una breve descripción
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/ListComponentsTool.ts:9-17 (handler)The ListComponentsTool class provides the core handler implementation for the 'list_all_components' tool. The constructor sets the tool name, and the execute method generates the formatted list of components using COMPONENT_CATEGORIES.export class ListComponentsTool extends BaseTool { constructor() { super('list_all_components'); } async execute(_args: Record<string, any>): Promise<ToolResponse> { return this.createResponse(formatComponentList(COMPONENT_CATEGORIES)); } }
- src/models/ToolSchemas.ts:51-60 (schema)Function that defines the JSON schema for the list_all_components tool, specifying name, description, and empty input schema.export function createListAllComponentsSchema(): Tool { return { name: "list_all_components", description: "Lista todos los componentes disponibles en PrimeNG con una breve descripción", inputSchema: { type: "object", properties: {}, }, }; }
- src/server/PrimeNGServer.ts:211-212 (registration)Registration and dispatching logic in the MCP CallToolRequestSchema handler's switch statement, calling the tool instance's run method.case "list_all_components": return await this.listComponentsTool.run(args);
- src/server/PrimeNGServer.ts:183-183 (registration)The tool schema is registered in the ListToolsRequestSchema handler's tools array.createListAllComponentsSchema(),
- src/server/PrimeNGServer.ts:140-140 (registration)Instantiation of the ListComponentsTool class instance used for handling tool calls.this.listComponentsTool = new ListComponentsTool();