Skip to content

fix: MCP proxy uses the repo space instead of activeSpace - #124

Merged
Dhravya merged 6 commits into
mainfrom
fix/mcp-repo-container-tag
Sep 17, 2026
Merged

Dhravya merged 6 commits into
mainfrom
fix/mcp-repo-container-tag

Conversation

@MaheshtheDev

@MaheshtheDev MaheshtheDev commented Sep 12, 2026

Copy link
Copy Markdown
Member

Plugin hooks already read and write repo_<name>__<hash>, but the MCP proxy was a pass-through to mcp.supermemory.ai. Hosted MCP treats a missing containerTag as the user's durable activeSpace (shared across every MCP client), so search_memory / add_memory from Claude Code could hit a completely different space than the one capture and recall use.

The proxy now injects getContainerTag(cwd) on space-scoped tools/call requests when containerTag is omitted. An explicit tag is left alone, and set-active-tag / whoAmI / tools/list are not rewritten, so this does not clobber the user's global active space.

Recall advertising is updated to match: search_memory defaults to this project's container; pass containerTag only to search somewhere else. That inverts the omit-means-activeSpace bullet in #125.

On merge to main, a Release workflow patch-bumps package.json, plugin.json, and latest.json (same mechanism as Codex, without npm publish). The PR itself stays on 0.1.6 so merge becomes 0.1.7.

Tests cover injection, explicit overrides, unrelated tools, and the new recall copy.

Hosted MCP defaults a missing containerTag to the user's durable
activeSpace, so plugin search/save could miss the repo container the
hooks already write to. Inject the repo tag on space-scoped tool calls
unless one is already set.
Proxy injection means omitting containerTag no longer hits activeSpace.
Tell the model search_memory is already scoped to this project, and to
pass containerTag only when searching somewhere else.
CI does not bump the marketplace version. Ship the repo-space MCP
routing fix as 0.1.7 so plugin update notices fire.
Same mechanism as codex-supermemory: patch-bump on main, skip the
follow-up chore(release) commit. Syncs package.json, plugin.json, and
latest.json. No npm publish — this is a Claude Code marketplace plugin.
@MaheshtheDev
MaheshtheDev marked this pull request as ready for review September 12, 2026 23:36
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-12T23:40:12.077854Z ae2bac0 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae2bac0096

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

git commit -m "chore(release): ${VERSION}"

- name: Push version bump
run: git push origin HEAD:main

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Rebase the version bump before pushing main

When multiple commits reach main before their release runs finish, each run checks out its own event SHA and creates a different bump commit; after one run or a later merge advances main, this unconditional push can be rejected as non-fast-forward. Git permits ordinary branch updates only when the new tip descends from the remote tip (git-push documentation), so the workflow can fail and omit the promised per-merge version bump. Cancel stale runs or fetch/rebase and regenerate the bump before retrying the push.

Useful? React with 👍 / 👎.

@Dhravya
Dhravya merged commit eb14c67 into main Sep 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants