brainCloud MCP Helper

v6.0.0
com.braincloudservers/braincloud-mcp-helper Checked 2 days ago Published 4 months ago

Helper for brainCloud MCP that gives it local file access, enabling easy git sync of cloud code.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

status Cloud-code sync status

Dry-run: classify every cloud-code script for the branch (in-sync / pull / push / conflict / pull-new / push-new / delete-local / delete-remote). Always safe — no writes. Use a "read" ticket from getSyncTicket.

ParameterTypeDescription
ticket *objectShort-lived ticket from the hosted MCP getSyncTicket tool.
adoptNoGitBranchbooleanConfirm moving the no-git sync state and app mapping onto the current git branch (dropping the no-branch entry). Needed once, when a folder first synced without git is now on a real branch; the tool a…
branchstringGit branch to sync. Defaults to the current branch from .git/HEAD; if the folder is not a git repo, a reserved no-branch key is used and can later be adopted onto a real branch.
confirmAppNamestringSafety confirmation. Only needed for a previously-synced folder that has no committed .bcsync app mapping (e.g. synced by an older helper): set this to the ticket's appName to confirm you intend to sy…
rootDirstringAbsolute path to the local cloud-code sync folder (the .ccjs tree + .bcsync). Optional: if omitted, the helper discovers the nearest .bcsync folder at or above its working directory. Pass it explicitl…

pull Pull cloud-code to local

Apply brainCloud → local for non-conflicting changes (pull / pull-new). Conflicts and local-only changes are left untouched and reported in "skipped". Local deletes only happen with allowDeletes=true. Use a "read" ticket from getSyncTicket.

ParameterTypeDescription
ticket *objectShort-lived ticket from the hosted MCP getSyncTicket tool.
adoptNoGitBranchbooleanConfirm moving the no-git sync state and app mapping onto the current git branch (dropping the no-branch entry). Needed once, when a folder first synced without git is now on a real branch; the tool a…
allowDeletesbooleanDelete local files for scripts removed on brainCloud (default false).
branchstringGit branch to sync. Defaults to the current branch from .git/HEAD; if the folder is not a git repo, a reserved no-branch key is used and can later be adopted onto a real branch.
confirmAppNamestringSafety confirmation. Only needed for a previously-synced folder that has no committed .bcsync app mapping (e.g. synced by an older helper): set this to the ticket's appName to confirm you intend to sy…
rootDirstringAbsolute path to the local cloud-code sync folder (the .ccjs tree + .bcsync). Optional: if omitted, the helper discovers the nearest .bcsync folder at or above its working directory. Pass it explicitl…

push Push local cloud-code to brainCloud

Apply local → brainCloud for non-conflicting changes (push / push-new) via one bulk import (mode addAndUpdateOnly — never deletes). Conflicts and remote-only changes are left untouched and reported in "skipped". Requires a "write" ticket from getSyncTicket (the hosted MCP refuses a write ticket for a live-locked app).

ParameterTypeDescription
ticket *objectShort-lived ticket from the hosted MCP getSyncTicket tool.
adoptNoGitBranchbooleanConfirm moving the no-git sync state and app mapping onto the current git branch (dropping the no-branch entry). Needed once, when a folder first synced without git is now on a real branch; the tool a…
branchstringGit branch to sync. Defaults to the current branch from .git/HEAD; if the folder is not a git repo, a reserved no-branch key is used and can later be adopted onto a real branch.
confirmAppNamestringSafety confirmation. Only needed for a previously-synced folder that has no committed .bcsync app mapping (e.g. synced by an older helper): set this to the ticket's appName to confirm you intend to sy…
rootDirstringAbsolute path to the local cloud-code sync folder (the .ccjs tree + .bcsync). Optional: if omitted, the helper discovers the nearest .bcsync folder at or above its working directory. Pass it explicitl…

sync Two-way sync cloud-code with brainCloud

Full bidirectional sync for the branch: pulls non-conflicting remote changes, pushes non-conflicting local changes, and 3-way-merges scripts changed on BOTH sides (using brainCloud version history for the merge base). Cleanly-merged scripts are written locally and pushed; genuine conflicts get git-style <<<<<<< markers written into the file and are reported in "conflicted" for you to resolve, then re-run sync. Deletions (delete-local / delete-remote) are applied only when allowDeletes=true. Requires a "write" ticket from getSyncTicket (refused for a live-locked app).

ParameterTypeDescription
ticket *objectShort-lived ticket from the hosted MCP getSyncTicket tool.
adoptNoGitBranchbooleanConfirm moving the no-git sync state and app mapping onto the current git branch (dropping the no-branch entry). Needed once, when a folder first synced without git is now on a real branch; the tool a…
allowDeletesbooleanApply deletions in both directions (default false).
branchstringGit branch to sync. Defaults to the current branch from .git/HEAD; if the folder is not a git repo, a reserved no-branch key is used and can later be adopted onto a real branch.
confirmAppNamestringSafety confirmation. Only needed for a previously-synced folder that has no committed .bcsync app mapping (e.g. synced by an older helper): set this to the ticket's appName to confirm you intend to sy…
rootDirstringAbsolute path to the local cloud-code sync folder (the .ccjs tree + .bcsync). Optional: if omitted, the helper discovers the nearest .bcsync folder at or above its working directory. Pass it explicitl…