@mantine/mcp-server 9.0.0-alpha.2
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/LICENSE +21 -0
- package/README.md +21 -0
- package/bin/mantine-mcp-server.cjs +3 -0
- package/cjs/data-client.cjs +162 -0
- package/cjs/data-client.cjs.map +1 -0
- package/cjs/index.cjs +8 -0
- package/cjs/index.cjs.map +1 -0
- package/cjs/server.cjs +271 -0
- package/cjs/server.cjs.map +1 -0
- package/esm/data-client.mjs +160 -0
- package/esm/data-client.mjs.map +1 -0
- package/esm/index.mjs +6 -0
- package/esm/index.mjs.map +1 -0
- package/esm/server.mjs +269 -0
- package/esm/server.mjs.map +1 -0
- package/lib/data-client.d.ts +53 -0
- package/lib/index.d.mts +2 -0
- package/lib/index.d.ts +2 -0
- package/lib/server.d.ts +1 -0
- package/lib/types.d.ts +41 -0
- package/package.json +43 -0
package/lib/server.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function startServer(): void;
|
package/lib/types.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type ItemKind = 'component' | 'hook';
|
|
2
|
+
export interface IndexItem {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
kind: ItemKind;
|
|
6
|
+
package: string;
|
|
7
|
+
route: string;
|
|
8
|
+
description: string;
|
|
9
|
+
propsCount: number;
|
|
10
|
+
llmUrl: string;
|
|
11
|
+
componentDataUrl: string;
|
|
12
|
+
searchText: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ItemData extends Omit<IndexItem, 'componentDataUrl'> {
|
|
15
|
+
source?: string;
|
|
16
|
+
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
|
+
}
|
|
27
|
+
export interface ListItemsArgs {
|
|
28
|
+
kind?: ItemKind;
|
|
29
|
+
package?: string;
|
|
30
|
+
query?: string;
|
|
31
|
+
limit?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface GetItemArgs {
|
|
34
|
+
name: string;
|
|
35
|
+
kind?: ItemKind;
|
|
36
|
+
}
|
|
37
|
+
export interface SearchDocsArgs {
|
|
38
|
+
kind?: ItemKind;
|
|
39
|
+
query: string;
|
|
40
|
+
limit?: number;
|
|
41
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mantine/mcp-server",
|
|
3
|
+
"version": "9.0.0-alpha.2",
|
|
4
|
+
"description": "MCP server for Mantine documentation",
|
|
5
|
+
"homepage": "https://mantine.dev",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Vitaly Rtishchev <rtivital@gmail.com>",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"ai",
|
|
10
|
+
"docs",
|
|
11
|
+
"mantine",
|
|
12
|
+
"mcp",
|
|
13
|
+
"model-context-protocol",
|
|
14
|
+
"react"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"main": "./cjs/index.cjs",
|
|
18
|
+
"module": "./esm/index.mjs",
|
|
19
|
+
"types": "./lib/index.d.ts",
|
|
20
|
+
"bin": {
|
|
21
|
+
"mantine-mcp-server": "./bin/mantine-mcp-server.cjs"
|
|
22
|
+
},
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./lib/index.d.mts",
|
|
27
|
+
"default": "./esm/index.mjs"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./lib/index.d.ts",
|
|
31
|
+
"default": "./cjs/index.cjs"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"url": "https://github.com/mantinedev/mantine.git",
|
|
37
|
+
"type": "git",
|
|
38
|
+
"directory": "packages/@mantine/mcp-server"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=20.9.0"
|
|
42
|
+
}
|
|
43
|
+
}
|