UVCS MCP

v1.4.1
io.github.ProAnima/uvcs-mcp Checked 1 day ago Published 1 month ago

Safe Plastic SCM / Unity Version Control MCP: history, review, merge preview, and guarded writes.

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

uvcs_doctor

Check cm, workspace, and UVCS MCP configuration.

uvcs_policy_status

Show the effective workspace identity, safety profile, allowlists, write limits, and mass-work guidance.

uvcs_setup_status

Show safety policy and branch/checkin/release naming setup in one place.

uvcs_workspace_status

Return concise workspace status.

uvcs_pending_changes

Return full pending changes from cm status.

uvcs_branch_info

Return current branch information.

uvcs_locks

List exclusive locks (cm lock list). Without paths, the list covers every repository on the server; pass paths to check specific files in this workspace.

ParameterTypeDescription
pathsarrayOptional files relative to UVCS_WORKSPACE to check for locks.
scopestringall (default), user (locks taken by the current user), or workspace (locks taken from this workspace).

uvcs_unity_meta_diagnostics

Detect common Unity asset/.meta mismatches in the workspace.

uvcs_style_rules

Return workspace naming and release style rules.

uvcs_style_setup_check

Check whether workspace naming/checkin/release style rules exist. If missing, guide the model to ask the user to create them before branch work.

uvcs_style_init_prepare

Create .uvcs-mcp/style.json with branch naming, checkin message, and release conventions. Requires prepare/confirm. Returns a short-lived confirmation token.

ParameterTypeDescription
baseBranchstringBase branch for generated branches, for example /main or /main/dev.
branchPrefixstringOptional safe prefix before branch slugs, for example PROJ-.
overwritebooleanSet true only when replacing an existing .uvcs-mcp/style.json.
presetstringStyle preset. unity is recommended for Unity teams.
versionFilestringOptional relative version file used by release planning, for example ProjectSettings/ProjectVersion.txt.

uvcs_style_init_confirm

Create .uvcs-mcp/style.json with branch naming, checkin message, and release conventions. Requires prepare/confirm. Confirms and executes a prepared operation. Call only after the user has reviewed the prepared payload and explicitly approved this exact operation.

ParameterTypeDescription
confirmPhrase *stringMust be exactly: confirm uvcs style init
token *stringToken returned by uvcs_style_init_prepare.

uvcs_name_preview

Preview a branch name or checkin message from workspace style rules.

ParameterTypeDescription
kind *stringPreview kind.
type *stringBranch or checkin type, such as feature, fix, feat, or release.
baseBranchstringOptional base branch for branch previews, such as /main.
summarystringSingle-line summary used for checkin message previews.
titlestringHuman title used for branch slug previews.

uvcs_release_plan

Plan a major, minor, or patch release branch, label, and comments from workspace style rules. Read-only.

ParameterTypeDescription
currentVersionstringOptional semantic version. If omitted, the style versionFile is read from the workspace.
projectNamestringOptional safe lowercase project code for release patterns that use {projectName}.
releaseTypestringOptional semantic version bump type. Required when releaseVersion is omitted.
releaseVersionstringOptional explicit release version for styles that use a user-provided version.

uvcs_diff_file

Return a unified line diff of one pending file: the revision loaded in the workspace against the file on disk. Output longer than 200000 characters is truncated. Read-only.

ParameterTypeDescription
filePath *stringPath relative to UVCS_WORKSPACE of a file with a pending change.
contextintegerUnchanged lines around each change, from 0 to 20. Default: 3.

uvcs_changeset_diff

List the items added, changed, moved, or deleted in a changeset, label, shelve, or branch, or between two changesets/labels, with Unity .meta pairing warnings. Read-only.

ParameterTypeDescription
source *stringWhat to inspect: cs:123 (that changeset), lb:LABEL, sh:12, or a branch such as /main/task (all changes made on the branch).
compareTostringOptional second changeset, label, or shelve (cs:130, lb:LABEL, sh:12). When set, source is the older side. Not allowed with a branch source.
maxItemsintegerMaximum items to return, from 1 to 5000. Default: 500. Counts always cover every item.

