sl-mcp
v0.1.2MCP server for Sapling (sl) version control
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sl_status
Show working copy status (modified, added, removed files)
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
sl_diff
Show differences in working copy or between revisions
| Parameter | Type | Description |
|---|---|---|
change | string | Show diff for a specific changeset |
cwd | string | Repository path |
path | string | Limit diff to a specific path |
rev | string | Revision to diff against |
sl_log
Show commit history
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
limit | number | Maximum number of commits to show (default 10) |
revs | string | Revset expression to filter commits |
sl_show
Show details of a specific commit
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
rev | string | Revision to show |
sl_blame
Show line-by-line annotation of a file
| Parameter | Type | Description |
|---|---|---|
path * | string | File path to annotate |
cwd | string | Repository path |
rev | string | Revision to blame at |
sl_cat
Print file contents at a given revision
| Parameter | Type | Description |
|---|---|---|
path * | string | File path to read |
cwd | string | Repository path |
rev | string | Revision to read from |
sl_root
Show the root directory of the repository
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
sl_smartlog
Show the smartlog graph of commits
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
sl_goto
Update working copy to a given revision. Caution: --clean discards uncommitted changes. Confirm with user before using --clean.
| Parameter | Type | Description |
|---|---|---|
rev * | string | Revision to go to |
clean | boolean | Discard uncommitted changes (--clean) |
cwd | string | Repository path |
sl_commit
Create a new commit with the given message.
| Parameter | Type | Description |
|---|---|---|
message * | string | Commit message |
cwd | string | Repository path |
paths | array | Specific paths to commit |
sl_amend
Amend the current commit.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
message | string | New commit message |
paths | array | Specific paths to amend |
sl_rebase
Rebase a revision onto a new destination. Caution: moves commits to a new base. Confirm with user before running.
| Parameter | Type | Description |
|---|---|---|
dest * | string | Destination revision |
rev * | string | Revision to rebase |
cwd | string | Repository path |
sl_shelve
Shelve uncommitted changes.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
name | string | Name for the shelved changes |
sl_unshelve
Restore previously shelved changes.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
name | string | Name of the shelved changes to restore |
sl_add
Start tracking the specified files.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Files to add |
cwd | string | Repository path |
sl_remove
Remove files from the working copy and mark them for deletion. Caution: this is destructive and deletes files from disk.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Files to remove |
cwd | string | Repository path |
sl_forget
Stop tracking the specified files without deleting them.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Files to forget |
cwd | string | Repository path |
sl_revert
Revert specified files to their committed state. Caution: discards uncommitted changes to specified files. Confirm with user.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Files to revert |
cwd | string | Repository path |
rev | string | Revision to revert to |
sl_undo
Undo the last operation.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
sl_pull
Fetches commits from remote. Always confirm with user before running.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
sl_push
Pushes commits to remote. Always confirm with user. Force push to main/master is blocked.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
force | boolean | Force push (--force) |
rev | string | Revision to push (-r) |
to | string | Destination bookmark (--to) |
sl_pr_submit
Creates or updates a pull request. Always confirm with user before running.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Repository path |
draft | boolean | Create as draft PR (--draft) |
rev | string | Revision to submit (-r) |