@vizejs/musea-mcp-server 0.719.0 → 0.721.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/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as startServer } from "./src-BlrFYjvC.mjs";
2
+ import { n as startServer } from "./src-CEkbLkmL.mjs";
3
3
  //#region src/cli.ts
4
4
  /**
5
5
  * Musea MCP Server CLI.
package/dist/index.d.mts CHANGED
@@ -1,12 +1,25 @@
1
1
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
2
2
 
3
3
  //#region src/index.d.ts
4
+ /**
5
+ * Create an unconnected Musea MCP server for one project.
6
+ *
7
+ * Component discovery is limited to the resolved project root. Art files are
8
+ * cached for five seconds, and an omitted token path is discovered from the
9
+ * conventional `tokens`, `design-tokens`, or `style-dictionary` locations.
10
+ */
4
11
  declare function createMuseaServer(config: {
5
12
  projectRoot: string;
6
13
  include?: string[];
7
14
  exclude?: string[];
8
15
  tokensPath?: string;
9
16
  }): Server;
17
+ /**
18
+ * Create a Musea server and connect it to the process standard streams.
19
+ *
20
+ * @param projectRoot Project whose art files and tokens the server may expose.
21
+ * @param options Optional token-file override; omission enables conventional discovery.
22
+ */
10
23
  declare function startServer(projectRoot: string, options?: {
11
24
  tokensPath?: string;
12
25
  }): Promise<void>;
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as startServer, t as createMuseaServer } from "./src-BlrFYjvC.mjs";
1
+ import { n as startServer, t as createMuseaServer } from "./src-CEkbLkmL.mjs";
2
2
  export { createMuseaServer, createMuseaServer as default, startServer };
@@ -2063,6 +2063,13 @@ async function resolveConfiguredTokensPath(projectRoot, tokensPath) {
2063
2063
  * - Generate documentation, variants, and Storybook stories
2064
2064
  * - Read and format design tokens
2065
2065
  */
2066
+ /**
2067
+ * Create an unconnected Musea MCP server for one project.
2068
+ *
2069
+ * Component discovery is limited to the resolved project root. Art files are
2070
+ * cached for five seconds, and an omitted token path is discovered from the
2071
+ * conventional `tokens`, `design-tokens`, or `style-dictionary` locations.
2072
+ */
2066
2073
  function createMuseaServer(config) {
2067
2074
  const server = new Server({
2068
2075
  name: "musea-mcp-server",
@@ -2120,6 +2127,12 @@ function createMuseaServer(config) {
2120
2127
  server.setRequestHandler(CallToolRequestSchema, (req) => handleToolCall(ctx, req.params.name, req.params.arguments));
2121
2128
  return server;
2122
2129
  }
2130
+ /**
2131
+ * Create a Musea server and connect it to the process standard streams.
2132
+ *
2133
+ * @param projectRoot Project whose art files and tokens the server may expose.
2134
+ * @param options Optional token-file override; omission enables conventional discovery.
2135
+ */
2123
2136
  async function startServer(projectRoot, options) {
2124
2137
  const server = createMuseaServer({
2125
2138
  projectRoot,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/musea-mcp-server",
3
- "version": "0.719.0",
3
+ "version": "0.721.0",
4
4
  "description": "MCP server for building Vue.js design systems - component analysis, documentation, variant generation, and design tokens",
5
5
  "keywords": [
6
6
  "ai",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@modelcontextprotocol/sdk": "1.32.2",
45
- "@vizejs/native": "0.719.0",
45
+ "@vizejs/native": "0.721.0",
46
46
  "@vue/compiler-dom": "3.5.35",
47
47
  "typescript": "6.0.3"
48
48
  },