@mantine/mcp-server 9.6.3 → 9.7.1
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 +9 -4
- package/cjs/data-client.cjs +203 -73
- package/cjs/data-client.cjs.map +1 -1
- package/cjs/search.cjs +133 -0
- package/cjs/search.cjs.map +1 -0
- package/cjs/server.cjs +11 -234
- package/cjs/server.cjs.map +1 -1
- package/cjs/tools.cjs +108 -0
- package/cjs/tools.cjs.map +1 -0
- package/esm/data-client.mjs +203 -73
- package/esm/data-client.mjs.map +1 -1
- package/esm/search.mjs +132 -0
- package/esm/search.mjs.map +1 -0
- package/esm/server.mjs +11 -232
- package/esm/server.mjs.map +1 -1
- package/esm/tools.mjs +106 -0
- package/esm/tools.mjs.map +1 -0
- package/lib/data-client.d.ts +114 -35
- package/lib/search.d.ts +17 -0
- package/lib/server.d.ts +1 -0
- package/lib/tools.d.ts +4 -0
- package/lib/types.d.ts +51 -17
- package/package.json +5 -1
package/lib/types.d.ts
CHANGED
|
@@ -1,41 +1,75 @@
|
|
|
1
|
-
|
|
1
|
+
/** Kind of document, derived from its docs-site nav group */
|
|
2
|
+
export type DocKind = 'component' | 'hook' | 'guide' | 'faq';
|
|
3
|
+
/** Top-level nav group from the docs site */
|
|
4
|
+
export type NavGroup = 'gettingStarted' | 'theming' | 'hooks' | 'components' | 'extensions' | 'form';
|
|
5
|
+
/** A page record in the always-loaded index */
|
|
2
6
|
export interface IndexItem {
|
|
3
7
|
id: string;
|
|
4
8
|
name: string;
|
|
5
|
-
kind:
|
|
6
|
-
|
|
9
|
+
kind: DocKind;
|
|
10
|
+
group: NavGroup;
|
|
11
|
+
category: string;
|
|
12
|
+
package?: string;
|
|
7
13
|
route: string;
|
|
8
14
|
description: string;
|
|
15
|
+
searchTags?: string;
|
|
16
|
+
headings: string[];
|
|
9
17
|
propsCount: number;
|
|
18
|
+
hasSignature: boolean;
|
|
10
19
|
llmUrl: string;
|
|
11
|
-
|
|
20
|
+
docsUrl: string;
|
|
12
21
|
searchText: string;
|
|
13
22
|
}
|
|
14
|
-
|
|
23
|
+
/** A `##` section record in the lazily-loaded section index */
|
|
24
|
+
export interface SectionRecord {
|
|
25
|
+
id: string;
|
|
26
|
+
slug: string;
|
|
27
|
+
heading: string;
|
|
28
|
+
snippet: string;
|
|
29
|
+
}
|
|
30
|
+
/** Normalized prop metadata for a component */
|
|
31
|
+
export interface PropData {
|
|
32
|
+
name: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
required?: boolean;
|
|
35
|
+
defaultValue?: unknown;
|
|
36
|
+
type?: unknown;
|
|
37
|
+
sourceComponent: string;
|
|
38
|
+
}
|
|
39
|
+
/** Full per-page payload fetched on demand */
|
|
40
|
+
export interface DocData {
|
|
41
|
+
item: IndexItem;
|
|
42
|
+
intro: string;
|
|
43
|
+
sections: Array<{
|
|
44
|
+
heading: string;
|
|
45
|
+
slug: string;
|
|
46
|
+
body: string;
|
|
47
|
+
}>;
|
|
48
|
+
props: PropData[];
|
|
49
|
+
signature: string | null;
|
|
50
|
+
exportedTypeNames: string[] | null;
|
|
51
|
+
/** Repo-relative path to the component/hook implementation source */
|
|
15
52
|
source?: string;
|
|
53
|
+
/** Repo-relative path to the page's MDX documentation source */
|
|
16
54
|
docs?: string;
|
|
17
|
-
markdown: string;
|
|
18
|
-
props: Array<{
|
|
19
|
-
name: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
required?: boolean;
|
|
22
|
-
defaultValue?: unknown;
|
|
23
|
-
type?: unknown;
|
|
24
|
-
sourceComponent: string;
|
|
25
|
-
}>;
|
|
26
55
|
}
|
|
27
56
|
export interface ListItemsArgs {
|
|
28
|
-
kind?:
|
|
57
|
+
kind?: DocKind;
|
|
58
|
+
group?: NavGroup;
|
|
59
|
+
category?: string;
|
|
29
60
|
package?: string;
|
|
30
61
|
query?: string;
|
|
31
62
|
limit?: number;
|
|
32
63
|
}
|
|
33
64
|
export interface GetItemArgs {
|
|
34
65
|
name: string;
|
|
35
|
-
kind?:
|
|
66
|
+
kind?: DocKind;
|
|
67
|
+
section?: string;
|
|
68
|
+
full?: boolean;
|
|
36
69
|
}
|
|
37
70
|
export interface SearchDocsArgs {
|
|
38
|
-
kind?: ItemKind;
|
|
39
71
|
query: string;
|
|
72
|
+
kind?: DocKind;
|
|
73
|
+
package?: string;
|
|
40
74
|
limit?: number;
|
|
41
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/mcp-server",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.7.1",
|
|
4
4
|
"description": "MCP server for Mantine documentation",
|
|
5
5
|
"homepage": "https://mantine.dev",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,5 +37,9 @@
|
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=22"
|
|
39
39
|
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@modelcontextprotocol/server": "2.1.0",
|
|
42
|
+
"zod": "^4.6.5"
|
|
43
|
+
},
|
|
40
44
|
"bin": "./bin/mcp-server.cjs"
|
|
41
45
|
}
|