Repository navigation
Conversation
…, and add --check
This branch has not been deployed
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.
Who this helps
Coding-agent users and contributors setting up
@proofline/mcpin Cursor, Claude Code, Codex, or Windows environments benefit from four concrete fixes and a preflight diagnostic command:PROOFLINE_BASE_URLhandling (src/bridge.js): Previouslyenv.PROOFLINE_BASE_URL ?? "https://proofline.sh"treated an empty environment string ("", often left by CI/IDE.envtemplates) as an invalid URL and exited 1. EmptyPROOFLINE_BASE_URLnow counts as unset and falls back cleanly tohttps://proofline.sh, matching@proofline/sdk.src/bridge.js): Allowshttp://localhostandhttp://127.x.y.zalongside[::1]for local HTTP test/proxy endpoints, while preserving strict rejection of credentials, paths, query/fragment, and remote HTTP.src/bridge.js,src/cli.js): Ignores empty/CRLF-only stdio lines instead of throwing-32700parse errors, addsUser-Agent: proofline-mcp/<version>, surfaces which env var failed (set PROOFLINE_TOKENvsinvalid origin) without ever echoing token/URL values, and addsproofline-mcp --checkso users can validate setup before launching an agent.test:packagefix (scripts/packed-smoke.js): Spawningnpm.cmddirectly viaexecFileSyncraisesspawnSync npm.cmd EINVALon Node >= 22 on Windows. Invokingprocess.env.npm_execpathviaprocess.execPath(withshell: process.platform === "win32"fallback) fixesnpm run test:packagecross-platform.How I verified it
All checks run after the final edit inside
mcpon Node v26.13.1 / Windows 11:npm run check(node --check src/cli.js && node --check src/bridge.js) — passednpm test(node --test tests/*.test.js) — 13/13 passed (12 existing + new coverage for emptyPROOFLINE_BASE_URL,localhost/127.0.0.2, CRLF/blank keepalive frames,User-Agent, and--check)npm run test:package(node scripts/packed-smoke.js) — packed tarball, installed into a clean temp dir, and ran 11/11tests/bridge.test.js+--versionchecks cleanly