Skip to content

fix(mcp): change memories.delete to documents.delete for forget action#737

Merged
Dhravya merged 1 commit intosupermemoryai:mainfrom
Coldaine:fix/mcp-forget-action
Feb 16, 2026
Merged

fix(mcp): change memories.delete to documents.delete for forget action#737
Dhravya merged 1 commit intosupermemoryai:mainfrom
Coldaine:fix/mcp-forget-action

Conversation

@Coldaine
Copy link
Contributor

The MCP server's 'forget' action was attempting to call 'this.client.memories.delete', which is not a valid method in the current SDK. Changed to 'this.client.documents.delete' to fix the server-side error: 'this.client.memories.delete is not a function'.

Copilot AI review requested due to automatic review settings February 14, 2026 02:46
@graphite-app graphite-app bot requested a review from Dhravya February 14, 2026 02:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes the MCP server’s forget action by calling the correct Supermemory SDK deletion API, resolving the runtime error where this.client.memories.delete was not available.

Changes:

  • Replace this.client.memories.delete(...) with this.client.documents.delete(...) when deleting the most similar search result in forgetMemory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Dhravya Dhravya merged commit 1328c2a into supermemoryai:main Feb 16, 2026
6 of 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