uvcs_revision_diff

Return a unified line diff of one text file between two revisions, or between a revision and the workspace copy. Pass changeset to see what that changeset changed in the file. Output longer than 200000 characters is truncated. Read-only.

ParameterTypeDescription
filePath *stringPath relative to UVCS_WORKSPACE, for example Assets/Scripts/Player.cs.
changesetstringChangeset spec such as cs:123. Compares the file in that changeset with its parent changeset. Do not combine with from/to.
contextintegerUnchanged lines around each change, from 0 to 20. Default: 3.
fromstringOlder side: cs:123, lb:LABEL, or a branch such as /main (latest revision on it).
tostringNewer side: cs:130, lb:LABEL, or a branch. Omit to compare with the file in the workspace.

uvcs_file_history

List the revisions of a file or directory, newest first, with changeset, branch, date, owner, and comment. Dates use the cm client locale format (cm history has no date format option). Read-only.

ParameterTypeDescription
filePath *stringPath relative to UVCS_WORKSPACE.
maxResultsintegerMaximum revisions to return, from 1 to 500. Default: 50.

uvcs_annotate

Show who last changed each line of a text file and in which changeset (blame). Binary files cannot be annotated. Read-only.

ParameterTypeDescription
filePath *stringPath relative to UVCS_WORKSPACE.
maxLinesintegerMaximum lines to return, from 1 to 5000. Default: 500.
revisionstringOptional cs:123, lb:LABEL, or branch to annotate instead of the workspace revision.
startLineintegerFirst line to return. Default: 1.

uvcs_branch_list

List branches, newest first, with owner, parent branch, head changeset, and comment. Read-only.

ParameterTypeDescription
maxResultsintegerMaximum branches to return, from 1 to 500. Default: 50.
nameLikestringOptional substring of the branch name, for example task or release.
ownerstringOptional branch owner.
parentstringOptional parent branch, for example /main, to list its child branches.
sincestringOptional creation date lower bound in YYYY-MM-DD format.

uvcs_label_list

List labels, newest first, with labeled changeset, branch, owner, and comment. Read-only.

ParameterTypeDescription
branchstringOptional branch the labeled changeset belongs to, for example /main.
maxResultsintegerMaximum labels to return, from 1 to 500. Default: 50.
nameLikestringOptional substring of the label name, for example build or RELEASE.
ownerstringOptional label owner.
sincestringOptional creation date lower bound in YYYY-MM-DD format.

uvcs_merge_preview

Preview a merge without changing anything: files that would be taken from the source, items added/moved/deleted, and conflicts. Without destination the target is the workspace branch; with destination the preview is computed on the server for that branch. Read-only.

ParameterTypeDescription
source *stringMerge source: a branch such as /main/task, cs:94, lb:LABEL, or sh:12.
destinationstringOptional destination branch such as /main. Omit to preview a merge into the current workspace.
maxItemsintegerMaximum number of conflicts, and separately of changes, to return, from 1 to 5000. Default: 300. Counts always cover everything.

uvcs_update_workspace_prepare

Update the workspace to the latest changeset of its branch. Local edits to files changed upstream can produce merge conflicts. Requires prepare/confirm. Returns a short-lived confirmation token.

uvcs_update_workspace_confirm

Update the workspace to the latest changeset of its branch. Local edits to files changed upstream can produce merge conflicts. Requires prepare/confirm. Confirms and executes a prepared operation. Call only after the user has reviewed the prepared payload and explicitly approved this exact operation.

ParameterTypeDescription
confirmPhrase *stringMust be exactly: confirm uvcs update
token *stringToken returned by uvcs_update_workspace_prepare.

uvcs_changeset_analytics

Analyze changesets over an optional date, branch, owner, or comment filter. Read-only.

ParameterTypeDescription
branchstringOptional branch path, for example /main or /main/release.
commentLikestringOptional substring to match in changeset comments.
maxResultsintegerMaximum changesets to return, from 1 to 500. Default: 100.
ownerstringOptional changeset owner.
sincestringOptional start date in YYYY-MM-DD format.
untilstringOptional end date in YYYY-MM-DD format.

