Skip to content

feat(mcp): apply a reversible edit in one call - #130

Merged
Limdongcheng merged 1 commit into
mainfrom
feat/mcp-apply
Oct 24, 2026
Merged

Limdongcheng merged 1 commit into
mainfrom
feat/mcp-apply

Conversation

@Limdongcheng

Copy link
Copy Markdown
Collaborator

Summary

Add plotium_apply, which takes plotium_plan inputs and plans and commits one reversible edit in a single call, returning the plotium_execute result. 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-check
  • npm run build in docs/
  • Tests that apply produces the same result, revisions, run records and Undo steps as plan then execute, and that deletions, saves, imports, read-only access and stale revisions are refused without retaining a plan or changing the project.

@Limdongcheng
Limdongcheng merged commit 6782ae2 into main Oct 24, 2026
11 checks passed
@Limdongcheng
Limdongcheng deleted the feat/mcp-apply branch October 24, 2026 12:50
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.

1 participant