@wonderwhy-er/desktop-commander 0.1.8 → 0.1.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/README.md CHANGED
@@ -25,8 +25,13 @@ This server that allows Claude desktop app to execute long-running terminal comm
25
25
  ## Installation
26
26
  First, ensure you've downloaded and installed the [Claude Desktop app](https://claude.ai/download) and you have [npm installed](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
27
27
 
28
+ ### Options 1: Install with npx
29
+ Just run this command in terminal
30
+ ```bash
31
+ npx -p @wonderwhy-er/desktop-commander node setup-claude-server.js
32
+ ```
28
33
 
29
- ### Option 1: Install from npx
34
+ ### Option 2: Add by hand to Claude config
30
35
  Next, add this entry to your claude_desktop_config.json (on Mac, found at ~/Library/Application\ Support/Claude/claude_desktop_config.json):
31
36
  ```json
32
37
  {
@@ -42,7 +47,7 @@ Next, add this entry to your claude_desktop_config.json (on Mac, found at ~/Libr
42
47
  }
43
48
  ```
44
49
 
45
- ### Option 2: Checkout locally
50
+ ### Option 3: Checkout locally
46
51
  1. Clone and build:
47
52
  ```bash
48
53
  git clone https://github.com/wonderwhy-er/ClaudeComputerCommander.git
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wonderwhy-er/desktop-commander",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "MCP server for terminal operations and file editing",
5
5
  "license": "MIT",
6
6
  "author": "Eduards Ruzga",
@@ -8,8 +8,8 @@
8
8
  "bugs": "https://github.com/wonderwhy-er/ClaudeComputerCommander/issues",
9
9
  "type": "module",
10
10
  "bin": {
11
- "mcp-desktop-commander": "dist/index.js",
12
- "mcp-desktop-commander-setup": "setup-claude-server.js"
11
+ "desktop-commander": "dist/index.js",
12
+ "setup": "./setup-claude-server.js"
13
13
  },
14
14
  "files": [
15
15
  "dist",
@@ -72,10 +72,12 @@ try {
72
72
  const configData = readFileSync(claudeConfigPath, 'utf8');
73
73
  const config = JSON.parse(configData);
74
74
 
75
+
75
76
  // Prepare the new server config based on OS
76
77
  // Determine if running through npx or locally
77
78
  const isNpx = process.env.npm_lifecycle_event === undefined;
78
-
79
+ logToFile(["npm_lifecycle_event", import.meta.url, process.env.npm_lifecycle_event].toString());
80
+
79
81
  const serverConfig = isNpx ? {
80
82
  "command": "npx",
81
83
  "args": [