Repository navigation
feat(mcp): apply a reversible edit in one call - #130
Merged
Merged
Conversation
Limdongcheng
force-pushed
the
feat/mcp-apply
branch
from
October 24, 2026 12:09
2022fae to
a251ccc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
plotium_apply, which takesplotium_planinputs and plans and commits one reversible edit in a single call, returning theplotium_executeresult. It accepts property writes, figure edits without deletions, plot creation, curve append, binding and expansion, renames and themes, and requires Read and modify. It reuses the existing plan and execute paths, so preflight, revision and permission checks, Undo and run records are unchanged, and no plan is retained.Saving, export, deletions, imports, table and scientific operations keep the two-step form. A rejected apply reports that nothing was submitted. The connector instructions and the English and Simplified Chinese MCP references describe when to use it and how to recover after a disconnection.
Validation
cargo pr-checknpm run buildindocs/