FIO–11561: Add Form revision MCP tools#3
Open
blakekrammes wants to merge 2 commits intomainfrom
Open
Conversation
fd618c4 to
02e2833
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
Adds MCP server tools for Form.io form revisions and draft/publish workflow. Closes FIO-11561.
New MCP Tools
form_revisions_listGET /form/:id/vvid,modified,user,note); strips full form snapshot — useform_revision_getfor the bodyform_revision_getGET /form/:id/v/:version_vidor revision_idform_revisions_setPUT /form/:idrevisionsfield. Requiredmode: "current" | "original" | ""— enable, switch display mode, or disable. No default — schema rejects calls withoutmodeso the agent asks the userform_draft_createPUT /form/:id/draft(+ post-PUTGET /draft)noterides as_vnoteform_draft_getGET /form/:id/draft_vid: "draft"row). Distinct fromform_revision_get, which fetches an immutable numbered revisionform_draft_publishPUT /form/:iddefinition) to the next published revisionSkill reference at
plugin/skills/formio-api/references/project-form-revisions.mddocuments endpoint shapes and edge cases.Draft
_vnoteNot Preserved on Publishform_draft_publishstrips_vnotefrom the publish body (merged draft or callerdefinition). Published revision's_vnotecomes only from the explicitnotearg.Matches portal: draft note (WIP) and publish note (revision note) are independent. Tool +
noteparam descriptions tell the agent to leavenoteundefined unless the user explicitly states the publish note.Schema Merge (Draft → Publish)
form_draft_publishoverlays onlycomponents,settings,tags,properties,displayfrom the draft onto the current published form. Form-level fields (access,submissionAccess,revisions,owner,_id,project) always preserved from current.Mirrors portal
checkDraft()(form.js:1577-1586). Implementation:packages/mcp-server/src/tools/form-draft-merge.ts.