@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, dirname, join } from 'node:path';
7
+ import { resolve, join, dirname } from 'node:path';
8
8
  import { fileURLToPath } from 'node:url';
9
9
 
10
- const version = "4.7.0-beta.1";
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 | Required |
4
- | ----------------- | ----------- | --------- | -------- |
5
- | **id** | | `string` | No |
6
- | **model-value** | | `number` | No |
7
- | **content-class** | | `unknown` | No |
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
 
@@ -138,6 +138,11 @@ function openDialogActions() {
138
138
  },
139
139
  }
140
140
  ],
141
+ onClose: () => {
142
+ toast.info('Dialog closed', {
143
+ position: 'bottom',
144
+ })
145
+ },
141
146
  })
142
147
  }
143
148
  </script>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maz-ui/mcp",
3
3
  "type": "module",
4
- "version": "4.7.0",
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.26.0",
45
- "@maz-ui/node": "4.6.1",
46
- "@maz-ui/utils": "4.7.0"
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.20.0",
50
- "@swc/core": "1.15.11",
51
- "eslint": "^9.39.2",
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.0"
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"