@dmsdc-ai/aigentry-deliberation 0.0.2 → 0.0.4

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.
Files changed (3) hide show
  1. package/README.md +19 -21
  2. package/index.js +32 -0
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -16,39 +16,37 @@ MCP Deliberation Server — Multi-session AI deliberation with smart speaker ord
16
16
 
17
17
  ## Installation
18
18
 
19
- ### As standalone MCP server
19
+ 원클릭 설치 어떤 프로젝트 환경에서든 동작합니다:
20
20
 
21
21
  ```bash
22
- npm install -g @dmsdc-ai/aigentry-deliberation
22
+ npx @dmsdc-ai/aigentry-deliberation install
23
23
  ```
24
24
 
25
- ### Via aigentry-devkit
25
+ 명령은:
26
+ 1. `~/.local/lib/mcp-deliberation/`에 서버 파일 설치 (Windows: `%LOCALAPPDATA%/mcp-deliberation/`)
27
+ 2. npm 의존성 설치
28
+ 3. `~/.claude/.mcp.json`에 MCP 서버 자동 등록
29
+ 4. Claude Code 재시작하면 바로 사용 가능
30
+
31
+ ### 기타 설치 방법
26
32
 
27
33
  ```bash
28
- npx @dmsdc-ai/aigentry-devkit setup
29
- ```
34
+ # 글로벌 설치
35
+ npm install -g @dmsdc-ai/aigentry-deliberation
36
+ deliberation-install
30
37
 
31
- ### Manual
38
+ # aigentry-devkit 통합 설치
39
+ npx @dmsdc-ai/aigentry-devkit setup
32
40
 
33
- ```bash
41
+ # 소스에서 직접 설치
34
42
  git clone https://github.com/dmsdc-ai/aigentry-deliberation.git
35
- cd aigentry-deliberation
36
- npm install
43
+ cd aigentry-deliberation && npm install && node install.js
37
44
  ```
38
45
 
39
- ## MCP Configuration
46
+ ### 제거
40
47
 
41
- Add to `~/.claude/.mcp.json`:
42
-
43
- ```json
44
- {
45
- "mcpServers": {
46
- "deliberation": {
47
- "command": "node",
48
- "args": ["/path/to/aigentry-deliberation/index.js"]
49
- }
50
- }
51
- }
48
+ ```bash
49
+ npx @dmsdc-ai/aigentry-deliberation uninstall
52
50
  ```
53
51
 
54
52
  ## MCP Tools
package/index.js CHANGED
@@ -1,4 +1,36 @@
1
1
  #!/usr/bin/env node
2
+
3
+ // ── CLI command routing (must be before any imports) ──
4
+ // Supports: npx @dmsdc-ai/aigentry-deliberation install
5
+ // npx @dmsdc-ai/aigentry-deliberation --help
6
+ const _cliArg = process.argv[2];
7
+ if (_cliArg === "install" || _cliArg === "uninstall" || _cliArg === "--uninstall") {
8
+ const { execFileSync } = await import("node:child_process");
9
+ const { fileURLToPath } = await import("node:url");
10
+ const { dirname, join } = await import("node:path");
11
+ const __installDir = dirname(fileURLToPath(import.meta.url));
12
+ const installArgs = _cliArg === "install" ? [] : ["--uninstall"];
13
+ try {
14
+ execFileSync(process.execPath, [join(__installDir, "install.js"), ...installArgs], { stdio: "inherit" });
15
+ } catch (e) {
16
+ process.exit(e.status || 1);
17
+ }
18
+ process.exit(0);
19
+ }
20
+ if (_cliArg === "--help" || _cliArg === "-h") {
21
+ console.log(`
22
+ MCP Deliberation Server
23
+
24
+ Usage:
25
+ npx @dmsdc-ai/aigentry-deliberation install 설치 (MCP 서버 등록)
26
+ npx @dmsdc-ai/aigentry-deliberation uninstall 제거
27
+ npx @dmsdc-ai/aigentry-deliberation MCP 서버 실행 (stdio)
28
+
29
+ 설치 후 Claude Code를 재시작하면 자동으로 사용 가능합니다.
30
+ `);
31
+ process.exit(0);
32
+ }
33
+
2
34
  /**
3
35
  * MCP Deliberation Server (Global) — v2.5 Multi-Session + Transport Routing + Cross-Platform + BrowserControlPort
4
36
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-deliberation",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "MCP Deliberation Server — Multi-session AI deliberation with smart speaker ordering and persona roles",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -40,6 +40,7 @@
40
40
  "README.md"
41
41
  ],
42
42
  "scripts": {
43
+ "postinstall": "node install.js || true",
43
44
  "start": "node index.js",
44
45
  "test": "vitest run",
45
46
  "test:watch": "vitest"