@dmsdc-ai/aigentry-deliberation 0.0.2 → 0.0.5
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 +19 -21
- package/index.js +39 -2
- package/package.json +3 -2
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
|
-
|
|
19
|
+
원클릭 설치 — 어떤 프로젝트 환경에서든 동작합니다:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
|
|
22
|
+
npx @dmsdc-ai/aigentry-deliberation install
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
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
|
-
|
|
29
|
-
|
|
34
|
+
# 글로벌 설치
|
|
35
|
+
npm install -g @dmsdc-ai/aigentry-deliberation
|
|
36
|
+
deliberation-install
|
|
30
37
|
|
|
31
|
-
|
|
38
|
+
# aigentry-devkit 통합 설치
|
|
39
|
+
npx @dmsdc-ai/aigentry-devkit setup
|
|
32
40
|
|
|
33
|
-
|
|
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
|
-
|
|
46
|
+
### 제거
|
|
40
47
|
|
|
41
|
-
|
|
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,6 +1,38 @@
|
|
|
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
|
-
* MCP Deliberation Server (Global) —
|
|
35
|
+
* MCP Deliberation Server (Global) — Multi-Session + Transport Routing + Cross-Platform + BrowserControlPort
|
|
4
36
|
*
|
|
5
37
|
* 모든 프로젝트에서 사용 가능한 AI 간 deliberation 서버.
|
|
6
38
|
* 동시에 여러 deliberation을 병렬 진행할 수 있다.
|
|
@@ -31,6 +63,7 @@ import { z } from "zod";
|
|
|
31
63
|
import { execFileSync, spawn } from "child_process";
|
|
32
64
|
import fs from "fs";
|
|
33
65
|
import path from "path";
|
|
66
|
+
import { fileURLToPath } from "url";
|
|
34
67
|
import os from "os";
|
|
35
68
|
import { OrchestratedBrowserPort } from "./browser-control-port.js";
|
|
36
69
|
|
|
@@ -2102,9 +2135,13 @@ process.on("unhandledRejection", (reason) => {
|
|
|
2102
2135
|
}
|
|
2103
2136
|
});
|
|
2104
2137
|
|
|
2138
|
+
// Read version from package.json (single source of truth)
|
|
2139
|
+
const __pkgPath = path.join(path.dirname(fileURLToPath(import.meta.url)), "package.json");
|
|
2140
|
+
const __pkgVersion = JSON.parse(fs.readFileSync(__pkgPath, "utf-8")).version;
|
|
2141
|
+
|
|
2105
2142
|
const server = new McpServer({
|
|
2106
2143
|
name: "mcp-deliberation",
|
|
2107
|
-
version:
|
|
2144
|
+
version: __pkgVersion,
|
|
2108
2145
|
});
|
|
2109
2146
|
|
|
2110
2147
|
server.tool(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dmsdc-ai/aigentry-deliberation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
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",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"scripts": {
|
|
43
43
|
"start": "node index.js",
|
|
44
44
|
"test": "vitest run",
|
|
45
|
-
"test:watch": "vitest"
|
|
45
|
+
"test:watch": "vitest",
|
|
46
|
+
"prepublishOnly": "vitest run"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
49
|
"@modelcontextprotocol/sdk": "^1.26.0",
|