Repository navigation
fix(mcp): use DELETE for governance memory deletion proxy - #423
Conversation
|
@honor2030 is attempting to deploy a commit to the rohitg00's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR corrects the HTTP method used by the ChangesDELETE Method Proxy Fix
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly Related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks, completely missed it. @honor2030 |
|
Thanks for the quick review and merge! Easy one to miss since the endpoint/body looked otherwise consistent. I’ll keep future fixes small and focused like this. |
Co-authored-by: 이민재 <19909783+honor2030@users.noreply.github.com>
Summary
memory_governance_deleteto call the REST governance endpoint withDELETEinstead ofPOSTWhy
src/triggers/api.tsregisters/agentmemory/governance/memoriesas aDELETEendpoint. The standalone MCP proxy was usingPOST, which returns405 Method Not Allowedagainst the live server and then falls back to local KV instead of deleting server memories.Test Plan
AGENTMEMORY_URL=http://127.0.0.1:9 AGENTMEMORY_PROBE_TIMEOUT_MS=50 npx vitest run test/mcp-standalone-proxy.test.ts -t "proxies memory_governance_delete"failed before the implementation withPOST /agentmemory/governance/memories -> 405 Method Not AllowedAGENTMEMORY_URL=http://127.0.0.1:9 AGENTMEMORY_PROBE_TIMEOUT_MS=50 npx vitest run test/mcp-standalone-proxy.test.ts -t "proxies memory_governance_delete"npm run buildAGENTMEMORY_URL=http://127.0.0.1:9 AGENTMEMORY_PROBE_TIMEOUT_MS=50 npx vitest run test/mcp-standalone-proxy.test.tsAGENTMEMORY_URL=http://127.0.0.1:9 AGENTMEMORY_PROBE_TIMEOUT_MS=50 npm testreached 953/955 or 954/955 passing in repeated runs; the remaining failures were existing timing/flaky tests intest/context-injection.test.tsandtest/fs-watcher.test.ts, outside this PR's diff. Rerunning the targeted failing tests individually passed.Summary by CodeRabbit
Bug Fixes
Tests