@codeconductorai/harmony-mcp 1.0.21 → 1.0.22

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.21`) 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.22`) 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.21
35
+ claude mcp add harmony -- npx -y @codeconductorai/harmony-mcp@1.0.22
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.21"]
50
+ "args": ["-y", "@codeconductorai/harmony-mcp@1.0.22"]
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.21
61
+ codex mcp add harmony -- npx -y @codeconductorai/harmony-mcp@1.0.22
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.21"]
69
+ args = ["-y", "@codeconductorai/harmony-mcp@1.0.22"]
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.21"]
81
+ "args": ["-y", "@codeconductorai/harmony-mcp@1.0.22"]
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.21"]
98
+ "args": ["-y", "@codeconductorai/harmony-mcp@1.0.22"]
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.21",
3
+ "version": "1.0.22",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/deviceAuth.js CHANGED
@@ -134,6 +134,7 @@ export async function pollDeviceLogin(timeoutSeconds = 300) {
134
134
 
135
135
  const data = await res.json();
136
136
  const accessToken = field(data, "accessToken", "access_token");
137
+ const idToken = field(data, "idToken", "id_token");
137
138
  const expiresIn = field(data, "expiresIn", "expires_in");
138
139
  const slowDown = field(data, "slowDown", "slow_down");
139
140
 
@@ -144,7 +145,7 @@ export async function pollDeviceLogin(timeoutSeconds = 300) {
144
145
  userRefreshToken = field(data, "refreshToken", "refresh_token") || userRefreshToken;
145
146
  pendingDeviceCode = null;
146
147
 
147
- const claims = decodeJwtPayload(accessToken);
148
+ const claims = decodeJwtPayload(idToken) || decodeJwtPayload(accessToken);
148
149
  const sub = field(data, "sub", "sub") || claims?.sub;
149
150
  const email = field(data, "email", "email") || claims?.email || null;
150
151
  const givenName = field(data, "givenName", "given_name") || claims?.given_name;