uvcs_cleanup_candidates

Read-only helper that lists temporary/agent branch cleanup candidates for manual review. It never deletes branches or changesets.

ParameterTypeDescription
maxResultsintegerMaximum branches to return, from 1 to 200. Default: 50.
patternsstringOptional semicolon-separated branch prefixes to inspect, for example /main/tmp;/main/agent.

uvcs_branch_safety_report

Read-only helper that reports current branch, pending changes, and recent changesets before risky branch, merge, or cleanup work.

ParameterTypeDescription
branchstringOptional branch to inspect. Defaults to the current workspace branch.
recentChangesetsintegerRecent changesets to include, from 1 to 50. Default: 10.

uvcs_add_prepare

Add a path to Plastic SCM / UVCS version control recursively. For Unity assets also add the matching .meta file. Requires prepare/confirm. Returns a short-lived confirmation token.

ParameterTypeDescription
itemPath *stringPath relative to UVCS_WORKSPACE.

uvcs_add_confirm

Add a path to Plastic SCM / UVCS version control recursively. For Unity assets also add the matching .meta file. Requires prepare/confirm. Confirms and executes a prepared operation. Call only after the user has reviewed the prepared payload and explicitly approved this exact operation.

ParameterTypeDescription
confirmPhrase *stringMust be exactly: confirm uvcs add
token *stringToken returned by uvcs_add_prepare.

uvcs_undo_prepare

Irreversibly undo pending changes for one path inside the selected workspace. Workspace-root undo is forbidden. Requires prepare/confirm. Returns a short-lived confirmation token.

ParameterTypeDescription
itemPath *stringPath relative to UVCS_WORKSPACE. Use a specific file or directory; the workspace root is forbidden.
recursivebooleanUndo pending changes recursively below itemPath. Default: false.

uvcs_undo_confirm

Irreversibly undo pending changes for one path inside the selected workspace. Workspace-root undo is forbidden. Requires prepare/confirm. Confirms and executes a prepared operation. Call only after the user has reviewed the prepared payload and explicitly approved this exact operation.

ParameterTypeDescription
confirmPhrase *stringMust be exactly: confirm uvcs undo
token *stringToken returned by uvcs_undo_prepare.

uvcs_branch_create_prepare

Create a Plastic SCM / UVCS branch from a changeset or label. Requires prepare/confirm. Returns a short-lived confirmation token.

ParameterTypeDescription
branch *stringBranch path, for example /main/task.
commentstringOptional branch comment.
fromChangesetstringOptional changeset spec, for example cs:92.
fromLabelstringOptional label spec, for example lb:RELEASE_1.

uvcs_branch_create_confirm

Create a Plastic SCM / UVCS branch from a changeset or label. Requires prepare/confirm. Confirms and executes a prepared operation. Call only after the user has reviewed the prepared payload and explicitly approved this exact operation.

ParameterTypeDescription
confirmPhrase *stringMust be exactly: confirm uvcs branch create
token *stringToken returned by uvcs_branch_create_prepare.

uvcs_label_create_prepare

Create a Plastic SCM / UVCS label on a changeset. Requires prepare/confirm. Returns a short-lived confirmation token.

ParameterTypeDescription
label *stringLabel name, for example UVCS_MCP_SMOKE_1.
target *stringChangeset spec, for example cs:93.
commentstringOptional label comment.

uvcs_label_create_confirm

Create a Plastic SCM / UVCS label on a changeset. Requires prepare/confirm. Confirms and executes a prepared operation. Call only after the user has reviewed the prepared payload and explicitly approved this exact operation.

ParameterTypeDescription
confirmPhrase *stringMust be exactly: confirm uvcs label create
token *stringToken returned by uvcs_label_create_prepare.

uvcs_switch_workspace_prepare

Switch the workspace to a branch, changeset, or label. Refused while tracked pending changes exist. Requires prepare/confirm. Returns a short-lived confirmation token.

