[make] Make NPX installable#9
Open
jeroenev wants to merge 2 commits into
Open
Conversation
pl4nty
reviewed
Mar 30, 2026
Co-authored-by: Tom Plant <tom@tplant.com.au>
pl4nty
reviewed
Apr 3, 2026
| // Export only the `#sc-active-cart` content to a mock file | ||
| const timestamp = getTimestamp() | ||
| const mockPath = `${__dirname}/../mocks/getCartContent_${timestamp}.html` | ||
| const mockPath = path.join(PACKAGE_ROOT, 'mocks', `getCartContent_${timestamp}.html`) |
There was a problem hiding this comment.
mocks doesn't exist when I installed with npx, so this throws. maybe EXPORT_LIVE_SCRAPING_FOR_MOCKS should be disabled by default
[ERROR][get-cart-content] Error in get-cart-content tool: Error: ENOENT: no such file or directory, open '/home/nanobot/.npm/_npx/91ea6e9f96498d68/node_modules/mcp-server-amazon/mocks/getCartContent_2026-04-03_02-54-11.html'
at Object.writeFileSync (node:fs:2398:20)
at getCartContent (file:///home/nanobot/.npm/_npx/91ea6e9f96498d68/node_modules/mcp-server-amazon/build/cart.js:38:20)
at async file:///home/nanobot/.npm/_npx/91ea6e9f96498d68/node_modules/mcp-server-amazon/build/index.js:51:23
at async McpServer.executeToolHandler (file:///home/nanobot/.npm/_npx/91ea6e9f96498d68/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js:233:20)
at async file:///home/nanobot/.npm/_npx/91ea6e9f96498d68/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js:126:32
at async wrappedHandler (file:///home/nanobot/.npm/_npx/91ea6e9f96498d68/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js:125:32) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/nanobot/.npm/_npx/91ea6e9f96498d68/node_modules/mcp-server-amazon/mocks/getCartContent_2026-04-03_02-54-11.html'
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.