chatgpt-webui-mcp 0.1.0 → 0.1.2

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/.env.example CHANGED
@@ -24,7 +24,7 @@ CHATGPT_ASYNC_JOB_MAX=150
24
24
  CHATGPT_BROWSER_BASE_URL=http://127.0.0.1:9377
25
25
  CHATGPT_USER_ID=chatgpt-webui-mcp
26
26
  CHATGPT_SESSION_KEY=chatgpt-webui
27
- CHATGPT_WAIT_TIMEOUT_MS=5400000
27
+ CHATGPT_WAIT_TIMEOUT_MS=7200000
28
28
  CHATGPT_WORKSPACE=PRO
29
29
  # Backward-compatible aliases are still supported:
30
30
  # CHATGPT_CAMOFOX_BASE_URL, CHATGPT_CAMOFOX_USER_ID, CHATGPT_CAMOFOX_SESSION_KEY,
package/INSTALL.md CHANGED
@@ -8,6 +8,22 @@ it uses `camofox` (UI-driven) by default for robust long-running tasks (pro, dee
8
8
 
9
9
  ---
10
10
 
11
+ ## quick start (npm)
12
+
13
+ install from npm:
14
+
15
+ ```bash
16
+ npm i -g chatgpt-webui-mcp
17
+ ```
18
+
19
+ then run:
20
+
21
+ ```bash
22
+ CHATGPT_SESSION_TOKEN="your_session_token_here" chatgpt-webui-mcp
23
+ ```
24
+
25
+ ---
26
+
11
27
  ## quick start (from source)
12
28
 
13
29
  ```bash
@@ -41,15 +57,15 @@ add this to your OpenCode config (`~/.config/opencode/opencode.json`) under `mcp
41
57
  "chatgpt-webui": {
42
58
  "type": "local",
43
59
  "enabled": true,
44
- "timeout": 5400000,
60
+ "timeout": 7200000,
45
61
  "command": [
46
62
  "node",
47
63
  "/absolute/path/to/chatgpt-webui-mcp/dist/index.js"
48
64
  ],
49
65
  "environment": {
50
- "CHATGPT_SESSION_TOKEN": "your_session_token_here",
66
+ "CHATGPT_SESSION_TOKEN_FILE": "/path/to/session-token.txt",
51
67
  "CHATGPT_BROWSER_BASE_URL": "http://127.0.0.1:9377",
52
- "CHATGPT_WAIT_TIMEOUT_MS": "5400000"
68
+ "CHATGPT_WAIT_TIMEOUT_MS": "7200000"
53
69
  }
54
70
  }
55
71
  }
package/README.md CHANGED
@@ -17,11 +17,23 @@
17
17
 
18
18
  ## quick start
19
19
 
20
+ install from npm:
21
+
22
+ ```bash
23
+ npm i -g chatgpt-webui-mcp
24
+ ```
25
+
20
26
  manual run:
21
27
 
22
28
  ```bash
23
- CHATGPT_SESSION_TOKEN="your_token_here" npm install
24
- CHATGPT_SESSION_TOKEN="your_token_here" npm run build
29
+ CHATGPT_SESSION_TOKEN="your_token_here" chatgpt-webui-mcp
30
+ ```
31
+
32
+ from source:
33
+
34
+ ```bash
35
+ npm install
36
+ npm run build
25
37
  CHATGPT_SESSION_TOKEN="your_token_here" node dist/index.js
26
38
  ```
27
39
 
@@ -58,11 +70,11 @@ because this server uses `stdio` or `sse`, you configure it as a local command (
58
70
  "chatgpt-webui": {
59
71
  "command": "node",
60
72
  "args": ["/absolute/path/to/chatgpt-webui-mcp/dist/index.js"],
61
- "timeout": 5400000,
73
+ "timeout": 7200000,
62
74
  "env": {
63
75
  "CHATGPT_SESSION_TOKEN_FILE": "/path/to/session-token.txt",
64
76
  "CHATGPT_BROWSER_BASE_URL": "http://127.0.0.1:9377",
65
- "CHATGPT_WAIT_TIMEOUT_MS": "5400000"
77
+ "CHATGPT_WAIT_TIMEOUT_MS": "7200000"
66
78
  }
67
79
  }
68
80
  }
@@ -135,8 +147,8 @@ CHATGPT_SESSION_TOKEN="your_token_here" npm run self-test
135
147
  npm run self-test -- --token "your_token_here"
136
148
 
137
149
  # file
138
- echo "your_token_here" > /tmp/chatgpt-session-token.txt
139
- npm run self-test -- --token-file /tmp/chatgpt-session-token.txt
150
+ echo "your_token_here" > ~/.config/chatgpt-webui-mcp/session-token.txt
151
+ npm run self-test -- --token-file ~/.config/chatgpt-webui-mcp/session-token.txt
140
152
  ```
141
153
 
142
154
  ---
@@ -172,7 +184,7 @@ systemctl --user enable --now chatgpt-webui-mcp.service
172
184
  "type": "remote",
173
185
  "url": "http://<tailscale-ip>:8791/sse",
174
186
  "enabled": true,
175
- "timeout": 5400000,
187
+ "timeout": 7200000,
176
188
  "oauth": false
177
189
  }
178
190
  }
@@ -12,7 +12,7 @@ CHATGPT_WEBUI_BASE_URL=https://chatgpt.com
12
12
  CHATGPT_BROWSER_BASE_URL=http://127.0.0.1:9377
13
13
  CHATGPT_USER_ID=chatgpt-webui-mcp
14
14
  CHATGPT_SESSION_KEY=chatgpt-webui
15
- CHATGPT_WAIT_TIMEOUT_MS=5400000
15
+ CHATGPT_WAIT_TIMEOUT_MS=7200000
16
16
  CHATGPT_WORKSPACE=PRO
17
17
 
18
18
  # if camofox cookie import is protected
@@ -9,7 +9,7 @@ const DEFAULT_TRANSPORT = "camofox";
9
9
  const DEFAULT_CAMOFOX_BASE_URL = "http://127.0.0.1:9377";
10
10
  const DEFAULT_CAMOFOX_USER_ID = "chatgpt-webui-mcp";
11
11
  const DEFAULT_CAMOFOX_SESSION_KEY = "chatgpt-webui";
12
- const DEFAULT_CAMOFOX_WAIT_TIMEOUT_MS = 5400000;
12
+ const DEFAULT_CAMOFOX_WAIT_TIMEOUT_MS = 7200000;
13
13
  const DEFAULT_CAMOFOX_WORKSPACE = "PRO";
14
14
  const DEFAULT_IMAGE_SCREENSHOT_FALLBACK = false;
15
15
  function readTokenFromFile(filePath) {
package/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "chatgpt-webui-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Standalone MCP server for ChatGPT Web UI via session token",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "README.md",
11
+ "INSTALL.md",
12
+ "LICENSE",
13
+ ".env.example",
14
+ "deploy/systemd"
15
+ ],
8
16
  "bin": {
9
17
  "chatgpt-webui-mcp": "dist/index.js"
10
18
  },