ParameterTypeDescription
target *stringTarget spec, for example /main/task, cs:92, or lb:LABEL.

uvcs_switch_workspace_confirm

Switch the workspace to a branch, changeset, or label. Refused while tracked pending changes exist. Requires prepare/confirm. Confirms and executes a prepared operation. Call only after the user has reviewed the prepared payload and explicitly approved this exact operation.

ParameterTypeDescription
confirmPhrase *stringMust be exactly: confirm uvcs switch
token *stringToken returned by uvcs_switch_workspace_prepare.

uvcs_merge_prepare

Merge a branch/changeset/label into the current workspace branch. Refused while tracked pending changes exist or when the merge has conflicts (resolve those in the UVCS client); the merge result stays pending until a checkin. Requires prepare/confirm. Returns a short-lived confirmation token.

ParameterTypeDescription
source *stringMerge source spec, for example /main/task, cs:94, or lb:LABEL.
commentstringOptional merge comment; Plastic may still require a follow-up checkin.

uvcs_merge_confirm

Merge a branch/changeset/label into the current workspace branch. Refused while tracked pending changes exist or when the merge has conflicts (resolve those in the UVCS client); the merge result stays pending until a checkin. Requires prepare/confirm. Confirms and executes a prepared operation. Call only after the user has reviewed the prepared payload and explicitly approved this exact operation.

ParameterTypeDescription
confirmPhrase *stringMust be exactly: confirm uvcs merge
token *stringToken returned by uvcs_merge_prepare.

uvcs_checkout_prepare

Check out files before editing them. When the server has a lock rule for them (lock.conf), this takes the exclusive lock so nobody else can check them out or check in changes to them, which is how teams protect scenes, prefabs, and other binary assets. Files locked by someone else are refused. Requires prepare/confirm. Returns a short-lived confirmation token.

ParameterTypeDescription
paths *arrayFiles relative to UVCS_WORKSPACE to check out, for example Assets/Scenes/Main.unity.

uvcs_checkout_confirm

Check out files before editing them. When the server has a lock rule for them (lock.conf), this takes the exclusive lock so nobody else can check them out or check in changes to them, which is how teams protect scenes, prefabs, and other binary assets. Files locked by someone else are refused. Requires prepare/confirm. Confirms and executes a prepared operation. Call only after the user has reviewed the prepared payload and explicitly approved this exact operation.

ParameterTypeDescription
confirmPhrase *stringMust be exactly: confirm uvcs checkout
token *stringToken returned by uvcs_checkout_prepare.

uvcs_release_checkout_prepare

Release checkouts (and their locks) of files whose content did not change. Modified files keep their checkout and their edits; check those in or undo them. Requires prepare/confirm. Returns a short-lived confirmation token.

ParameterTypeDescription
paths *arrayChecked-out files relative to UVCS_WORKSPACE.

uvcs_release_checkout_confirm

Release checkouts (and their locks) of files whose content did not change. Modified files keep their checkout and their edits; check those in or undo them. Requires prepare/confirm. Confirms and executes a prepared operation. Call only after the user has reviewed the prepared payload and explicitly approved this exact operation.

ParameterTypeDescription
confirmPhrase *stringMust be exactly: confirm uvcs release checkout
token *stringToken returned by uvcs_release_checkout_prepare.

uvcs_checkin_prepare

Prepare a checkin and return a short-lived confirmation token. Without paths it takes ALL tracked pending changes in the workspace; with paths only the changes at or below those paths, plus the Unity .meta partner of every selected asset. Private files are never included, except a new parent folder that a selected item needs (listed in dependencies). Review the returned changes with the user before confirming.

ParameterTypeDescription
message *stringCheckin comment.
pathsarrayOptional files or directories relative to UVCS_WORKSPACE to check in instead of every pending change.

uvcs_checkin_confirm

Run a prepared checkin (all tracked pending changes, or the selected paths). Call only after the user has reviewed the prepared payload and explicitly approved this exact operation.

ParameterTypeDescription
confirmPhrase *stringMust be exactly: confirm uvcs checkin
token *stringToken returned by uvcs_checkin_prepare.