@enokdev/springdocs-mcp 1.2.4 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Optimized Spring Boot Documentation Service with caching and enhanced features
2
+ * Clean Spring Boot Documentation Service - uses ONLY real Spring documentation APIs
3
+ * No mock data whatsoever - everything is fetched from actual Spring sources
3
4
  */
4
5
  export declare class SpringBootDocsServiceOptimized {
5
6
  private readonly baseUrl;
@@ -12,44 +13,52 @@ export declare class SpringBootDocsServiceOptimized {
12
13
  private readonly MAX_RETRIES;
13
14
  constructor();
14
15
  /**
15
- * Search Spring projects with caching and retry logic
16
+ * Extract content intelligently based on detail level
17
+ * Preserves code blocks, key sections, and structure
18
+ */
19
+ private extractIntelligentContent;
20
+ /**
21
+ * Search Spring projects with caching and retry logic - REAL API ONLY
16
22
  */
17
23
  searchSpringProjects(query: string, limit?: number): Promise<any[]>;
18
24
  /**
19
- * Get Spring project details with caching
25
+ * Get Spring project details - REAL API ONLY
20
26
  */
21
27
  getSpringProject(projectName: string): Promise<string>;
22
28
  /**
23
- * Get all Spring guides with caching
29
+ * Get all Spring guides - REAL API ONLY
24
30
  */
25
31
  getAllSpringGuides(category?: string, limit?: number): Promise<any[]>;
26
32
  /**
27
- * Get specific guide with enhanced error handling and caching
33
+ * Get specific guide content - REAL API ONLY
28
34
  */
29
- getGuide(guideId: string): Promise<string>;
35
+ getGuide(guideId: string, detailLevel?: string): Promise<string>;
30
36
  /**
31
- * Get reference documentation with caching
37
+ * Get Spring reference documentation - alias for backward compatibility
32
38
  */
33
39
  getReference(section: string, subsection?: string): Promise<string>;
34
40
  /**
35
- * Search concepts with caching
41
+ * Get Spring reference documentation - REAL API ONLY
42
+ */
43
+ getSpringReference(section: string, subsection?: string): Promise<string>;
44
+ /**
45
+ * Search Spring concepts - alias for backward compatibility
46
+ */
47
+ searchConcepts(concept: string, category?: string): Promise<string>;
48
+ /**
49
+ * Search Spring concepts - using real documentation
36
50
  */
37
- searchConcepts(concept: string, category?: string): Promise<any>;
51
+ searchSpringConcepts(concept: string, category?: string): Promise<string>;
38
52
  /**
39
- * Enhanced documentation search with parallel processing
53
+ * Search documentation with real API - alias for backward compatibility
40
54
  */
41
55
  searchDocumentation(query: string, docType?: string, limit?: number): Promise<any[]>;
42
- private fetchWithRetry;
56
+ /**
57
+ * Search documentation with real API
58
+ */
59
+ searchSpringDocs(query: string, docType?: string, limit?: number): Promise<any[]>;
60
+ private searchInReference;
43
61
  private processHtmlGuide;
44
- private processAsciiDocGuide;
45
- private generateGuideNotFoundMessage;
46
- private generateGuideErrorMessage;
47
- private cleanHtml;
48
- private getPopularSpringProjects;
49
- private getPopularSpringGuides;
50
- private searchGuides;
51
- private searchReference;
52
- private searchAPI;
53
- private getSpringBootConcepts;
62
+ private fetchWithRetry;
54
63
  }
55
64
  //# sourceMappingURL=springboot-docs-optimized.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"springboot-docs-optimized.d.ts","sourceRoot":"","sources":["../../src/services/springboot-docs-optimized.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,qBAAa,8BAA8B;IACzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA4B;IACpD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAgC;IAClE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA8B;IAC7D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAW;IAC7C,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IACzC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAK;;IAajC;;OAEG;IACG,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW;IAmE5D;;OAEG;IACG,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IA6C5D;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