get_theming_guide
Access the PrimeNG theming guide to learn how to customize themes, apply dark mode, and modify component styling for Angular applications.
Instructions
Obtiene la guía de theming de PrimeNG (temas, personalización, modo oscuro)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/GetGuideTool.ts:28-50 (handler)Core handler logic executed for get_theming_guide: checks cache, scrapes the 'theming' guide if needed, 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/GetThemingGuideTool.ts:9-13 (handler)Specific GetThemingGuideTool class that configures the base handler for the 'get_theming_guide' tool with 'theming' guide topic.export class GetThemingGuideTool extends GetGuideTool { constructor(scraperService: DocsScraperService, cacheService: CacheService) { super('get_theming_guide', 'theming', scraperService, cacheService); } }
- src/models/ToolSchemas.ts:125-134 (schema)Defines the input schema and metadata for the get_theming_guide tool (no input params required).export function createGetThemingGuideSchema(): Tool { return { name: "get_theming_guide", description: "Obtiene la guía de theming de PrimeNG (temas, personalización, modo oscuro)", inputSchema: { type: "object", properties: {}, }, }; }
- src/server/PrimeNGServer.ts:156-159 (registration)Instantiates the GetThemingGuideTool with scraper and cache services during server initialization.this.getThemingGuideTool = new GetThemingGuideTool( this.docsScraperService, this.cacheService );
- src/server/PrimeNGServer.ts:224-225 (registration)Registers the dispatch handler in the MCP callTool request to route 'get_theming_guide' calls to the tool instance.case "get_theming_guide": return await this.getThemingGuideTool.run(args);