sl-mcp

v0.1.2
io.github.donovan-jasper/sl-mcp Checked 1 day ago Published 8 months ago

MCP 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)

ParameterTypeDescription
cwdstringRepository path

sl_diff

Show differences in working copy or between revisions

ParameterTypeDescription
changestringShow diff for a specific changeset
cwdstringRepository path
pathstringLimit diff to a specific path
revstringRevision to diff against

sl_log

Show commit history

ParameterTypeDescription
cwdstringRepository path
limitnumberMaximum number of commits to show (default 10)
revsstringRevset expression to filter commits

sl_show

Show details of a specific commit

ParameterTypeDescription
cwdstringRepository path
revstringRevision to show

sl_blame

Show line-by-line annotation of a file

ParameterTypeDescription
path *stringFile path to annotate
cwdstringRepository path
revstringRevision to blame at

sl_cat

Print file contents at a given revision

ParameterTypeDescription
path *stringFile path to read
cwdstringRepository path
revstringRevision to read from

sl_root

Show the root directory of the repository

ParameterTypeDescription
cwdstringRepository path

sl_smartlog

Show the smartlog graph of commits

ParameterTypeDescription
cwdstringRepository path

sl_goto

Update working copy to a given revision. Caution: --clean discards uncommitted changes. Confirm with user before using --clean.

ParameterTypeDescription
rev *stringRevision to go to
cleanbooleanDiscard uncommitted changes (--clean)
cwdstringRepository path

sl_commit

Create a new commit with the given message.

ParameterTypeDescription
message *stringCommit message
cwdstringRepository path
pathsarraySpecific paths to commit

sl_amend

Amend the current commit.

ParameterTypeDescription
cwdstringRepository path
messagestringNew commit message
pathsarraySpecific paths to amend

sl_rebase

Rebase a revision onto a new destination. Caution: moves commits to a new base. Confirm with user before running.

ParameterTypeDescription
dest *stringDestination revision
rev *stringRevision to rebase
cwdstringRepository path

sl_shelve

Shelve uncommitted changes.

ParameterTypeDescription
cwdstringRepository path
namestringName for the shelved changes

sl_unshelve

Restore previously shelved changes.

ParameterTypeDescription
cwdstringRepository path
namestringName of the shelved changes to restore

sl_add

Start tracking the specified files.

ParameterTypeDescription
paths *arrayFiles to add
cwdstringRepository path

sl_remove

Remove files from the working copy and mark them for deletion. Caution: this is destructive and deletes files from disk.

ParameterTypeDescription
paths *arrayFiles to remove
cwdstringRepository path

sl_forget

Stop tracking the specified files without deleting them.

ParameterTypeDescription
paths *arrayFiles to forget
cwdstringRepository path

sl_revert

Revert specified files to their committed state. Caution: discards uncommitted changes to specified files. Confirm with user.

ParameterTypeDescription
paths *arrayFiles to revert
cwdstringRepository path
revstringRevision to revert to

sl_undo

Undo the last operation.

ParameterTypeDescription
cwdstringRepository path

sl_pull

Fetches commits from remote. Always confirm with user before running.

ParameterTypeDescription
cwdstringRepository path

sl_push

Pushes commits to remote. Always confirm with user. Force push to main/master is blocked.

ParameterTypeDescription
cwdstringRepository path
forcebooleanForce push (--force)
revstringRevision to push (-r)
tostringDestination bookmark (--to)

sl_pr_submit

Creates or updates a pull request. Always confirm with user before running.

ParameterTypeDescription
cwdstringRepository path
draftbooleanCreate as draft PR (--draft)
revstringRevision to submit (-r)