Skip to content

fix(mcp): hide containerTag from tool schemas when x-sm-project header is set#749

Merged
graphite-app[bot] merged 1 commit intomainfrom
mcp-container-tag-override
Feb 20, 2026
Merged

fix(mcp): hide containerTag from tool schemas when x-sm-project header is set#749
graphite-app[bot] merged 1 commit intomainfrom
mcp-container-tag-override

Conversation

@Prasanna721
Copy link
Member

@Prasanna721 Prasanna721 commented Feb 20, 2026

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

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
🔵 In progress
View logs
supermemory-mcp a9c6871 Feb 20 2026, 04:31 AM

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 20, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
supermemory-app c82dcdc Feb 20 2026, 04:39 AM

Copy link
Member Author


How to use the Graphite Merge Queue

Add 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.

@Prasanna721 Prasanna721 self-assigned this Feb 20, 2026
@Prasanna721 Prasanna721 requested a review from Dhravya February 20, 2026 04:31
@Prasanna721 Prasanna721 marked this pull request as ready for review February 20, 2026 04:31
@graphite-app
Copy link

graphite-app bot commented 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
@graphite-app graphite-app bot force-pushed the mcp-container-tag-override branch from a9c6871 to c82dcdc Compare February 20, 2026 04:35
@graphite-app graphite-app bot merged commit c82dcdc into main Feb 20, 2026
4 of 6 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