Build on install via prepare, and fix install docs for the pre-npm GitHub path#1
Merged
Conversation
Replaces prepublishOnly with prepare, which runs on git/local installs and before publish. This lets the server be run straight from GitHub without a manual build, e.g. npx -y github:HYPD-AI/openai-ads-mcp, which is handy until the npm package is published. No runtime behavior changes.
The npm package isn't published yet, so npx -y openai-ads-mcp 404s. Update the client snippets (Claude Desktop, Cursor, VS Code, other) to use github:HYPD-AI/openai-ads-mcp, which npx fetches and builds via the prepare script — no clone or manual build needed. Add a first-launch warm-up note and point to Running from source for instant startup. Once published, the spec shortens back to openai-ads-mcp.
prepare (enables npx github:… before npm publish)prepare, and fix install docs for the pre-npm GitHub path
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.
What
prepublishOnlywith apreparescript (npm run build) so the package builds itsdist/automatically on install.github:HYPD-AI/openai-ads-mcp(Claude Desktop, Cursor, VS Code, other clients), since the npm package isn't published yet andnpx -y openai-ads-mcp404s today.Why
A new user can now run the server from a single MCP config block — no clone, no
npm install, no absolute path:prepareruns on git/local installs and before publish, sonpxfetches + builds it on the fly. Once published to npm, the spec shortens back toopenai-ads-mcp(the README says so).Verified
dist/) →npm install→preparebuildsdist/index.js, and the bin then completes an MCPinitialize+tools/listhandshake. That's exactly thenpx github:flow.format:check, lint, typecheck, tests, and build all green.Notes
npx github:launch builds from source (~a minute); the README documents a one-time terminal warm-up and points to "Running from source" for instant startup.https://claude.ai/code/session_01EQTYKCNBFgqc9fTTeSc7qd