get_tailwind_guide
Retrieve the integration guide for combining PrimeNG components with Tailwind CSS styling in Angular applications.
Instructions
Obtiene la guía de integración de PrimeNG con Tailwind CSS
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/GetGuideTool.ts:28-50 (handler)Core handler logic for the get_tailwind_guide tool: checks cache, scrapes the 'tailwind' guide from PrimeNG docs, caches result, formats and returns it.async execute(_args: Record<string, any>): Promise<ToolResponse> { try { // Check cache first const cachedGuide = await this.cacheService.getGuide(this.guideName); if (cachedGuide) { logger.info(`Returning cached guide: ${this.guideName}`); return this.createResponse(formatGuideDoc(cachedGuide)); } // Scrape guide const guide = await this.scraperService.scrapeGuide(this.guideName); // Cache the result await this.cacheService.setGuide(this.guideName, guide); return this.createResponse(formatGuideDoc(guide)); } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); return this.createErrorResponse( `Failed to get ${this.guideName} guide: ${errorMessage}` ); } }
- src/tools/GetTailwindGuideTool.ts:9-13 (handler)Specific tool class for get_tailwind_guide, configures base class with tool name and 'tailwind' guide type.export class GetTailwindGuideTool extends GetGuideTool { constructor(scraperService: DocsScraperService, cacheService: CacheService) { super('get_tailwind_guide', 'tailwind', scraperService, cacheService); } }
- src/models/ToolSchemas.ts:153-162 (schema)Tool schema definition including name, description, and empty input schema (no parameters required).export function createGetTailwindGuideSchema(): Tool { return { name: "get_tailwind_guide", description: "Obtiene la guía de integración de PrimeNG con Tailwind CSS", inputSchema: { type: "object", properties: {}, }, }; }
- src/server/PrimeNGServer.ts:166-169 (registration)Instantiates the GetTailwindGuideTool during server initialization.this.getTailwindGuideTool = new GetTailwindGuideTool( this.docsScraperService, this.cacheService );
- src/server/PrimeNGServer.ts:230-231 (registration)Registers the tool handler in the MCP call_tool request dispatcher.case "get_tailwind_guide": return await this.getTailwindGuideTool.run(args);