Skip to content

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

Closed

Description

@irfndi

Summary

The bundled MCP server definition cannot start on a normal install, so omp logs a failure on every launch:

Warning: MCP server "bigpowers-mcp" failed to connect:
ENOENT: no such file or directory, posix_spawn 'node'

After fixing the spawn, it then fails for a second reason:

Warning: MCP server "bigpowers-mcp" failed to connect:
MCP subprocess closed stdout before responding

with the direct error:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@modelcontextprotocol/sdk'
imported from .../bigpowers/bigpowers-mcp/build/index.js

So the MCP server is currently unusable from any host that reads the package's .mcp.json.

Reproduction

  1. Install bigpowers into an omp plugin tree (~/.omp/plugins), which is how omp picks up plugin-provided MCP configs.
  2. Launch the agent. The server fails on startup with posix_spawn 'node'.
  3. Patch the command to an absolute node path (see below) and relaunch. The server now spawns, then exits immediately with ERR_MODULE_NOT_FOUND for @modelcontextprotocol/sdk.

Root causes

The shipped bigpowers/.mcp.json is:

{
  "mcpServers": {
    "bigpowers-mcp": {
      "command": "node",
      "args": ["bigpowers-mcp/build/index.js"],
      "cwd": "${workspaceFolder}"
    }
  }
}

Two independent problems:

  1. command: "node" + relative args. Hosts that spawn MCP servers without a login shell (omp does) do not inherit a PATH that includes a node installed by a version manager, so the bare name fails with ENOENT. The relative args path also only resolves if cwd happens to be the package root.
  2. Build output has no installed dependencies. bigpowers-mcp/package.json declares @modelcontextprotocol/sdk, js-yaml, remark-*, unified, and zod, but npm install is never run in that subdirectory, so build/index.js cannot resolve any of them.

Workaround I am running

{
  "mcpServers": {
    "bigpowers-mcp": {
      "command": "/opt/homebrew/bin/node",
      "args": ["/Users/<you>/.omp/plugins/node_modules/bigpowers/bigpowers-mcp/build/index.js"]
    }
  }
}

plus:

cd ~/.omp/plugins/node_modules/bigpowers/bigpowers-mcp && npm install --omit=dev

After both, omp starts with no warning and the server connects.

Suggested fixes

  • Ship .mcp.json with an absolute, symlink-resolved args path (computed at install time), and either an absolute command or a node resolved through the host's own runtime.
  • Run the bigpowers-mcp install step as part of the package's postinstall, or bundle the MCP server's deps so build/index.js is self-contained.
  • Failing both, document the two-step workaround in the README — right now the failure looks like an omp problem, and I lost time proving it was not.

Environment

  • bigpowers 2.87.3
  • omp v18.14.0 (macOS 26, arm64)
  • Node v26.13.0 at /opt/homebrew/bin/node

Activity

  1. github-actions commented on Oct 30, 2026

    @github-actions

    🎉 This issue has been resolved in version 2.88.17 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  2. danielvm-git commented on Oct 30, 2026

    @danielvm-git
    Owner

    Thanks for the detailed report, and sorry about the time it cost you. You were right that this was a bigpowers problem, not an omp one.

    Your two errors were already fixed in 2.88.4 (#123 / #125). On 2.87.3 the shipped .mcp.json still had "cwd": "${workspaceFolder}":

    1. posix_spawn 'node': this wasn't a PATH problem. workspaceFolder is a VS Code token, not an environment variable, so omp built a working directory that doesn't exist. Bun reports a missing working directory as an error about the command. You can reproduce it with Bun.spawn(["node", "-v"], { cwd: "/nonexistent" }). Your absolute node path worked because your patch also removed the bad cwd.
    2. ERR_MODULE_NOT_FOUND for @modelcontextprotocol/sdk: since 2.88.4 the server's runtime dependencies are in the root bigpowers package, so npm installs them with the plugin.

    What's new in 2.88.17: the manifest now uses ${OMP_PLUGIN_ROOT:-.}. omp always sets that variable, so nothing changes for you. Hosts that don't set it, such as Claude Code project scope, now get a usable path instead of a literal ${OMP_PLUGIN_ROOT}. scripts/mcp-smoke.ts now starts the server from .mcp.json under both host setups, so CI would catch this kind of regression.

    To fix it on your side: upgrade to 2.88.17 and drop both workarounds. You no longer need the hardcoded .mcp.json or the npm install inside bigpowers-mcp. I checked this by packing 2.88.16, installing it into an empty plugin folder, and getting answers to initialize and tools/list without any extra install.

    If anything still fails after upgrading, please reopen this issue with the omp log line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions