UVCS MCP
v1.4.1Safe 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.
| Parameter | Type | Description |
|---|---|---|
paths | array | Optional files relative to UVCS_WORKSPACE to check for locks. |
scope | string | all (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.
| Parameter | Type | Description |
|---|---|---|
baseBranch | string | Base branch for generated branches, for example /main or /main/dev. |
branchPrefix | string | Optional safe prefix before branch slugs, for example PROJ-. |
overwrite | boolean | Set true only when replacing an existing .uvcs-mcp/style.json. |
preset | string | Style preset. unity is recommended for Unity teams. |
versionFile | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
confirmPhrase * | string | Must be exactly: confirm uvcs style init |
token * | string | Token returned by uvcs_style_init_prepare. |
uvcs_name_preview
Preview a branch name or checkin message from workspace style rules.
| Parameter | Type | Description |
|---|---|---|
kind * | string | Preview kind. |
type * | string | Branch or checkin type, such as feature, fix, feat, or release. |
baseBranch | string | Optional base branch for branch previews, such as /main. |
summary | string | Single-line summary used for checkin message previews. |
title | string | Human 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.
| Parameter | Type | Description |
|---|---|---|
currentVersion | string | Optional semantic version. If omitted, the style versionFile is read from the workspace. |
projectName | string | Optional safe lowercase project code for release patterns that use {projectName}. |
releaseType | string | Optional semantic version bump type. Required when releaseVersion is omitted. |
releaseVersion | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path relative to UVCS_WORKSPACE of a file with a pending change. |
context | integer | Unchanged 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.
| Parameter | Type | Description |
|---|---|---|
source * | string | What to inspect: cs:123 (that changeset), lb:LABEL, sh:12, or a branch such as /main/task (all changes made on the branch). |
compareTo | string | Optional second changeset, label, or shelve (cs:130, lb:LABEL, sh:12). When set, source is the older side. Not allowed with a branch source. |
maxItems | integer | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path relative to UVCS_WORKSPACE, for example Assets/Scripts/Player.cs. |
changeset | string | Changeset spec such as cs:123. Compares the file in that changeset with its parent changeset. Do not combine with from/to. |
context | integer | Unchanged lines around each change, from 0 to 20. Default: 3. |
from | string | Older side: cs:123, lb:LABEL, or a branch such as /main (latest revision on it). |
to | string | Newer 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path relative to UVCS_WORKSPACE. |
maxResults | integer | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path relative to UVCS_WORKSPACE. |
maxLines | integer | Maximum lines to return, from 1 to 5000. Default: 500. |
revision | string | Optional cs:123, lb:LABEL, or branch to annotate instead of the workspace revision. |
startLine | integer | First line to return. Default: 1. |
uvcs_branch_list
List branches, newest first, with owner, parent branch, head changeset, and comment. Read-only.
| Parameter | Type | Description |
|---|---|---|
maxResults | integer | Maximum branches to return, from 1 to 500. Default: 50. |
nameLike | string | Optional substring of the branch name, for example task or release. |
owner | string | Optional branch owner. |
parent | string | Optional parent branch, for example /main, to list its child branches. |
since | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
branch | string | Optional branch the labeled changeset belongs to, for example /main. |
maxResults | integer | Maximum labels to return, from 1 to 500. Default: 50. |
nameLike | string | Optional substring of the label name, for example build or RELEASE. |
owner | string | Optional label owner. |
since | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
source * | string | Merge source: a branch such as /main/task, cs:94, lb:LABEL, or sh:12. |
destination | string | Optional destination branch such as /main. Omit to preview a merge into the current workspace. |
maxItems | integer | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
confirmPhrase * | string | Must be exactly: confirm uvcs update |
token * | string | Token returned by uvcs_update_workspace_prepare. |
uvcs_changeset_analytics
Analyze changesets over an optional date, branch, owner, or comment filter. Read-only.
| Parameter | Type | Description |
|---|---|---|
branch | string | Optional branch path, for example /main or /main/release. |
commentLike | string | Optional substring to match in changeset comments. |
maxResults | integer | Maximum changesets to return, from 1 to 500. Default: 100. |
owner | string | Optional changeset owner. |
since | string | Optional start date in YYYY-MM-DD format. |
until | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
maxResults | integer | Maximum branches to return, from 1 to 200. Default: 50. |
patterns | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
branch | string | Optional branch to inspect. Defaults to the current workspace branch. |
recentChangesets | integer | Recent 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.
| Parameter | Type | Description |
|---|---|---|
itemPath * | string | Path 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.
| Parameter | Type | Description |
|---|---|---|
confirmPhrase * | string | Must be exactly: confirm uvcs add |
token * | string | Token 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.
| Parameter | Type | Description |
|---|---|---|
itemPath * | string | Path relative to UVCS_WORKSPACE. Use a specific file or directory; the workspace root is forbidden. |
recursive | boolean | Undo 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.
| Parameter | Type | Description |
|---|---|---|
confirmPhrase * | string | Must be exactly: confirm uvcs undo |
token * | string | Token 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.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch path, for example /main/task. |
comment | string | Optional branch comment. |
fromChangeset | string | Optional changeset spec, for example cs:92. |
fromLabel | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
confirmPhrase * | string | Must be exactly: confirm uvcs branch create |
token * | string | Token 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.
| Parameter | Type | Description |
|---|---|---|
label * | string | Label name, for example UVCS_MCP_SMOKE_1. |
target * | string | Changeset spec, for example cs:93. |
comment | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
confirmPhrase * | string | Must be exactly: confirm uvcs label create |
token * | string | Token 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.
| Parameter | Type | Description |
|---|---|---|
target * | string | Target 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.
| Parameter | Type | Description |
|---|---|---|
confirmPhrase * | string | Must be exactly: confirm uvcs switch |
token * | string | Token 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.
| Parameter | Type | Description |
|---|---|---|
source * | string | Merge source spec, for example /main/task, cs:94, or lb:LABEL. |
comment | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
confirmPhrase * | string | Must be exactly: confirm uvcs merge |
token * | string | Token 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.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Files 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.
| Parameter | Type | Description |
|---|---|---|
confirmPhrase * | string | Must be exactly: confirm uvcs checkout |
token * | string | Token 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.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Checked-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.
| Parameter | Type | Description |
|---|---|---|
confirmPhrase * | string | Must be exactly: confirm uvcs release checkout |
token * | string | Token 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.
| Parameter | Type | Description |
|---|---|---|
message * | string | Checkin comment. |
paths | array | Optional 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.
| Parameter | Type | Description |
|---|---|---|
confirmPhrase * | string | Must be exactly: confirm uvcs checkin |
token * | string | Token returned by uvcs_checkin_prepare. |