@getmikk/mcp-server 1.8.1 → 1.9.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/bin/mikk-mcp.js CHANGED
@@ -18,4 +18,13 @@ if (idx !== -1 && process.argv[idx + 1]) {
18
18
  process.env.MIKK_PROJECT_ROOT = projectRoot
19
19
 
20
20
  // Load the CJS bundle (auto-starts stdio server via src/index.ts)
21
- require('../dist/index.cjs')
21
+ const mod = require('../dist/index.cjs')
22
+ if (mod.startStdioServer) {
23
+ mod.startStdioServer().catch(err => {
24
+ console.error('Failed to start MCP server:', err)
25
+ process.exit(1)
26
+ })
27
+ } else {
28
+ console.error('MCP server bundle is missing startStdioServer export.')
29
+ process.exit(1)
30
+ }