sublime-mcp 1.7.4 → 1.7.6
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/cli.js +2 -9
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -49,14 +49,7 @@ async function doctor() {
|
|
|
49
49
|
const isWindows = process.platform === 'win32';
|
|
50
50
|
const httpBase = process.env.SUBLIME_MCP_BASE ?? `http://127.0.0.1:${isWindows ? 9500 : 9501}`;
|
|
51
51
|
const mcpUrl = process.env.SUBLIME_MCP_URL ?? `http://127.0.0.1:${isWindows ? 9502 : 9503}/mcp`;
|
|
52
|
-
const
|
|
53
|
-
const includeAll = process.argv.includes('--all');
|
|
54
|
-
const companions = includeAll ? await Promise.all([
|
|
55
|
-
probe('debugger-mcp', 'http://127.0.0.1:9515', 'http://127.0.0.1:9505/mcp'),
|
|
56
|
-
probe('lsp-mcp', 'http://127.0.0.1:9516', 'http://127.0.0.1:9506/mcp'),
|
|
57
|
-
]) : [];
|
|
58
|
-
const report = { ...main, companions };
|
|
59
|
-
report.ok = main.ok && companions.every(item => item.ok);
|
|
52
|
+
const report = await probe('sublime-mcp', httpBase, mcpUrl);
|
|
60
53
|
process.stdout.write(`${JSON.stringify(report, null, 2)}\n`);
|
|
61
54
|
process.exitCode = report.ok ? 0 : 1;
|
|
62
55
|
}
|
|
@@ -66,6 +59,6 @@ if (command === 'doctor') {
|
|
|
66
59
|
} else if (command === 'serve') {
|
|
67
60
|
await import('../index.js');
|
|
68
61
|
} else {
|
|
69
|
-
process.stderr.write('Usage: sublime-mcp [serve|doctor
|
|
62
|
+
process.stderr.write('Usage: sublime-mcp [serve|doctor]\n');
|
|
70
63
|
process.exitCode = 2;
|
|
71
64
|
}
|
package/package.json
CHANGED