@maz-ui/mcp 4.8.0 → 4.9.0
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.
- package/README.md +3 -7
- package/dist/mcp.d.mts +36 -10
- package/dist/mcp.d.ts +36 -10
- package/dist/mcp.mjs +768 -483
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -179,13 +179,9 @@ A Model Context Protocol (MCP) server that provides AI assistants with comprehen
|
|
|
179
179
|
|
|
180
180
|
The MCP server provides the following tools that AI assistants can use:
|
|
181
181
|
|
|
182
|
-
- **`
|
|
183
|
-
- **`
|
|
184
|
-
- **`
|
|
185
|
-
- **`list_composables`** - List all Vue composables
|
|
186
|
-
- **`list_directives`** - List all Vue directives
|
|
187
|
-
- **`list_plugins`** - List all Vue plugins
|
|
188
|
-
- **`list_helpers`** - List all utility helpers
|
|
182
|
+
- **`search`** — Search across ALL Maz-UI documentation using a powerful unified search engine. Returns ranked results with contextual snippets.
|
|
183
|
+
- **`get_doc`** — Get the complete documentation for a specific item.
|
|
184
|
+
- **`list`** — Browse all available Maz-UI documentation grouped by category.
|
|
189
185
|
|
|
190
186
|
## Available Resources
|
|
191
187
|
|
package/dist/mcp.d.mts
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
|
|
2
|
+
interface SectionMetadata {
|
|
3
|
+
title: string;
|
|
4
|
+
level: number;
|
|
5
|
+
content: string;
|
|
6
|
+
}
|
|
7
|
+
interface DocumentMetadata {
|
|
8
|
+
name: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
type: string;
|
|
11
|
+
description: string;
|
|
12
|
+
tags: string[];
|
|
13
|
+
props?: string[];
|
|
14
|
+
slots?: string[];
|
|
15
|
+
events?: string[];
|
|
16
|
+
sections: SectionMetadata[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
type DocumentType = 'component' | 'guide' | 'composable' | 'directive' | 'plugin' | 'helper';
|
|
20
|
+
interface Document {
|
|
21
|
+
name: string;
|
|
22
|
+
type: DocumentType;
|
|
23
|
+
content: string;
|
|
24
|
+
metadata: DocumentMetadata;
|
|
25
|
+
}
|
|
2
26
|
interface DocumentationDiagnostics {
|
|
3
27
|
components: {
|
|
4
28
|
total: number;
|
|
@@ -46,6 +70,7 @@ declare class DocumentationService {
|
|
|
46
70
|
private readonly directivesDir;
|
|
47
71
|
private readonly pluginsDir;
|
|
48
72
|
private readonly helpersDir;
|
|
73
|
+
private readonly metadataExtractor;
|
|
49
74
|
constructor();
|
|
50
75
|
private pascalToKebabCase;
|
|
51
76
|
private readMarkdownFile;
|
|
@@ -62,6 +87,8 @@ declare class DocumentationService {
|
|
|
62
87
|
getAllPlugins(): string[];
|
|
63
88
|
getHelperDocumentation(helperName: string): string;
|
|
64
89
|
getAllHelpers(): string[];
|
|
90
|
+
getAllDocuments(): Document[];
|
|
91
|
+
private buildDocument;
|
|
65
92
|
getOverview(): string;
|
|
66
93
|
searchDocumentation(query: string): string[];
|
|
67
94
|
getDiagnostics(): DocumentationDiagnostics;
|
|
@@ -75,6 +102,7 @@ declare class DocumentationService {
|
|
|
75
102
|
declare class MazUiMcpServer {
|
|
76
103
|
private server;
|
|
77
104
|
private documentationService;
|
|
105
|
+
private unifiedSearchService;
|
|
78
106
|
private documentationIndex;
|
|
79
107
|
constructor();
|
|
80
108
|
getDocumentationService(): DocumentationService;
|
|
@@ -96,17 +124,15 @@ declare class MazUiMcpServer {
|
|
|
96
124
|
*/
|
|
97
125
|
private getHelperType;
|
|
98
126
|
/**
|
|
99
|
-
*
|
|
100
|
-
|
|
101
|
-
private fuzzySearch;
|
|
102
|
-
/**
|
|
103
|
-
* Calculate fuzzy match score
|
|
104
|
-
*/
|
|
105
|
-
private calculateFuzzyScore;
|
|
106
|
-
/**
|
|
107
|
-
* Search in documentation index with fuzzy matching
|
|
127
|
+
* Resolve a document name using intelligent matching:
|
|
128
|
+
* PascalCase (MazBtn), kebab-case (maz-btn), short name (btn), aliases
|
|
108
129
|
*/
|
|
109
|
-
private
|
|
130
|
+
private resolveDocumentName;
|
|
131
|
+
private handleSearch;
|
|
132
|
+
private handleList;
|
|
133
|
+
private handleGetDoc;
|
|
134
|
+
private handleDocNotFound;
|
|
135
|
+
private getDocumentContent;
|
|
110
136
|
private setupHandlers;
|
|
111
137
|
run(): Promise<void>;
|
|
112
138
|
}
|
package/dist/mcp.d.ts
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
|
|
2
|
+
interface SectionMetadata {
|
|
3
|
+
title: string;
|
|
4
|
+
level: number;
|
|
5
|
+
content: string;
|
|
6
|
+
}
|
|
7
|
+
interface DocumentMetadata {
|
|
8
|
+
name: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
type: string;
|
|
11
|
+
description: string;
|
|
12
|
+
tags: string[];
|
|
13
|
+
props?: string[];
|
|
14
|
+
slots?: string[];
|
|
15
|
+
events?: string[];
|
|
16
|
+
sections: SectionMetadata[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
type DocumentType = 'component' | 'guide' | 'composable' | 'directive' | 'plugin' | 'helper';
|
|
20
|
+
interface Document {
|
|
21
|
+
name: string;
|
|
22
|
+
type: DocumentType;
|
|
23
|
+
content: string;
|
|
24
|
+
metadata: DocumentMetadata;
|
|
25
|
+
}
|
|
2
26
|
interface DocumentationDiagnostics {
|
|
3
27
|
components: {
|
|
4
28
|
total: number;
|
|
@@ -46,6 +70,7 @@ declare class DocumentationService {
|
|
|
46
70
|
private readonly directivesDir;
|
|
47
71
|
private readonly pluginsDir;
|
|
48
72
|
private readonly helpersDir;
|
|
73
|
+
private readonly metadataExtractor;
|
|
49
74
|
constructor();
|
|
50
75
|
private pascalToKebabCase;
|
|
51
76
|
private readMarkdownFile;
|
|
@@ -62,6 +87,8 @@ declare class DocumentationService {
|
|
|
62
87
|
getAllPlugins(): string[];
|
|
63
88
|
getHelperDocumentation(helperName: string): string;
|
|
64
89
|
getAllHelpers(): string[];
|
|
90
|
+
getAllDocuments(): Document[];
|
|
91
|
+
private buildDocument;
|
|
65
92
|
getOverview(): string;
|
|
66
93
|
searchDocumentation(query: string): string[];
|
|
67
94
|
getDiagnostics(): DocumentationDiagnostics;
|
|
@@ -75,6 +102,7 @@ declare class DocumentationService {
|
|
|
75
102
|
declare class MazUiMcpServer {
|
|
76
103
|
private server;
|
|
77
104
|
private documentationService;
|
|
105
|
+
private unifiedSearchService;
|
|
78
106
|
private documentationIndex;
|
|
79
107
|
constructor();
|
|
80
108
|
getDocumentationService(): DocumentationService;
|
|
@@ -96,17 +124,15 @@ declare class MazUiMcpServer {
|
|
|
96
124
|
*/
|
|
97
125
|
private getHelperType;
|
|
98
126
|
/**
|
|
99
|
-
*
|
|
100
|
-
|
|
101
|
-
private fuzzySearch;
|
|
102
|
-
/**
|
|
103
|
-
* Calculate fuzzy match score
|
|
104
|
-
*/
|
|
105
|
-
private calculateFuzzyScore;
|
|
106
|
-
/**
|
|
107
|
-
* Search in documentation index with fuzzy matching
|
|
127
|
+
* Resolve a document name using intelligent matching:
|
|
128
|
+
* PascalCase (MazBtn), kebab-case (maz-btn), short name (btn), aliases
|
|
108
129
|
*/
|
|
109
|
-
private
|
|
130
|
+
private resolveDocumentName;
|
|
131
|
+
private handleSearch;
|
|
132
|
+
private handleList;
|
|
133
|
+
private handleGetDoc;
|
|
134
|
+
private handleDocNotFound;
|
|
135
|
+
private getDocumentContent;
|
|
110
136
|
private setupHandlers;
|
|
111
137
|
run(): Promise<void>;
|
|
112
138
|
}
|