@wonderwhy-er/desktop-commander 0.1.0
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/LICENSE +21 -0
- package/README.md +106 -0
- package/dist/command-manager.d.ts +11 -0
- package/dist/command-manager.js +54 -0
- package/dist/config.d.ts +4 -0
- package/dist/config.js +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +40 -0
- package/dist/logging.d.ts +2 -0
- package/dist/logging.js +28 -0
- package/dist/server.d.ts +20 -0
- package/dist/server.js +287 -0
- package/dist/terminal-manager.d.ts +9 -0
- package/dist/terminal-manager.js +90 -0
- package/dist/tools/command-block.d.ts +18 -0
- package/dist/tools/command-block.js +62 -0
- package/dist/tools/edit.d.ts +10 -0
- package/dist/tools/edit.js +33 -0
- package/dist/tools/execute.d.ts +24 -0
- package/dist/tools/execute.js +60 -0
- package/dist/tools/filesystem.d.ts +10 -0
- package/dist/tools/filesystem.js +133 -0
- package/dist/tools/process.d.ts +12 -0
- package/dist/tools/process.js +47 -0
- package/dist/tools/schemas.d.ts +119 -0
- package/dist/tools/schemas.js +54 -0
- package/dist/types.d.ts +24 -0
- package/dist/types.js +1 -0
- package/package.json +56 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ChildProcess } from 'child_process';
|
|
2
|
+
export interface ProcessInfo {
|
|
3
|
+
pid: number;
|
|
4
|
+
command: string;
|
|
5
|
+
cpu: string;
|
|
6
|
+
memory: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TerminalSession {
|
|
9
|
+
pid: number;
|
|
10
|
+
process: ChildProcess;
|
|
11
|
+
lastOutput: string;
|
|
12
|
+
isBlocked: boolean;
|
|
13
|
+
startTime: Date;
|
|
14
|
+
}
|
|
15
|
+
export interface CommandExecutionResult {
|
|
16
|
+
pid: number;
|
|
17
|
+
output: string;
|
|
18
|
+
isBlocked: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ActiveSession {
|
|
21
|
+
pid: number;
|
|
22
|
+
isBlocked: boolean;
|
|
23
|
+
runtime: number;
|
|
24
|
+
}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wonderwhy-er/desktop-commander",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MCP server for terminal operations and file editing",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Eduards Ruzga",
|
|
7
|
+
"homepage": "https://github.com/wonderwhy-er/ClaudeComputerCommander",
|
|
8
|
+
"bugs": "https://github.com/wonderwhy-er/ClaudeComputerCommander/issues",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"bin": {
|
|
11
|
+
"mcp-desktop-commander": "dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc && shx chmod +x dist/*.js",
|
|
18
|
+
"watch": "tsc --watch",
|
|
19
|
+
"start": "node dist/index.js",
|
|
20
|
+
"setup": "npm install && npm run build && node setup-claude-server.js",
|
|
21
|
+
"prepare": "npm run build"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"mcp",
|
|
28
|
+
"model-context-protocol",
|
|
29
|
+
"terminal",
|
|
30
|
+
"claude",
|
|
31
|
+
"ai",
|
|
32
|
+
"command-line",
|
|
33
|
+
"process-management",
|
|
34
|
+
"file-editing",
|
|
35
|
+
"code-editing",
|
|
36
|
+
"diff",
|
|
37
|
+
"patch",
|
|
38
|
+
"block-editing",
|
|
39
|
+
"file-system",
|
|
40
|
+
"text-manipulation",
|
|
41
|
+
"code-modification",
|
|
42
|
+
"surgical-edits",
|
|
43
|
+
"file-operations"
|
|
44
|
+
],
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@modelcontextprotocol/sdk": "1.0.1",
|
|
47
|
+
"glob": "^10.3.10",
|
|
48
|
+
"zod": "^3.24.1",
|
|
49
|
+
"zod-to-json-schema": "^3.23.5"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^20.11.0",
|
|
53
|
+
"shx": "^0.3.4",
|
|
54
|
+
"typescript": "^5.3.3"
|
|
55
|
+
}
|
|
56
|
+
}
|