@codeconductorai/harmony-mcp 1.0.18 → 1.0.20

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 CHANGED
@@ -27,12 +27,12 @@ Re-run `node -v` afterwards to confirm before continuing.
27
27
 
28
28
  ## Installation
29
29
 
30
- The server is published as `@codeconductorai/harmony-mcp` and run via `npx`, so no local build step is required. The commands below pin an exact version (`@1.0.18`) rather than a floating tag — this lets `npx` reuse its local cache instead of re-resolving the package from the registry on every agent startup, which otherwise makes MCP initialization noticeably slower (and occasionally hang). Bump the pinned version deliberately when you want to upgrade.
30
+ The server is published as `@codeconductorai/harmony-mcp` and run via `npx`, so no local build step is required. The commands below pin an exact version (`@1.0.20`) rather than a floating tag — this lets `npx` reuse its local cache instead of re-resolving the package from the registry on every agent startup, which otherwise makes MCP initialization noticeably slower (and occasionally hang). Bump the pinned version deliberately when you want to upgrade.
31
31
 
32
32
  ### Claude Code
33
33
 
34
34
  ```bash
35
- claude mcp add harmony -- npx -y @codeconductorai/harmony-mcp@1.0.18
35
+ claude mcp add harmony -- npx -y @codeconductorai/harmony-mcp@1.0.20
36
36
  ```
37
37
 
38
38
  ### Antigravity
@@ -47,7 +47,7 @@ Open **MCP Servers → Manage MCP Servers → View raw config** from the agent p
47
47
  "mcpServers": {
48
48
  "harmony": {
49
49
  "command": "npx",
50
- "args": ["-y", "@codeconductorai/harmony-mcp@1.0.18"]
50
+ "args": ["-y", "@codeconductorai/harmony-mcp@1.0.20"]
51
51
  }
52
52
  }
53
53
  }
@@ -58,7 +58,7 @@ Restart Antigravity (or reload MCP servers) after saving.
58
58
  ### Codex CLI
59
59
 
60
60
  ```bash
61
- codex mcp add harmony -- npx -y @codeconductorai/harmony-mcp@1.0.18
61
+ codex mcp add harmony -- npx -y @codeconductorai/harmony-mcp@1.0.20
62
62
  ```
63
63
 
64
64
  This writes the entry to `~/.codex/config.toml`. To add it by hand instead:
@@ -66,7 +66,7 @@ This writes the entry to `~/.codex/config.toml`. To add it by hand instead:
66
66
  ```toml
67
67
  [mcp_servers.harmony]
68
68
  command = "npx"
69
- args = ["-y", "@codeconductorai/harmony-mcp@1.0.18"]
69
+ args = ["-y", "@codeconductorai/harmony-mcp@1.0.20"]
70
70
  ```
71
71
 
72
72
  ### Aria
@@ -78,7 +78,7 @@ In the Aria Code panel, click the settings icon → **MCP Servers**, then scroll
78
78
  "mcpServers": {
79
79
  "harmony": {
80
80
  "command": "npx",
81
- "args": ["-y", "@codeconductorai/harmony-mcp@1.0.18"]
81
+ "args": ["-y", "@codeconductorai/harmony-mcp@1.0.20"]
82
82
  }
83
83
  }
84
84
  }
@@ -95,7 +95,7 @@ Any client that reads a `command`/`args` style config (e.g. Claude Desktop's `cl
95
95
  "mcpServers": {
96
96
  "harmony": {
97
97
  "command": "npx",
98
- "args": ["-y", "@codeconductorai/harmony-mcp@1.0.18"]
98
+ "args": ["-y", "@codeconductorai/harmony-mcp@1.0.20"]
99
99
  }
100
100
  }
101
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeconductorai/harmony-mcp",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/deviceAuth.js CHANGED
@@ -198,7 +198,15 @@ async function refreshSessionToken() {
198
198
  });
199
199
  const data = await res.json();
200
200
  if (!res.ok || data.status !== "complete" || !data.accessToken) {
201
- log(`[deviceAuth] Session refresh failed: ${data.message || res.status}`);
201
+ if (data.status === "expired") {
202
+ userToken = null;
203
+ userTokenExpiresAt = 0;
204
+ userRefreshToken = null;
205
+ saveSession();
206
+ log(`[deviceAuth] Refresh token no longer valid — cleared session. Run login again.`);
207
+ } else {
208
+ log(`[deviceAuth] Session refresh failed: ${data.message || res.status}`);
209
+ }
202
210
  return null;
203
211
  }
204
212
  userToken = data.accessToken;
@@ -132,6 +132,7 @@ export async function uploadWorkspace(zipPath, workspaceId, language, buildTool)
132
132
  form.append("buildIndex", "false"); // false so scip-ns is used
133
133
  form.append("language", language);
134
134
  if (buildTool) form.append("buildTool", buildTool);
135
+ form.append("phase", "HEURISTICGRAPH");
135
136
 
136
137
  // Field name must be "file" per @RequestPart("file")
137
138
  form.append("file", fs.createReadStream(zipPath), { filename: "workspace.zip", contentType: "application/zip" });
@@ -360,6 +361,7 @@ export async function sendFileUpdate(filePath, workspaceId, language, buildTool)
360
361
  if (buildTool) {
361
362
  form.append("buildTool", buildTool);
362
363
  }
364
+ form.append("phase", "HEURISTICGRAPH");
363
365
 
364
366
  // Field names must match @RequestPart("files") and @RequestParam("paths")
365
367
  form.append("files", fs.createReadStream(filePath), { filename: path.basename(filePath) });