@wonderwhy-er/desktop-commander 0.2.18-alpha.14 → 0.2.18-alpha.16
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/dist/setup-claude-server.js +10 -8
- package/dist/setup.log +63 -0
- package/package.json +1 -1
|
@@ -234,13 +234,16 @@ function getPackageSpec(versionArg = null) {
|
|
|
234
234
|
return '@wonderwhy-er/desktop-commander@latest';
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
+
function isNPX() {
|
|
238
|
+
return process.env.npm_lifecycle_event === 'npx' ||
|
|
239
|
+
process.env.npm_execpath?.includes('npx') ||
|
|
240
|
+
process.env._?.includes('npx') ||
|
|
241
|
+
import.meta.url.includes('node_modules');
|
|
242
|
+
}
|
|
237
243
|
// Function to determine execution context
|
|
238
244
|
function getExecutionContext() {
|
|
239
245
|
// Check if running from npx
|
|
240
|
-
const isNpx =
|
|
241
|
-
process.env.npm_execpath?.includes('npx') ||
|
|
242
|
-
process.env._?.includes('npx') ||
|
|
243
|
-
import.meta.url.includes('node_modules');
|
|
246
|
+
const isNpx = isNPX();
|
|
244
247
|
|
|
245
248
|
// Check if installed globally
|
|
246
249
|
const isGlobal = process.env.npm_config_global === 'true' ||
|
|
@@ -641,9 +644,7 @@ async function restartClaude() {
|
|
|
641
644
|
// Main function to export for ESM compatibility
|
|
642
645
|
export default async function setup() {
|
|
643
646
|
// Parse command line arguments for version/tag
|
|
644
|
-
|
|
645
|
-
// or: npx -y -p @wonderwhy-er/desktop-commander setup alpha
|
|
646
|
-
const versionArg = process.argv[2]; // argv[0]=node, argv[1]=script, argv[2]=version/tag
|
|
647
|
+
const versionArg = process.argv[3]; // argv[0]=node, argv[1]=script, argv[2]=version/tag
|
|
647
648
|
|
|
648
649
|
|
|
649
650
|
|
|
@@ -747,7 +748,7 @@ export default async function setup() {
|
|
|
747
748
|
const configPrepStep = addSetupStep('prepare_server_config');
|
|
748
749
|
|
|
749
750
|
// Determine if running through npx or locally
|
|
750
|
-
const isNpx =
|
|
751
|
+
const isNpx = isNPX();
|
|
751
752
|
await trackEvent('npx_setup_execution_mode', { isNpx });
|
|
752
753
|
|
|
753
754
|
// Fix Windows path handling for npx execution
|
|
@@ -802,6 +803,7 @@ export default async function setup() {
|
|
|
802
803
|
// Standard configuration without debug
|
|
803
804
|
if (isNpx) {
|
|
804
805
|
const packageSpec = getPackageSpec(versionArg);
|
|
806
|
+
logToFile("Command args: ", packageSpec);
|
|
805
807
|
serverConfig = {
|
|
806
808
|
"command": isWindows ? "npx.cmd" : "npx",
|
|
807
809
|
"args": [
|
package/dist/setup.log
CHANGED
|
@@ -166,3 +166,66 @@ The server is available as "desktop-commander" in Claude's MCP server list
|
|
|
166
166
|
2025-10-23T10:20:49.913Z - or join our community: https://discord.com/invite/kQ27sNnZr7
|
|
167
167
|
|
|
168
168
|
|
|
169
|
+
2025-10-23T10:23:37.739Z - ✅ Desktop Commander MCP v0.2.18-alpha.14 successfully added to Claude’s configuration.
|
|
170
|
+
2025-10-23T10:23:37.739Z - Configuration location: /Users/fiberta/Library/Application Support/Claude/claude_desktop_config.json
|
|
171
|
+
2025-10-23T10:23:40.846Z -
|
|
172
|
+
✅ Claude has been restarted automatically!
|
|
173
|
+
2025-10-23T10:23:40.867Z -
|
|
174
|
+
✅ Installation successfully completed! Thank you for using Desktop Commander!
|
|
175
|
+
|
|
176
|
+
2025-10-23T10:23:40.867Z -
|
|
177
|
+
The server is available as "desktop-commander" in Claude's MCP server list
|
|
178
|
+
2025-10-23T10:23:40.867Z - Future updates will install automatically — no need to run this setup again.
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
2025-10-23T10:23:40.867Z - 🤔 Need help or have feedback? Happy to jump on a quick call:
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
2025-10-23T10:23:40.867Z - https://calendar.app.google/SHMNZN5MJznJWC5A7
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
2025-10-23T10:23:40.867Z - or join our community: https://discord.com/invite/kQ27sNnZr7
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
2025-10-23T10:39:56.359Z - ✅ Desktop Commander MCP v0.2.18-alpha.15 successfully added to Claude’s configuration.
|
|
191
|
+
2025-10-23T10:39:56.360Z - Configuration location: /Users/fiberta/Library/Application Support/Claude/claude_desktop_config.json
|
|
192
|
+
2025-10-23T10:39:59.526Z -
|
|
193
|
+
✅ Claude has been restarted automatically!
|
|
194
|
+
2025-10-23T10:39:59.567Z -
|
|
195
|
+
✅ Installation successfully completed! Thank you for using Desktop Commander!
|
|
196
|
+
|
|
197
|
+
2025-10-23T10:39:59.567Z -
|
|
198
|
+
The server is available as "desktop-commander" in Claude's MCP server list
|
|
199
|
+
2025-10-23T10:39:59.567Z - Future updates will install automatically — no need to run this setup again.
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
2025-10-23T10:39:59.567Z - 🤔 Need help or have feedback? Happy to jump on a quick call:
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
2025-10-23T10:39:59.567Z - https://calendar.app.google/SHMNZN5MJznJWC5A7
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
2025-10-23T10:39:59.567Z - or join our community: https://discord.com/invite/kQ27sNnZr7
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
2025-10-23T10:57:55.850Z - ✅ Desktop Commander MCP v0.2.18-alpha.15 successfully added to Claude’s configuration.
|
|
212
|
+
2025-10-23T10:57:55.851Z - Configuration location: /Users/fiberta/Library/Application Support/Claude/claude_desktop_config.json
|
|
213
|
+
2025-10-23T10:57:59.008Z -
|
|
214
|
+
✅ Claude has been restarted automatically!
|
|
215
|
+
2025-10-23T10:57:59.051Z -
|
|
216
|
+
✅ Installation successfully completed! Thank you for using Desktop Commander!
|
|
217
|
+
|
|
218
|
+
2025-10-23T10:57:59.052Z -
|
|
219
|
+
The server is available as "desktop-commander" in Claude's MCP server list
|
|
220
|
+
2025-10-23T10:57:59.052Z - Future updates will install automatically — no need to run this setup again.
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
2025-10-23T10:57:59.052Z - 🤔 Need help or have feedback? Happy to jump on a quick call:
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
2025-10-23T10:57:59.052Z - https://calendar.app.google/SHMNZN5MJznJWC5A7
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
2025-10-23T10:57:59.052Z - or join our community: https://discord.com/invite/kQ27sNnZr7
|
|
230
|
+
|
|
231
|
+
|
package/package.json
CHANGED