@@ -20,6 +20,9 @@ import { type ToolModule } from './server.toolsUser';
2020 * @property maxSearchLength - Maximum length for search strings.
2121 * @property recommendedMaxDocsToLoad - Recommended maximum number of docs to load.
2222 * @property {typeof MODE_LEVELS } mode - Specifies the mode of operation.
23+ * - `cli`: Command-line interface mode.
24+ * - `programmatic`: Programmatic interaction mode where the application is used as a library or API.
25+ * - `test`: Testing or debugging mode.
2326 * @property {ModeOptions } modeOptions - Mode-specific options.
2427 * @property name - Name of the package.
2528 * @property nodeVersion - Node.js major version.
@@ -159,18 +162,27 @@ interface ModeOptions {
159162/**
160163 * PatternFly-specific options.
161164 *
162- * @property availableResourceVersions List of intended available PatternFly resource versions to the MCP server.
165+ * @property availableResourceVersions List of available PatternFly resource versions to the MCP server.
166+ * @property availableSearchVersions List of available PatternFly search versions to the MCP server.
167+ * @property availableSchemasVersions List of available PatternFly schema versions to the MCP server.
163168 * @property default Default specific options.
164- * @property default.defaultVersion Default PatternFly version.
169+ * @property default.latestSemVer Default PatternFly `SemVer` major version (e.g., '6.0.0').
170+ * @property default.latestVersion Default PatternFly `tag` major version, used for display and file paths (e.g., 'v6').
171+ * @property default.latestSchemasVersion Default PatternFly `tag` major version, used for schemas.
165172 * @property default.versionWhitelist List of mostly reliable dependencies to scan for when detecting the PatternFly version.
166173 * @property default.versionStrategy Strategy to use when multiple PatternFly versions are detected.
167174 * - 'highest': Use the highest major version found.
168175 * - 'lowest': Use the lowest major version found.
169176 */
170177interface PatternFlyOptions {
171- availableResourceVersions : string [ ] ;
178+ availableResourceVersions : ( '6.0.0' ) [ ] ;
179+ // availableSearchVersions: ('current' | 'detected' | 'latest' | 'v3' | 'v4' | 'v5' | 'v6')[];
180+ availableSearchVersions : ( 'current' | 'detected' | 'latest' | 'v6' ) [ ] ;
181+ availableSchemasVersions : ( 'v6' ) [ ] ;
172182 default : {
173- defaultVersion : string ;
183+ latestSemVer : '6.0.0' ;
184+ latestVersion : 'v6' ;
185+ latestSchemasVersion : 'v6' ;
174186 versionWhitelist : string [ ] ;
175187 versionStrategy : 'highest' | 'lowest' ;
176188 }
@@ -349,8 +361,12 @@ const LOG_BASENAME = 'pf-mcp:log';
349361 */
350362const PATTERNFLY_OPTIONS : PatternFlyOptions = {
351363 availableResourceVersions : [ '6.0.0' ] ,
364+ availableSearchVersions : [ 'current' , 'latest' , 'v6' ] ,
365+ availableSchemasVersions : [ 'v6' ] ,
352366 default : {
353- defaultVersion : '6.0.0' ,
367+ latestSemVer : '6.0.0' ,
368+ latestVersion : 'v6' ,
369+ latestSchemasVersion : 'v6' ,
354370 versionWhitelist : [
355371 '@patternfly/react-core' ,
356372 '@patternfly/patternfly'
@@ -366,11 +382,6 @@ const URL_REGEX = /^(https?:)\/\//i;
366382
367383/**
368384 * Available operational modes for the MCP server.
369- *
370- * Each mode represents an operational domain:
371- * - `cli`: Command-line interface mode.
372- * - `programmatic`: Programmatic interaction mode where the application is used as a library or API.
373- * - `test`: Testing or debugging mode.
374385 */
375386const MODE_LEVELS : DefaultOptions [ 'mode' ] [ ] = [ 'cli' , 'programmatic' , 'test' ] ;
376387
0 commit comments