Skip to content

Add recipe removal endpoint and CLI command - #11816

Merged
dezren39 merged 4 commits into
mainfrom
queue/20701-2118-recipes-remove
Nov 18, 2026
Merged

dezren39 merged 4 commits into
mainfrom
queue/20701-2118-recipes-remove

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add DELETE /v1/recipes/{name} with safe-name checks, admin/destructive API metadata, and CLI mcpx recipes remove
  • refuse ambiguous same-name saves across recipe directories unless overwrite is explicit; overwrite updates the visible defining file
  • reject symlink overwrite targets and use atomic no-replace creation to prevent clobbering a concurrent save
  • regenerate plugin operation bindings and parity documentation

The 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/recipes
  • git diff --check

Fixes #2118

@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 13:46
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T16:26:33.229004Z 2204767 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

repo-worker-tmp-code-b and others added 3 commits November 18, 2026 08:04
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>
@dezren39
dezren39 merged commit 7a83ad7 into main Nov 18, 2026
@dezren39
dezren39 deleted the queue/20701-2118-recipes-remove branch November 18, 2026 16:25
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.

mcpx: generalised live add + generated declarations for bare binaries (split of #1875)

2 participants