Repository navigation
mcp wrap: ship chisle-command-filters.js with the proxy, launch it with the absolute node path - #65
Open
datamonsterr wants to merge 1 commit into
Open
datamonsterr wants to merge 1 commit into
datamonsterr wants to merge 1 commit into
Conversation
…th the absolute node path The installed proxy in <config>/chisle/mcp-proxy/ lacked chisle-command-filters.js, which chisle-compress-output.js requires, so every wrapped stdio server crashed at start with "Cannot find module './chisle-command-filters'". Add it to PROXY_SOURCES. wrapEntry wrote command "node"; hosts started without node on PATH (a version manager loaded only in interactive shells) could not launch the proxy. Write process.execPath instead, for JSON configs and Codex TOML. isWrapped only looks at args, so entries wrapped by older versions are still recognised and unwrap exactly. Tests: the installed proxy folder is self-contained (every relative require resolves inside it and the proxy loads from there), and an entry wrapped with "node" is still seen as wrapped and unwraps exactly. Fixes JayPokale#64 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@datamonsterr is attempting to deploy a commit to the jaypokale35gmailcom's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
npx chisle mcp wrapinstalled a proxy that crashed on start, so every wrapped stdio MCP server failed to launch.bin/lib/mcp.js: addchisle-command-filters.jstoPROXY_SOURCES.chisle-compress-output.jsrequires it, and the proxy folder (<config>/chisle/mcp-proxy/) didn't get a copy.wrapEntrywritesprocess.execPathinstead of a barenode(JSON configs and Codex TOML), so hosts started without Node onPATH(a version manager loaded only in interactive shells) can still launch the proxy.isWrappedonly looks atargs, so entries wrapped withnodeby older versions are still recognised and unwrap exactly.npx chisle mcp wraprefreshes an installed proxy; servers already wrapped keepnodeuntilmcp unwrap+mcp wrap.Fixes #64
Testing
npm test: 279/279 pass.npm run check:rules,check:chart,check:samplesclean.mcp wrap, every relativerequirein every file of the installed proxy folder resolves inside that folder, and the proxy loads from there. It fails onmainwithCannot find module, together with the two updatedprocess.execPathassertions (3 failures onmain, 0 with this change).command: "node"by an older version is reported as wrapped, left alone bywrap, and restored exactly byunwrap.mcp wrap --only cursorin a temp home, then launched the wrapped command withPATH=/usr/bin:/bin(no Node) and sentinitialize; the proxy started and returned the server's response.🤖 Generated with Claude Code