feat(plasmic-mcp): branch and comment tools for collaboration workflows#200
Merged
feat(plasmic-mcp): branch and comment tools for collaboration workflows#200
Conversation
fd2f1f5 to
6261b85
Compare
…ion workflows Add two new MCP tool domains (14 actions total): Branch tool (7 actions): - list: List all branches for current project - create: Create branch with optional source branch - update: Rename branch or change status (active/merged/abandoned) - delete: Delete a branch - merge: Merge branches with pretend mode for dry-run preview - protect: Enable/disable main branch protection - revision-info: Get project revision metadata Comment tool (7 actions): - list: List all comment threads with replies - add: Create new comment thread on project/element - reply: Reply to existing thread - edit: Edit a comment body - delete: Delete a comment - resolve: Resolve/reopen a thread - react: Add/remove emoji reactions Also adds put() and del() transport helpers to api-client (matching existing get()/post() SharedApi pattern from PR #195). All operations are API-only (no model mutations) — they use the same HTTP transport as all other api-client methods.
6261b85 to
4588cfb
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 two new MCP tool domains for collaboration workflows (14 actions total):
Branch tool (7 actions)
listcreateupdatedeletemergepretend: truefor dry-run preview)protectrevision-infoComment tool (7 actions)
listaddreplyeditdeleteresolvereactInfrastructure
put()anddel()transport helpers in api-client (matching get/post pattern)req()for all write methods (POST/PUT/DELETE)ensureCsrfToken()fromsaveRevision()— centralized inreq()addresolves componentUuid + nodeRef to a real bundler ModelAddrcreatevalidates project is published before calling serverKnown limitation
Branch management (create/list/merge/delete) works, but
project.setdoesn't support loading a specific branch yet. All edits still target main. Branch session support (threading branchId through load → save → live sync) is a follow-up.Test plan