@wonderwhy-er/desktop-commander 0.1.16 → 0.1.18
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 +26 -6
- package/dist/server.js +3 -2
- package/dist/setup-claude-server.js +2 -2
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
# Claude
|
|
1
|
+
# Claude Desktop Commander MCP
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@wonderwhy-er/desktop-commander)
|
|
4
|
+
[](https://smithery.ai/server/@wonderwhy-er/desktop-commander)
|
|
5
|
+
|
|
2
6
|
|
|
3
7
|
Short version. Two key things. Terminal commands and diff based file editing.
|
|
4
8
|
|
|
5
|
-
This server that allows Claude desktop app to execute long-running terminal commands on your computer and manage processes through Model Context Protocol (MCP) + Built on top of [MCP Filesystem Server](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem) to provide additional file editing capabilities .
|
|
9
|
+
This is server that allows Claude desktop app to execute long-running terminal commands on your computer and manage processes through Model Context Protocol (MCP) + Built on top of [MCP Filesystem Server](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem) to provide additional search and replace file editing capabilities .
|
|
6
10
|
|
|
7
11
|
## Features
|
|
8
12
|
|
|
@@ -25,9 +29,23 @@ This server that allows Claude desktop app to execute long-running terminal comm
|
|
|
25
29
|
## Installation
|
|
26
30
|
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
31
|
|
|
32
|
+
### Option 1: Installing via Smithery
|
|
33
|
+
|
|
34
|
+
To install Desktop Commander for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@wonderwhy-er/desktop-commander):
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npx -y @smithery/cli install @wonderwhy-er/desktop-commander --client claude
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Option 2: Install trough npx
|
|
41
|
+
Just run this in terminal
|
|
42
|
+
```
|
|
43
|
+
npx @wonderwhy-er/desktop-commander setup
|
|
44
|
+
```
|
|
45
|
+
Restart Claude if running
|
|
28
46
|
|
|
29
|
-
### Option
|
|
30
|
-
|
|
47
|
+
### Option 3: Add to claude_desktop_config by hand
|
|
48
|
+
Add this entry to your claude_desktop_config.json (on Mac, found at ~/Library/Application\ Support/Claude/claude_desktop_config.json):
|
|
31
49
|
```json
|
|
32
50
|
{
|
|
33
51
|
"mcpServers": {
|
|
@@ -41,14 +59,16 @@ Next, add this entry to your claude_desktop_config.json (on Mac, found at ~/Libr
|
|
|
41
59
|
}
|
|
42
60
|
}
|
|
43
61
|
```
|
|
62
|
+
Restart Claude if running
|
|
44
63
|
|
|
45
|
-
### Option
|
|
64
|
+
### Option 4: Checkout locally
|
|
46
65
|
1. Clone and build:
|
|
47
66
|
```bash
|
|
48
67
|
git clone https://github.com/wonderwhy-er/ClaudeComputerCommander.git
|
|
49
68
|
cd ClaudeComputerCommander
|
|
50
69
|
npm run setup
|
|
51
70
|
```
|
|
71
|
+
Restart Claude if running
|
|
52
72
|
|
|
53
73
|
The setup command will:
|
|
54
74
|
- Install dependencies
|
|
@@ -135,4 +155,4 @@ All contributions, big or small, are greatly appreciated!
|
|
|
135
155
|
|
|
136
156
|
## License
|
|
137
157
|
|
|
138
|
-
MIT
|
|
158
|
+
MIT
|
package/dist/server.js
CHANGED
|
@@ -7,9 +7,10 @@ import { executeCommand, readOutput, forceTerminate, listSessions } from './tool
|
|
|
7
7
|
import { listProcesses, killProcess } from './tools/process.js';
|
|
8
8
|
import { readFile, readMultipleFiles, writeFile, createDirectory, listDirectory, moveFile, searchFiles, getFileInfo, listAllowedDirectories, } from './tools/filesystem.js';
|
|
9
9
|
import { parseEditBlock, performSearchReplace } from './tools/edit.js';
|
|
10
|
+
import { VERSION } from './version.js';
|
|
10
11
|
export const server = new Server({
|
|
11
|
-
name: "
|
|
12
|
-
version:
|
|
12
|
+
name: "desktop-commander",
|
|
13
|
+
version: VERSION,
|
|
13
14
|
}, {
|
|
14
15
|
capabilities: {
|
|
15
16
|
tools: {},
|
|
@@ -95,12 +95,12 @@ try {
|
|
|
95
95
|
config.mcpServers.desktopCommander = serverConfig;
|
|
96
96
|
|
|
97
97
|
// Add puppeteer server if not present
|
|
98
|
-
if (!config.mcpServers.puppeteer) {
|
|
98
|
+
/*if (!config.mcpServers.puppeteer) {
|
|
99
99
|
config.mcpServers.puppeteer = {
|
|
100
100
|
"command": "npx",
|
|
101
101
|
"args": ["-y", "@modelcontextprotocol/server-puppeteer"]
|
|
102
102
|
};
|
|
103
|
-
}
|
|
103
|
+
}*/
|
|
104
104
|
|
|
105
105
|
// Write the updated config back
|
|
106
106
|
writeFileSync(claudeConfigPath, JSON.stringify(config, null, 2), 'utf8');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VERSION = "0.1.18";
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = '0.1.18';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wonderwhy-er/desktop-commander",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "MCP server for terminal operations and file editing",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Eduards Ruzga",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
+
"sync-version": "node scripts/sync-version.js",
|
|
19
|
+
"bump": "node scripts/sync-version.js --bump",
|
|
20
|
+
"bump:minor": "node scripts/sync-version.js --bump --minor",
|
|
21
|
+
"bump:major": "node scripts/sync-version.js --bump --major",
|
|
18
22
|
"build": "tsc && shx cp setup-claude-server.js dist/ && shx chmod +x dist/*.js",
|
|
19
23
|
"watch": "tsc --watch",
|
|
20
24
|
"start": "node dist/index.js",
|
|
@@ -60,4 +64,4 @@
|
|
|
60
64
|
"shx": "^0.3.4",
|
|
61
65
|
"typescript": "^5.3.3"
|
|
62
66
|
}
|
|
63
|
-
}
|
|
67
|
+
}
|