@maz-ui/mcp 4.7.0 → 4.7.3
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/dist/mcp.mjs
CHANGED
|
@@ -4,10 +4,10 @@ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
|
4
4
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
5
5
|
import { ListResourcesRequestSchema, ReadResourceRequestSchema, ListToolsRequestSchema, CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import { existsSync, readFileSync, readdirSync } from 'node:fs';
|
|
7
|
-
import { resolve,
|
|
7
|
+
import { resolve, join, dirname } from 'node:path';
|
|
8
8
|
import { fileURLToPath } from 'node:url';
|
|
9
9
|
|
|
10
|
-
const version = "4.7.
|
|
10
|
+
const version = "4.7.2";
|
|
11
11
|
|
|
12
12
|
const _dirname = dirname(fileURLToPath(import.meta.url));
|
|
13
13
|
class DocumentationService {
|
|
@@ -568,7 +568,7 @@ class MazUiMcpServer {
|
|
|
568
568
|
if (!name && type !== "overview") {
|
|
569
569
|
throw new Error("Resource name is required");
|
|
570
570
|
}
|
|
571
|
-
let content
|
|
571
|
+
let content;
|
|
572
572
|
try {
|
|
573
573
|
switch (type) {
|
|
574
574
|
case "overview":
|
|
@@ -624,7 +624,7 @@ Use the MCP tools to explore components and features:
|
|
|
624
624
|
}]
|
|
625
625
|
};
|
|
626
626
|
} catch (error) {
|
|
627
|
-
throw new Error(`Failed to read ${type} documentation for "${name}": ${getErrorMessage(error)}
|
|
627
|
+
throw new Error(`Failed to read ${type} documentation for "${name}": ${getErrorMessage(error)}`, { cause: error });
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
this.server.setRequestHandler(ListToolsRequestSchema, () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
## Props
|
|
2
2
|
|
|
3
|
-
| Name | Description | Type
|
|
4
|
-
| ----------------- | ----------- |
|
|
5
|
-
| **id** | | `string`
|
|
6
|
-
| **model-value** | | `number`
|
|
7
|
-
| **content-class** | | `
|
|
3
|
+
| Name | Description | Type | Required |
|
|
4
|
+
| ----------------- | ----------- | ------------ | -------- |
|
|
5
|
+
| **id** | | `string` | No |
|
|
6
|
+
| **model-value** | | `number` | No |
|
|
7
|
+
| **content-class** | | `ClassValue` | No |
|
|
8
8
|
|
|
9
9
|
## Events
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maz-ui/mcp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.7.
|
|
4
|
+
"version": "4.7.3",
|
|
5
5
|
"description": "Maz-UI ModelContextProtocol Client",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -41,20 +41,19 @@
|
|
|
41
41
|
"docs"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
45
|
-
"@maz-ui/
|
|
46
|
-
"@maz-ui/
|
|
44
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
45
|
+
"@maz-ui/utils": "4.7.3",
|
|
46
|
+
"@maz-ui/node": "4.6.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@modelcontextprotocol/inspector": "^0.
|
|
50
|
-
"@swc/core": "1.15.
|
|
51
|
-
"
|
|
52
|
-
"lint-staged": "^16.2.7",
|
|
49
|
+
"@modelcontextprotocol/inspector": "^0.21.1",
|
|
50
|
+
"@swc/core": "1.15.18",
|
|
51
|
+
"lint-staged": "^16.3.2",
|
|
53
52
|
"prettier": "^3.8.1",
|
|
54
53
|
"ts-node-maintained": "^10.9.5",
|
|
55
54
|
"tsx": "^4.21.0",
|
|
56
55
|
"unbuild": "^3.6.1",
|
|
57
|
-
"@maz-ui/eslint-config": "4.7.
|
|
56
|
+
"@maz-ui/eslint-config": "4.7.3"
|
|
58
57
|
},
|
|
59
58
|
"lint-staged": {
|
|
60
59
|
"*.{js,ts,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix"
|