diff --git a/apps/mcp/src/server.ts b/apps/mcp/src/server.ts index 6baa9d2c..e15ef984 100644 --- a/apps/mcp/src/server.ts +++ b/apps/mcp/src/server.ts @@ -384,9 +384,10 @@ export class SupermemoryMCP extends McpAgent { containerTag?: string }) { const { content, action = "save", containerTag } = args + const effectiveContainerTag = containerTag || this.props?.containerTag try { - const client = this.getClient(containerTag) + const client = this.getClient(effectiveContainerTag) const clientInfo = await this.getClientInfo() if (action === "forget") {