@jieunmarslim/server-editable-slides 0.2.9 → 0.2.10
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/index.js +6 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -375,18 +375,18 @@ async function runDoctor() {
|
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
//
|
|
378
|
+
// Run doctor diagnostics only when explicitly requested via command-line arguments.
|
|
379
|
+
// When spawned by MCP hosts (Antigravity, Cursor, Claude Desktop), always start the MCP server directly.
|
|
379
380
|
const args = process.argv.slice(2);
|
|
380
|
-
|
|
381
|
+
const isDoctor =
|
|
381
382
|
args.includes('doctor') ||
|
|
382
|
-
args.includes('auth') ||
|
|
383
383
|
args.includes('check') ||
|
|
384
384
|
args.includes('--check') ||
|
|
385
385
|
args.includes('--doctor') ||
|
|
386
386
|
args.includes('-h') ||
|
|
387
|
-
args.includes('--help')
|
|
388
|
-
|
|
389
|
-
) {
|
|
387
|
+
args.includes('--help');
|
|
388
|
+
|
|
389
|
+
if (isDoctor) {
|
|
390
390
|
runDoctor();
|
|
391
391
|
} else {
|
|
392
392
|
startMcpServer().catch((err) => {
|