Repository navigation
Add recipe removal endpoint and CLI command - #11816
Conversation
|
Caution Review failedThe pull request is closed.
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 02eb5905ba
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| { | ||
| Name: "recipe_remove", Method: "DELETE", Path: "/v1/recipes/{name}", | ||
| Permission: PermissionAdmin, | ||
| Idempotent: true, |
There was a problem hiding this comment.
Mark recipe removal as non-idempotent
When the same recipe name exists in multiple search directories, each successful removal exposes the next definition, so repeating the identical request deletes another file. Setting Idempotent: true publishes idempotentHint: true through Op.Annotations() and mcpserver.OpTools, allowing MCP clients to retry after a lost response and unintentionally delete the previously shadowed recipe as well. Remove this flag unless the operation targets a stable file identity across retries.
Useful? React with 👍 / 👎.
The regenerated plugin bindings changed pkgs/mcpx/plugin/core/ops.gen.ts only; mcpx CI's dogfood sync check would have broken main (#11806). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
mcpx recipes removeThe existing recipe POST/save route was already present on the current base; this completes the verified remove/duplicate-handling gap.
Verification
cd pkgs/mcpx && go test ./internal/daemon ./internal/api ./internal/cli ./internal/recipesgit diff --checkFixes #2118