@codeconductorai/harmony-mcp 1.0.32 → 1.0.33
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 +10 -10
- package/package.json +1 -1
- package/src/harmonyClient.js +3 -2
- package/src/workspaceMarker.js +1 -1
package/README.md
CHANGED
|
@@ -27,18 +27,18 @@ 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.
|
|
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.33`) 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
|
-
npx -y @codeconductorai/harmony-mcp@1.0.
|
|
35
|
+
npx -y @codeconductorai/harmony-mcp@1.0.33 install claude
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
This registers the server for all your projects (`claude mcp add harmony --scope user ...`) and adds the session
|
|
39
39
|
hook from [Session id](#session-id) to `~/.claude/settings.json`. Claude Code reads Harmony's guidance (when to use
|
|
40
40
|
which tool, and to treat returned code as already read) from the server's instructions, so nothing is added to your
|
|
41
|
-
project. To register only the server: `claude mcp add harmony -- npx -y @codeconductorai/harmony-mcp@1.0.
|
|
41
|
+
project. To register only the server: `claude mcp add harmony -- npx -y @codeconductorai/harmony-mcp@1.0.33`.
|
|
42
42
|
|
|
43
43
|
### Antigravity
|
|
44
44
|
|
|
@@ -52,7 +52,7 @@ Open **MCP Servers → Manage MCP Servers → View raw config** from the agent p
|
|
|
52
52
|
"mcpServers": {
|
|
53
53
|
"harmony": {
|
|
54
54
|
"command": "npx",
|
|
55
|
-
"args": ["-y", "@codeconductorai/harmony-mcp@1.0.
|
|
55
|
+
"args": ["-y", "@codeconductorai/harmony-mcp@1.0.33"]
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -65,7 +65,7 @@ Restart Antigravity (or reload MCP servers) after saving.
|
|
|
65
65
|
Run this in your project:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
npx -y @codeconductorai/harmony-mcp@1.0.
|
|
68
|
+
npx -y @codeconductorai/harmony-mcp@1.0.33 install codex
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
It does the three things Codex needs to actually use Harmony, and is safe to run again:
|
|
@@ -80,13 +80,13 @@ It does the three things Codex needs to actually use Harmony, and is safe to run
|
|
|
80
80
|
Each file is backed up once (`*.harmony-bak`) before its first change. Options: `--yes` (no prompt), `--no-agents-md`,
|
|
81
81
|
`--project <dir>`, `--env API_URL=...`, `--dry-run`. If you skip it, `setup_workspace` reminds Codex to offer it.
|
|
82
82
|
|
|
83
|
-
To set it up by hand instead, `codex mcp add harmony -- npx -y @codeconductorai/harmony-mcp@1.0.
|
|
83
|
+
To set it up by hand instead, `codex mcp add harmony -- npx -y @codeconductorai/harmony-mcp@1.0.33` writes the entry
|
|
84
84
|
to `~/.codex/config.toml`, or add:
|
|
85
85
|
|
|
86
86
|
```toml
|
|
87
87
|
[mcp_servers.harmony]
|
|
88
88
|
command = "npx"
|
|
89
|
-
args = ["-y", "@codeconductorai/harmony-mcp@1.0.
|
|
89
|
+
args = ["-y", "@codeconductorai/harmony-mcp@1.0.33"]
|
|
90
90
|
# Harmony's query tools only read the index; pre-approving them avoids an approval prompt (or, with
|
|
91
91
|
# --approve-for-me, an automatic reviewer that costs extra model requests and can reject the calls).
|
|
92
92
|
default_tools_approval_mode = "approve"
|
|
@@ -105,7 +105,7 @@ The installer's other two steps, by hand:
|
|
|
105
105
|
better" section to the project's `AGENTS.md`:
|
|
106
106
|
|
|
107
107
|
```bash
|
|
108
|
-
npx -y @codeconductorai/harmony-mcp@1.0.
|
|
108
|
+
npx -y @codeconductorai/harmony-mcp@1.0.33 --print-agents-md >> AGENTS.md
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
### Aria
|
|
@@ -117,7 +117,7 @@ In the Aria Code panel, click the settings icon → **MCP Servers**, then scroll
|
|
|
117
117
|
"mcpServers": {
|
|
118
118
|
"harmony": {
|
|
119
119
|
"command": "npx",
|
|
120
|
-
"args": ["-y", "@codeconductorai/harmony-mcp@1.0.
|
|
120
|
+
"args": ["-y", "@codeconductorai/harmony-mcp@1.0.33"]
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -134,7 +134,7 @@ Any client that reads a `command`/`args` style config (e.g. Claude Desktop's `cl
|
|
|
134
134
|
"mcpServers": {
|
|
135
135
|
"harmony": {
|
|
136
136
|
"command": "npx",
|
|
137
|
-
"args": ["-y", "@codeconductorai/harmony-mcp@1.0.
|
|
137
|
+
"args": ["-y", "@codeconductorai/harmony-mcp@1.0.33"]
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
package/package.json
CHANGED
package/src/harmonyClient.js
CHANGED
|
@@ -327,8 +327,9 @@ export async function callHarmonySearchEndpoint(endpointPath, args, workspaceId)
|
|
|
327
327
|
limit: args.limit,
|
|
328
328
|
// context_search returns code by default so the agent need not re-read the files; locate stays coordinates-only
|
|
329
329
|
include_code_snippets: args.include_code_snippets ?? (endpointPath === "context-search" ? true : undefined),
|
|
330
|
-
//
|
|
331
|
-
|
|
330
|
+
// Both endpoints answer in the compact LLM format: context_search per llm-context-format-guide.md, locate as one
|
|
331
|
+
// line per symbol grouped by file. Older backends ignore the flag for locate-symbol and keep the XML list.
|
|
332
|
+
response_format: "compact",
|
|
332
333
|
// true = send all code in full even if this session already received it (cleared/compacted context, subagent)
|
|
333
334
|
force_refresh: args.force_refresh,
|
|
334
335
|
workspaceMetadata: buildWorkspaceMetadata(workspaceId),
|
package/src/workspaceMarker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
|
|
4
|
-
export const WORKSPACE_MARKER = ".harmony_workspace.json";
|
|
4
|
+
export const WORKSPACE_MARKER = process.env.HARMONY_WORKSPACE_MARKER || ".harmony_workspace.json";
|
|
5
5
|
|
|
6
6
|
// Read and parse the workspace marker file; null if missing or invalid.
|
|
7
7
|
export function readMarker() {
|