@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.
- package/bin/mcp-server.cjs +26 -0
- package/package.json +1 -1
package/bin/mcp-server.cjs
CHANGED
|
@@ -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');
|