fix(mcp): hide containerTag from tool schemas when x-sm-project header is set#749
Merged
graphite-app[bot] merged 1 commit intomainfrom Feb 20, 2026
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| 🔵 In progress View logs |
supermemory-mcp | a9c6871 | Feb 20 2026, 04:31 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | c82dcdc | Feb 20 2026, 04:39 AM |
Member
Author
How to use the Graphite Merge QueueAdd the label Main to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Dhravya
approved these changes
Feb 20, 2026
Merge activity
|
…r is set (#749) ### fix(mcp): prevent LLM from overriding x-sm-project container tag - When `x-sm-project` header is configured, the `containerTag` field is now excluded from memory/recall/context tool schemas - This prevents LLMs from overriding the configured project by picking a different containerTag from the available projects list - When no header is set, behavior is unchanged — containerTag remains visible in schemas for manual project selection via listProjects
a9c6871 to
c82dcdc
Compare
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.

fix(mcp): prevent LLM from overriding x-sm-project container tag
x-sm-projectheader is configured, thecontainerTagfield is nowexcluded from memory/recall/context tool schemas
different containerTag from the available projects list
in schemas for manual project selection via listProjects