Repository navigation
Conversation
… MCP
When rewriting bundled plugin MCP manifests to HTTP (`--mcp http`),
always emit `"type": "http"` for Claude Code and CodeBuddy plugin
`.mcp.json` targets (either via explicit `{ agent }` option or detected
`.claude-plugin/plugin.json` / `.codebuddy-plugin/plugin.json` manifest)
so Claude Code does not treat the url-only entry as stdio and silently
drop it.
Keep existing behavior for Codex, Gemini extension, OpenClaw, and
Antigravity manifests. Also run the HTTP manifest rewrite before host
plugin CLIs install/snapshot the copied bundle so cached plugin copies
carry the rewritten HTTP entry too.
Fixes AVIDS2#422.
Signed-off-by: sama Pyb <peiyibopybsama@gmail.com>
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.
Summary
rewriteBundledMemorixMcpToHttp/toHttpMemorixServerinsrc/cli/commands/setup.tsto always write"type": "http"for Claude Code and CodeBuddy plugin.mcp.jsontargets (matched via explicit{ agent }option or detected.claude-plugin/plugin.json/.codebuddy-plugin/plugin.jsonmanifest).type: "http"only when an entry already carries a stringtype).installAgentSetupbefore host plugin CLIs (claude,codebuddy,codex,copilot,openclaw) register or snapshot the copied plugin, so cached plugin copies also receive the HTTP.mcp.jsonentry rather than the pre-rewrite stdio entry.tests/cli/setup-command.test.tsto verify Claude and CodeBuddy.mcp.jsonget"type": "http", cached Claude plugin copies match whenclaudeCLI is present, and Codex/Gemini/OpenClaw/Antigravity formats remain unchanged.Fixes #422
Verification
npx vitest run --no-file-parallelism --maxWorkers=1 tests/cli/setup-command.test.ts tests/workspace/claude-code-mcp.test.ts tests/workspace/mcp-config.test.ts tests/cli/agent-doctor.test.ts tests/cli/pi-setup.test.ts tests/cli/workbuddy-setup.test.ts tests/cli/dsh-setup.test.ts: 7 files / 142 tests passed.npm run build:workspaces && npm run lint && npm run build:cli: passed.npm run check:mcp-registry && npm run check:plugin-release: passed.HOMEend-to-end run ofnode dist/cli/index.js setup --agent claude --global --mcp httpverified both the marketplace.mcp.jsonand.claude/plugins/cache/memorix-local/memorix/1.10.5/.mcp.jsoncontain"type": "http", andclaude plugin validatepasses on both directories.