@volue/wave-mcp 0.1.0-next.0 → 0.1.0-next.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 CHANGED
@@ -81,7 +81,13 @@ npx @volue/wave-mcp@latest
81
81
  For server deployments or custom integrations:
82
82
 
83
83
  ```bash
84
- npx @volue/wave-mcp@latest/transports/http
84
+ npx @volue/wave-mcp@latest http
85
85
  ```
86
86
 
87
- The HTTP server runs on port 3000 by default and exposes the MCP endpoint at `/mcp`.
87
+ The HTTP server runs on port `3000` by default and exposes the MCP endpoint at `/mcp`.
88
+
89
+ You can customize the port using environment variable:
90
+
91
+ ```bash
92
+ PORT=8080 npx @volue/wave-mcp@latest http
93
+ ```
@@ -229,7 +229,7 @@ const getColorUsageTool = {
229
229
  content: [
230
230
  {
231
231
  type: "text",
232
- text: JSON.stringify(colorTokensData, null, 2)
232
+ text: JSON.stringify(colorTokensData)
233
233
  },
234
234
  {
235
235
  type: "text",
@@ -238,7 +238,7 @@ const getColorUsageTool = {
238
238
  ${markdown}
239
239
 
240
240
  ---
241
- Source: https://wave-design-system.vercel.app/tokens/colors.md`
241
+ Source: ${createUrl("tokens/colors")}`
242
242
  }
243
243
  ]
244
244
  };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
3
 
3
4
  declare const server: McpServer;
package/dist/index.js CHANGED
@@ -1,3 +1,29 @@
1
1
  #!/usr/bin/env node
2
- export { s as server } from './server-B9GajLY8.js';
2
+ export { s as server } from './server-Ctp51ema.js';
3
3
  import '@modelcontextprotocol/sdk/server/mcp.js';
4
+
5
+ if (import.meta.url === `file:///${process.argv[1].replace(/\\/g, "/")}`) {
6
+ const args = process.argv.slice(2);
7
+ const transport = args[0] || "stdio";
8
+ async function run() {
9
+ try {
10
+ switch (transport) {
11
+ case "stdio":
12
+ await import('./transports/stdio.js');
13
+ break;
14
+ case "http":
15
+ process.argv.push("--auto-run");
16
+ await import('./transports/http.js');
17
+ break;
18
+ default:
19
+ console.error(`Unknown transport: ${transport}`);
20
+ console.error("Available transports: stdio, http");
21
+ process.exit(1);
22
+ }
23
+ } catch (error) {
24
+ console.error("Error running transport:", error);
25
+ process.exit(1);
26
+ }
27
+ }
28
+ run();
29
+ }
@@ -1,6 +1,6 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
 
3
- var version = "0.1.0-next.0";
3
+ var version = "0.1.0-next.1";
4
4
  var packageJson = {
5
5
  version: version};
6
6
 
@@ -4,8 +4,8 @@ import { isInitializeRequest } from '@modelcontextprotocol/sdk/types.js';
4
4
  import cors from 'cors';
5
5
  import express from 'express';
6
6
  import { randomUUID } from 'node:crypto';
7
- import { s as server, p as packageJson } from '../server-B9GajLY8.js';
8
- import { i as initializeTools } from '../index-DaBLCsNz.js';
7
+ import { s as server, p as packageJson } from '../server-Ctp51ema.js';
8
+ import { i as initializeTools } from '../index-Dax7yaAA.js';
9
9
  import '@modelcontextprotocol/sdk/server/mcp.js';
10
10
  import 'node:module';
11
11
  import 'remark-parse';
@@ -81,7 +81,7 @@ app.get("/health", (_req, res) => {
81
81
  const host = process.env.HOST ?? "localhost";
82
82
  const port = process.env.PORT ? Number(process.env.PORT) : 3e3;
83
83
  let runningServer = null;
84
- if (import.meta.url === `file://${process.argv[1]}`) {
84
+ if (process.argv.includes("--auto-run") || import.meta.url === `file:///${process.argv[1].replace(/\\/g, "/")}`) {
85
85
  runningServer = app.listen(port, host, (error) => {
86
86
  if (error) {
87
87
  console.error("\u274C Failed to start server:", error);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
3
- import { s as server } from '../server-B9GajLY8.js';
4
- import { i as initializeTools } from '../index-DaBLCsNz.js';
3
+ import { s as server } from '../server-Ctp51ema.js';
4
+ import { i as initializeTools } from '../index-Dax7yaAA.js';
5
5
  import '@modelcontextprotocol/sdk/server/mcp.js';
6
6
  import 'node:module';
7
7
  import 'remark-parse';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volue/wave-mcp",
3
- "version": "0.1.0-next.0",
3
+ "version": "0.1.0-next.1",
4
4
  "description": "An MCP server that connects AI tools to the Wave Design System",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  "directory": "mcp"
10
10
  },
11
11
  "type": "module",
12
- "bin": "./dist/transports/stdio.js",
12
+ "bin": "./dist/index.js",
13
13
  "publishConfig": {
14
14
  "access": "public"
15
15
  },