@mantine/mcp-server 9.3.0 → 9.3.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.
Files changed (2) hide show
  1. package/bin/mcp-server.cjs +26 -0
  2. package/package.json +1 -1
@@ -1,3 +1,29 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ const args = process.argv.slice(2);
4
+
5
+ if (args.includes('--help') || args.includes('-h')) {
6
+ console.log(`Usage: mcp-server
7
+
8
+ Starts the Mantine MCP server.
9
+
10
+ Options:
11
+ -h, --help Show help
12
+ -v, --version Show version`);
13
+ process.exit(0);
14
+ }
15
+
16
+ if (args.includes('--version') || args.includes('-v')) {
17
+ console.log(require('../package.json').version);
18
+ process.exit(0);
19
+ }
20
+
21
+ const unknownOption = args.find((arg) => arg.startsWith('-'));
22
+
23
+ if (unknownOption) {
24
+ console.error(`Unknown option: ${unknownOption}`);
25
+ console.error('Run mcp-server --help for usage.');
26
+ process.exit(1);
27
+ }
28
+
3
29
  require('../cjs/index.cjs');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantine/mcp-server",
3
- "version": "9.3.0",
3
+ "version": "9.3.2",
4
4
  "description": "MCP server for Mantine documentation",
5
5
  "homepage": "https://mantine.dev",
6
6
  "license": "MIT",