Skip to content

fix(mcp): default OMP_PLUGIN_ROOT so bigpowers-mcp starts outside OMP (#168) - #169

Merged
danielvm-git merged 1 commit into
danielvm-git/determined-chandrasekhar-f1acf9from
danielvm-git/bigpowers-bug-investigation-9fa73c
Oct 30, 2026
Merged

danielvm-git merged 1 commit into
danielvm-git/determined-chandrasekhar-f1acf9from
danielvm-git/bigpowers-bug-investigation-9fa73c

Conversation

@danielvm-git

@danielvm-git danielvm-git commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • bigpowers-mcp cannot start: bare 'node' spawn fails, then build/index.js has no installed dependencies #168 (on 2.87.3) reports two failures: a bare node ENOENT, then ERR_MODULE_NOT_FOUND for @modelcontextprotocol/sdk. Both came from the manifest shipped before 2.88.4 and were fixed by fix(mcp): start bigpowers-mcp from OMP plugin installs (#123) #125. Re-verified: a packed 2.88.16 installed into an empty plugin folder answers initialize and tools/list with no extra npm install. The posix_spawn 'node' text is Bun's error for a missing cwd, not a PATH problem (Bun.spawn(["node"], {cwd: "/nonexistent"}) reproduces it).
  • Remaining defect: .mcp.json used ${OMP_PLUGIN_ROOT} with no default. omp injects it, but Claude Code project scope does not and leaves an unset ${VAR} literal, so every Claude Code session in this repo showed bigpowers-mcp (CONNECTION_CLOSED). Both references now use ${OMP_PLUGIN_ROOT:-.}. omp supports POSIX :- and always sets the variable, so nothing changes there.
  • scripts/mcp-smoke.ts now expands the manifest per host profile (omp, claude-code) instead of hard-coding the entry path. That gap is why fix(mcp): start bigpowers-mcp from OMP plugin installs (#123) #125 missed this. scripts/validate-mcp-package.sh rejects a reference without a :- default.
  • Docs: docs/references/bigpowers-mcp.md drops the wrong claim that Claude Code expands OMP_PLUGIN_ROOT and adds a troubleshooting table. BUG-2026-09-10 (bug: published MCP server cannot start as an OMP plugin #123) is marked fixed. New bug file: specs/bugs/BUG-2026-10-30-mcp-unset-plugin-root.md.

Closes #168

Test plan

  • node scripts/mcp-smoke.ts: fails before the change (claude-code profile, literal ${OMP_PLUGIN_ROOT} path), passes after for both profiles
  • bash scripts/validate-mcp-package.sh: fails before, passes after
  • claude mcp list local-scope check from an installed package: old manifest CONNECTION_CLOSED, new manifest Connected
  • Preflight (compliance, verification gates, sync-skills, trace-stories --strict): exit 0
  • CI green

Stacked on #171. #171 replaces fail/pass in validate-mcp-package.sh with ta_err/ta_ok, so this PR's new OMP_PLUGIN_ROOT check uses those helpers. Merge #171 first; GitHub then retargets this PR to main. Preflight on the stacked branch: exit 0, compliance 0 FAIL, mcp-package PASS.

🤖 Generated with Claude Code

…#168)

The shipped .mcp.json used ${OMP_PLUGIN_ROOT} with no default. omp
injects it, but Claude Code project scope does not and leaves an unset
${VAR} literal, so it spawned node '${OMP_PLUGIN_ROOT}/...' and the
server failed with CONNECTION_CLOSED. Both references now use
${OMP_PLUGIN_ROOT:-.}, which omp ignores and other hosts resolve from
the project root.

mcp-smoke.ts now expands the manifest per host profile (omp, claude-code)
instead of hard-coding the entry, and validate-mcp-package.sh rejects a
reference without a :- default.

The failures reported in #168 (bare node ENOENT, missing SDK) were the
pre-2.88.4 manifest; re-verified fixed on a packed 2.88.16 install, so
BUG-2026-09-10-pi-mcp-omp-startup is marked fixed.

Closes #168
@danielvm-git
danielvm-git force-pushed the danielvm-git/bigpowers-bug-investigation-9fa73c branch from a455673 to dcdae5d Compare October 30, 2026 18:16
@danielvm-git
danielvm-git changed the base branch from main to danielvm-git/determined-chandrasekhar-f1acf9 October 30, 2026 18:16
@danielvm-git
danielvm-git merged commit 8f39ad7 into danielvm-git/determined-chandrasekhar-f1acf9 Oct 30, 2026
7 checks passed
danielvm-git added a commit that referenced this pull request Oct 30, 2026
…lit oversized files (#171)

* fix(compliance): restore akita.feature to 0 FAIL — dedupe helpers, split oversized files

akita.feature sat at PASS 17 / FAIL 2 on main. The 94% global gate
(97% overall) hid it. Root cause: duplicate bash function names
(pass/fail/run_fixture/run_verify_cmd) added in #118, #123/#125 and #161,
and two files over the 300-line cap (srp-engine.py via #155,
run-story-verify.sh via #161). The checks were right, so the code is fixed:

- lib/test-assertions.sh gains ta_err/ta_ok; the validate-*.sh gates and
  two test scripts use the shared ta_* helpers.
- run_fixture -> ggr_run_fixture; run-story-verify's run_verify_cmd ->
  run_memoized_chain, moved with its memo helpers to lib/story-verify-memo.sh.
- render_okf_concept moves to lib/srp_engine_okf.py.

Compliance is now 98 PASS / 0 FAIL (100%). Exit-code policy is unchanged.

BUG-2026-10-30-compliance-akita-masked

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(mcp): default OMP_PLUGIN_ROOT so bigpowers-mcp starts outside OMP (#168) (#169)

The shipped .mcp.json used ${OMP_PLUGIN_ROOT} with no default. omp
injects it, but Claude Code project scope does not and leaves an unset
${VAR} literal, so it spawned node '${OMP_PLUGIN_ROOT}/...' and the
server failed with CONNECTION_CLOSED. Both references now use
${OMP_PLUGIN_ROOT:-.}, which omp ignores and other hosts resolve from
the project root.

mcp-smoke.ts now expands the manifest per host profile (omp, claude-code)
instead of hard-coding the entry, and validate-mcp-package.sh rejects a
reference without a :- default.

The failures reported in #168 (bare node ENOENT, missing SDK) were the
pre-2.88.4 manifest; re-verified fixed on a packed 2.88.16 install, so
BUG-2026-09-10-pi-mcp-omp-startup is marked fixed.

Closes #168

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
github-actions Bot pushed a commit that referenced this pull request Oct 30, 2026
## [2.88.17](v2.88.16...v2.88.17) (2026-10-30)

### Bug Fixes

* **compliance:** restore akita.feature to 0 FAIL — dedupe helpers, split oversized files ([#171](#171)) ([4ed9a26](4ed9a26)), closes [#118](#118) [123/#125](#125) [#161](#161) [#155](#155) [#161](#161) [#168](#168) [#169](#169) [#168](#168) [#168](#168)
danielvm-git added a commit that referenced this pull request Oct 30, 2026
…evidence (#172)

The fix from PR #169 landed on main in the #171 squash (4ed9a26).
Test Build Release run 41121956124 passed every job. The release job
did not publish because #170 had already landed on top, so the run for
90e12d9 publishes the next version. Clear the fix_bug cycle in
state.yaml.
@danielvm-git
danielvm-git deleted the danielvm-git/bigpowers-bug-investigation-9fa73c branch October 30, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bigpowers-mcp cannot start: bare 'node' spawn fails, then build/index.js has no installed dependencies

1 participant