Skip to content

fix: include mcp/package.json in npm files array#36

Open
danshapiro wants to merge 1 commit into
obra:mainfrom
danshapiro:fix-missing-mcp-package-json
Open

fix: include mcp/package.json in npm files array#36
danshapiro wants to merge 1 commit into
obra:mainfrom
danshapiro:fix-missing-mcp-package-json

Conversation

@danshapiro
Copy link
Copy Markdown

The compiled mcp/dist/index.js references ../package.json at runtime to read SERVER_VERSION. Since mcp/package.json was not listed in the root files array, npm installs excluded it, causing:

Error: Cannot find module '.../mcp/package.json'

This made the package un-runnable when installed via npx -y github:obra/superpowers-chrome or npm install superpowers-chrome-mcp.

Adding mcp/package.json to the files array fixes the crash on startup.

The compiled mcp/dist/index.js references ../package.json at runtime
to read SERVER_VERSION. Since mcp/package.json was not listed in the
root files array, npm installs excluded it, causing:

  Error: Cannot find module '.../mcp/package.json'

This made the package un-runnable when installed via npx or npm install.
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.

1 participant