@@ -138,6 +138,100 @@ format change.
138138 paths, and ` morph-e2e ` finds the ` morph ` binary without the
139139 deprecated ` assert_cmd::Command::cargo_bin ` , which fails under
140140 cargo's new build-directory layout.
141+ ## [ 0.48.3] — 2026-05-06
142+
143+ Re-cuts v0.48.2 with a CI-only fix: the ` setup_cursor ` acceptance
144+ specs that v0.48.2 introduced asserted ` mcp.json ` contains an
145+ absolute path ending in ` /morph-mcp ` . They passed locally (where
146+ ` morph-mcp ` is on ` PATH ` for any active Morph user) but failed on
147+ the GitHub Actions runner because ` cargo test --workspace ` does
148+ ** not** build the actual ` morph-mcp ` * binary* at
149+ ` target/debug/morph-mcp ` — only its unit-test binary in
150+ ` target/debug/deps/ ` . With no ` morph-mcp ` on PATH and no sibling
151+ of ` morph ` , ` resolve_mcp_command() ` correctly fell back to the
152+ bare name and the spec ` file_contains: '/morph-mcp"' ` assertion
153+ flunked. Net effect: the v0.48.2 release pipeline never reached
154+ the ` publish ` / ` update-tap ` steps, so v0.48.2 has a tag but no
155+ Homebrew formula update. v0.48.3 carries the same user-visible
156+ behaviour and ships through the pipeline cleanly.
157+
158+ ### Fixed
159+
160+ - ** ` morph-cli/build.rs ` ** plants a stub ` morph-mcp ` file in
161+ ` OUT_DIR ` and injects ` MORPH_MCP_PATH=<OUT_DIR>/morph-mcp ` into
162+ every generated spec-test invocation. The resolver's first
163+ resolution branch (env var, validated via ` is_file() ` ) is now
164+ exercised deterministically across local and CI runs without
165+ depending on workspace build order or the runner's ` PATH ` . The
166+ production fallback chain (env → sibling → ` PATH ` → bare) is
167+ unchanged; only the test-harness path is pinned.
168+
169+ ### Tests
170+
171+ - Same six ` setup_cursor ` cases as v0.48.2; now green on a
172+ runner with no installed morph-mcp and no ` target/debug/morph-mcp ` .
173+ Verified locally by running ` cargo test --workspace --locked `
174+ with ` PATH=/tmp/fake-bins:/usr/bin:/bin ` (no morph-mcp anywhere)
175+ — 1220 tests passing across the workspace.
176+ - ` morph-cli/tests/specs/version.yaml ` updated to assert the new
177+ ` 0.48.3 ` version string in ` --version ` , ` version ` , and
178+ ` version --json ` output.
179+
180+ ## [ 0.48.2] — 2026-05-06
181+
182+ User-visible bug fix: ` morph setup cursor ` (and the
183+ ` claude-code ` / ` opencode ` siblings, and the ` aoe ` delegator
184+ that calls them) now resolve ` morph-mcp ` to an ** absolute path**
185+ before writing the IDE integration JSON. Cursor on macOS is a
186+ GUI-launched app that does not inherit the user's shell PATH,
187+ so the previous ` command: "morph-mcp" ` entry silently failed to
188+ spawn for Homebrew users on ` /opt/homebrew/bin ` — the agent saw
189+ the ` morph-record.mdc ` rule but had no ` morph_record_session `
190+ tool to call. This release closes that gap.
191+
192+ ### Fixed
193+
194+ - ** ` morph-cli/src/setup.rs ` ** : new ` resolve_mcp_command() `
195+ helper writes an absolute path to ` morph-mcp ` into
196+ ` .cursor/mcp.json ` , ` .claude/settings.json ` , and
197+ ` opencode.json ` . Resolution order: ` MORPH_MCP_PATH ` env var
198+ (escape hatch for non-standard installs) → ` morph-mcp `
199+ sibling of the running ` morph ` binary via
200+ ` current_exe() ` (the common case for Homebrew, `cargo
201+ install` , AUR, etc.) → manual ` PATH` walk → bare-name
202+ fallback. The bare-name fallback emits a stderr warning so
203+ the user can fix it manually.
204+ - ** ` SetupReport ` / ` OpenCodeSetupReport ` /
205+ ` ClaudeCodeSetupReport ` ** now carry the resolved
206+ ` mcp_command ` string, and the ` morph setup … ` CLI summary
207+ prints it as ` morph-mcp: <resolved path> ` so a fresh setup
208+ immediately shows what got written into the IDE config.
209+
210+ ### Tests
211+
212+ - ** New spec:** ` morph-cli/tests/specs/setup_cursor.yaml `
213+ covers ` setup cursor ` 's contract end-to-end: ` .cursor/mcp.json `
214+ + ` .cursor/hooks.json ` + the four hook scripts get written,
215+ the resolved command is an absolute path ending in
216+ ` /morph-mcp ` , the CLI prints the path, the operation is
217+ idempotent, existing user MCP servers are preserved, and a
218+ missing ` .morph/ ` errors out cleanly. 6 cases, all passing.
219+ - ** New unit tests:** ` resolve_mcp_command_honours_env_override `
220+ and ` resolve_mcp_command_ignores_env_when_path_does_not_exist `
221+ pin the env-var contract and the resolver's fallback
222+ behaviour against bogus overrides.
223+ - Existing ` mcp_json_created ` , ` claude_code_settings_json_created ` ,
224+ and ` opencode_json_created ` tests now accept either the bare
225+ ` morph-mcp ` name or any absolute path ending in ` morph-mcp ` ,
226+ matching the new resolver semantics. The setup_claude_code
227+ spec relaxes its ` '"morph-mcp"' ` assertion to ` 'morph-mcp"' `
228+ for the same reason.
229+
230+ ### Total
231+
232+ 493 morph-cli tests passing (41 doc + 8 setup + 432 spec +
233+ 10 status + 2 status-merge). No other crate's behaviour
234+ changed.
141235
142236## [ 0.48.1] — 2026-05-02
143237
@@ -1716,7 +1810,9 @@ Three coordinated changes to repo setup, adoption, and migration.
17161810 ` init_at_latest:* ` ×4, ` init_in_git_dir:* ` ×6, ` upgrade:* ` ×5.
17171811
17181812[ Unreleased ] : https://github.com/r/morph/compare/v0.49.0...HEAD
1719- [ 0.49.0 ] : https://github.com/r/morph/compare/v0.48.1...v0.49.0
1813+ [ 0.49.0 ] : https://github.com/r/morph/compare/v0.48.3...v0.49.0
1814+ [ 0.48.3 ] : https://github.com/r/morph/compare/v0.48.2...v0.48.3
1815+ [ 0.48.2 ] : https://github.com/r/morph/compare/v0.48.1...v0.48.2
17201816[ 0.48.1 ] : https://github.com/r/morph/compare/v0.48.0...v0.48.1
17211817[ 0.48.0 ] : https://github.com/r/morph/compare/v0.47.0...v0.48.0
17221818[ 0.47.0 ] : https://github.com/r/morph/compare/v0.46.0...v0.47.0
0 commit comments