@codeconductorai/harmony-mcp 1.0.21 → 1.0.23

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.23`) 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.23
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.23"]
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.23
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.23"]
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.23"]
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.23"]
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.23",
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;
@@ -352,9 +352,10 @@ export async function fetchContextBundle(workspaceId, prompt) {
352
352
 
353
353
  // An empty list is ambiguous (no matches vs. index not ready vs. failed query) — flag it.
354
354
  const EMPTY_LIST_PATTERN = /^\s*<List\s*\/?>\s*(<\/List>\s*)?$/i;
355
+ const EMPTY_HITS_PATTERN = /<Hits\s*\/>|<Hits>\s*<\/Hits>/i;
355
356
 
356
357
  export function annotateIfEmptyList(toolName, body) {
357
- if (!EMPTY_LIST_PATTERN.test(body)) return body;
358
+ if (!EMPTY_LIST_PATTERN.test(body) && !EMPTY_HITS_PATTERN.test(body)) return body;
358
359
  return `${body}\n\n` +
359
360
  `[harmony-mcp note: ${toolName} returned an empty result. The backend does not distinguish ` +
360
361
  `"no matches" from "index not ready" or a silently failed query here — if this is unexpected, ` +
package/src/server.js CHANGED
@@ -190,10 +190,11 @@ async function maybeAdvanceToHeuristicPhase(marker, indexStatus, { extra }) {
190
190
  if (!marker || marker.upload?.phase !== "LEXICAL") return indexStatus;
191
191
  if (!isTerminalIndexStatus(indexStatus) || isFailedIndexStatus(indexStatus)) return indexStatus;
192
192
 
193
- await sendProgress(extra, `Lexical indexing complete for "${getProjectName()}" — heuristic graph indexing started in the background.`);
194
- advanceToHeuristicGraphPhase(marker).catch((error) =>
195
- log(`[setup_workspace] Heuristic graph phase failed: ${error.message}`)
196
- );
193
+ // TEMP: HEURISTICGRAPH follow-up disabled — uncomment to restore the parallel background pass.
194
+ // await sendProgress(extra, `Lexical indexing complete for "${getProjectName()}" — heuristic graph indexing started in the background.`);
195
+ // advanceToHeuristicGraphPhase(marker).catch((error) =>
196
+ // log(`[setup_workspace] Heuristic graph phase failed: ${error.message}`)
197
+ // );
197
198
  return indexStatus;
198
199
  }
199
200
 
@@ -8,6 +8,8 @@ const WORKSPACE_ID_PROPERTY = {
8
8
  };
9
9
 
10
10
  export const TOOLS = [
11
+ // TEMP: get_context_bundle, search_code_context, and find_files are disabled below — uncomment
12
+ // those blocks to restore the full tool set.
11
13
  {
12
14
  name: "login",
13
15
  description:
@@ -80,7 +82,16 @@ export const TOOLS = [
80
82
  "each time one arises, not just once. Whenever you do fall back to one of the narrower tools, don't " +
81
83
  "discard what this call already found: carry its matched symbols, identifiers, and file paths forward " +
82
84
  "and combine them with the user's original query to build that tool's input, rather than re-issuing " +
83
- "the raw query alone.",
85
+ "the raw query alone.\n\n" +
86
+ "RESPONSE SHAPE: the XML response has two separate top-level parts — <Hits><Hit>...</Hit></Hits>, " +
87
+ "which is the actual code context (the matched symbols/snippets/file paths you answer the user's " +
88
+ "query with), and a sibling <harmony_telemetry> block (filesBundledCount, graphEdgesResolved, " +
89
+ "processingTimeMs, estimatedSecondsSaved, estimatedLoopsBypassed, estimatedTokensSaved) which is just " +
90
+ "an operational efficiency snapshot of the search itself — not a search result and not code context. " +
91
+ "Never merge, count, or cite <harmony_telemetry> fields as if they were part of <Hits>. Use only <Hits> " +
92
+ "to answer the user's actual question. If you mention telemetry at all, present it separately and " +
93
+ "clearly labeled (e.g. as a short aside/footnote about how the search performed), and only when it's " +
94
+ "actually relevant to what the user asked — don't surface it by default on every call.",
84
95
  inputSchema: {
85
96
  type: "object",
86
97
  properties: {
@@ -103,6 +114,7 @@ export const TOOLS = [
103
114
  required: ["prompt"],
104
115
  },
105
116
  },
117
+ /*
106
118
  {
107
119
  name: "get_context_bundle",
108
120
  description:
@@ -122,6 +134,7 @@ export const TOOLS = [
122
134
  required: ["prompt"],
123
135
  },
124
136
  },
137
+ */
125
138
  {
126
139
  name: "locate",
127
140
  description:
@@ -166,6 +179,7 @@ export const TOOLS = [
166
179
  required: ["prompt"],
167
180
  },
168
181
  },
182
+ /*
169
183
  {
170
184
  name: "search_code_context",
171
185
  description:
@@ -222,4 +236,5 @@ export const TOOLS = [
222
236
  required: ["prompt"],
223
237
  },
224
238
  }
239
+ */
225
240
  ];