get_installation_guide
Retrieve the installation and initial configuration guide for PrimeNG, an Angular UI component library, to set up the framework in your Angular projects.
Instructions
Obtiene la guía de instalación y configuración inicial de PrimeNG
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/GetGuideTool.ts:28-50 (handler)Core handler logic that executes the tool: checks cache for 'installation' guide, scrapes from docs if missing using DocsScraperService.scrapeGuide('installation'), caches result, formats with formatGuideDoc, handles errors.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}` ); } }
- Specific tool class for 'get_installation_guide' that configures GetGuideTool with tool name and 'installation' guide section.export class GetInstallationGuideTool extends GetGuideTool { constructor(scraperService: DocsScraperService, cacheService: CacheService) { super('get_installation_guide', 'installation', scraperService, cacheService); } }
- src/models/ToolSchemas.ts:108-120 (schema)Defines the tool schema including name, description, and empty input schema (no parameters required)./** * Creates the schema for get_installation_guide tool */ export function createGetInstallationGuideSchema(): Tool { return { name: "get_installation_guide", description: "Obtiene la guía de instalación y configuración inicial de PrimeNG", inputSchema: { type: "object", properties: {}, }, }; }
- src/server/PrimeNGServer.ts:151-154 (registration)Instantiates the GetInstallationGuideTool instance with DocsScraperService and CacheService during server initialization.this.getInstallationGuideTool = new GetInstallationGuideTool( this.docsScraperService, this.cacheService );
- src/server/PrimeNGServer.ts:221-222 (registration)Registers the tool handler in the MCP call tool request switch statement, delegating to tool.run(args).case "get_installation_guide": return await this.getInstallationGuideTool.run(args);
- src/server/PrimeNGServer.ts:187-187 (registration)Registers the tool schema in the MCP list tools request handler.createGetInstallationGuideSchema(),