mcp_fossil_scm

v0.3.0
@stellar_ai/mcp_fossil_scm Checked 2 days ago Published 11 days ago

Capability-scoped MCP server for Fossil SCM: Admin, Utils, VCS, Tickets, Chat, Forum and Wiki

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

fossil_init Initialize repository

Create a new Fossil repository database at the given path.

ParameterTypeDescription
repository *stringRepository database file, e.g. `repos/app.fossil`. Absolute paths are used verbatim; relative paths resolve against the workspace. Include the `.fossil` name.
admin_userstringLogin to record as the repository administrator (-A).
date_overridestringTimestamp of the initial check-in (--date-override).
project_descstringProject description stored in the repository (--project-desc).
project_namestringProject name stored in the repository. Defaults to the workspace folder name.
reveal_secretsbooleanReturn secrets verbatim (currently the initial admin password printed by `fossil init`).
sha1booleanUse SHA1 instead of SHA3-256 for artifact names (--sha1).
templatestringRepository file to copy settings from (--template).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_open Open repository

Open an existing Fossil repository as a check-out.

ParameterTypeDescription
repository *stringRepository database file, e.g. `repos/app.fossil`. Absolute paths are used verbatim; relative paths resolve against the workspace. Include the `.fossil` name.
emptybooleanCreate the check-out without files, still connected to the repository (--empty).
forcebooleanUse -f/--force to open into a directory that is not empty.
force_missingbooleanOpen even when content of one side is missing (--force-missing).
keepbooleanUse -k/--keep to keep existing local files untouched.
nestedbooleanAllow opening a repository inside an already opened check-out (--nested).
no_syncbooleanSkip the automatic sync before opening (--nosync).
repodirstringDirectory that holds the clone when `repository` is a URI (--repodir DIR).
set_mtimebooleanStamp every file with its check-in time (--setmtime).
verbosebooleanPrint the clone progress when `repository` is a URI (--verbose).
workdirstringCheck-out directory passed as --workdir DIR (relative paths resolve against the workspace).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_close Close check-out

Close the Fossil check-out that is currently open in the workspace.

ParameterTypeDescription
forcebooleanUse -f/--force to close even with uncommitted changes or a pending stash.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_clone Clone repository

Clone a remote (http/https/ssh) or local Fossil repository into a destination .fossil file. Uses a longer timeout because cloning is network bound.

ParameterTypeDescription
repository_uri *stringSource repository URL or local file path.
target_file *stringDestination repository database file, e.g. `repos/app.fossil` (relative paths resolve against the workspace). Missing parent folders are created.
admin_userstringMake this user the administrator (-A).
http_proxystringHTTP proxy URL passed as --proxy.
httpauthstringHTTP Basic credentials "user:pass" (-B).
nestedbooleanClone a repository inside an already opened check-out (--nested).
no_compressbooleanOmit the extra delta compression step (--nocompress).
no_openbooleanClone only, leaving no check-out (--no-open).
oncebooleanUse the URI once and forget it (--once).
privatebooleanAlso clone private branches (--private).
reveal_secretsbooleanReturn secrets verbatim (currently the initial admin password printed by `fossil init`).
save_http_passwordbooleanRemember the HTTP password instead of asking for it (--save-http-password).
ssh_commandstringCommand used as the ssh client (-c).
ssl_identitystringSSL client certificate file (--ssl-identity).
transport_commandstringExternal command that moves messages to the server and back (--transport-command).
unversionedbooleanSync unversioned content too (-u).
verbosebooleanShow transfer statistics (-v).
workdirstringAlso open a check-out in this directory (--workdir).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_settings Read/write settings

Read or change Fossil settings (crlf-glob, binary-glob, ignore-glob, autosync, ...). Without arguments it lists every setting; with name only it shows that value; with name and value it sets it; with unset: true it clears it.

ParameterTypeDescription
exactbooleanMatch the setting name exactly instead of by prefix (--exact).
globalbooleanOperate on the user-level configuration (~/.config/fossil.db) instead of the repository (--global).
namestringSetting name, e.g. "autosync".
unsetbooleanClear the setting instead of setting a value (fossil unset). Requires name.
valuestringNew value for the setting. Requires name.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_remote Remote URLs

View or change the remote repository URLs used for sync: list the named URLs, show the default, add or delete a named URL, make one the default, or turn the default off.

ParameterTypeDescription
actionstringlist: all URLs; default: the current default; add/delete: named URLs; set: make name the default; off: forget the default.
namestringName of the remote for add/delete, or the URL/prior name to make default with set.
reveal_secretsbooleanReturn secrets verbatim (currently the initial admin password printed by `fossil init`).
urlstringURL registered by add (a URL or the name of an existing remote).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_push Push

Send the local repository's sharable changes (public check-ins plus wiki, ticket and forum edits) to a remote repository. Uses a longer timeout because pushing is network bound.

ParameterTypeDescription
allbooleanUse every configured remote (--all).
httpauthstringCredentials for the simple HTTP auth protocol, as USER:PASS (--httpauth).
ipv4booleanUse IPv4 for the connection (--ipv4).
no_http_compressionbooleanSend HTTP traffic uncompressed (--no-http-compression).
oncebooleanUse the URL for this command only (--once).
privatebooleanInclude private branches (--private).
proxystringHTTP proxy URL (--proxy).
repositorystringRepository database file to work on (-R), e.g. `repos/app.fossil`; omit to use the repository of the check-out.
reveal_secretsbooleanReturn secrets verbatim (currently the initial admin password printed by `fossil init`).
ssl_identitystringClient SSL identity file when the remote asks for one (--ssl-identity).
transport_commandstringExternal command that moves messages to the server and back (--transport-command).
urlstringRemote URL; omit to reuse the URL fossil recorded from the last clone, push, pull, remote or sync.
verbosebooleanPrint additional debugging output (--verbose).
verilybooleanExchange extra information with the remote to be sure nothing is overlooked (--verily).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_pull Pull

Bring a remote repository's sharable changes into the local repository. Uses a longer timeout because pulling is network bound.

ParameterTypeDescription
allbooleanUse every configured remote (--all).
from_parent_projectbooleanAsk the remote for content belonging to its parent project (--from-parent-project).
httpauthstringCredentials for the simple HTTP auth protocol, as USER:PASS (--httpauth).
ipv4booleanUse IPv4 for the connection (--ipv4).
no_http_compressionbooleanSend HTTP traffic uncompressed (--no-http-compression).
oncebooleanUse the URL for this command only (--once).
privatebooleanInclude private branches (--private).
project_codestringProject code the remote must report (--project-code).
proxystringHTTP proxy URL (--proxy).
repositorystringRepository database file to work on (-R), e.g. `repos/app.fossil`; omit to use the repository of the check-out.
reveal_secretsbooleanReturn secrets verbatim (currently the initial admin password printed by `fossil init`).
ssl_identitystringClient SSL identity file when the remote asks for one (--ssl-identity).
transport_commandstringExternal command that moves messages to the server and back (--transport-command).
urlstringRemote URL; omit to reuse the URL fossil recorded from the last clone, push, pull, remote or sync.
verbosebooleanPrint additional debugging output (--verbose).
verilybooleanExchange extra information with the remote to be sure nothing is overlooked (--verily).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_sync Sync

Exchange sharable changes in both directions with a remote repository. Uses a longer timeout because syncing is network bound.

ParameterTypeDescription
allbooleanUse every configured remote (--all).
httpauthstringCredentials for the simple HTTP auth protocol, as USER:PASS (--httpauth).
ipv4booleanUse IPv4 for the connection (--ipv4).
no_http_compressionbooleanSend HTTP traffic uncompressed (--no-http-compression).
oncebooleanUse the URL for this command only (--once).
privatebooleanInclude private branches (--private).
proxystringHTTP proxy URL (--proxy).
repositorystringRepository database file to work on (-R), e.g. `repos/app.fossil`; omit to use the repository of the check-out.
reveal_secretsbooleanReturn secrets verbatim (currently the initial admin password printed by `fossil init`).
ssl_identitystringClient SSL identity file when the remote asks for one (--ssl-identity).
transport_commandstringExternal command that moves messages to the server and back (--transport-command).
unversionedbooleanInclude unversioned content (--unversioned).
urlstringRemote URL; omit to reuse the URL fossil recorded from the last clone, push, pull, remote or sync.
verbosebooleanPrint additional debugging output (--verbose).
verilybooleanExchange extra information with the remote to be sure nothing is overlooked (--verily).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_config Project configuration

Export, import, merge, pull, push or reset the configuration areas (ticket, user, skin, …) that live in the repository database.

ParameterTypeDescription
action *stringConfiguration method.
areastringConfiguration area; required by export, pull, push and reset.
filestringFile to read or write; required by export, import and merge.
overwritebooleanReplace local settings with the ones received from the remote (--overwrite).
repositorystringRepository database file to configure (-R), e.g. `repos/app.fossil`; omit to use the repository of the check-out.
urlstringRemote repository for pull/push; the default remote when omitted.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_rebuild Rebuild repository

Reconstruct the repository database from its core records, e.g. after changing the fossil schema. WARNING: destructive. It rewrites the repository database; obtain user confirmation first.

ParameterTypeDescription
analyzebooleanRun ANALYZE afterwards (--analyze).
clusterbooleanCompute clusters for unclustered artifacts (--cluster).
compressbooleanShrink the database while rebuilding (--compress).
compress_onlybooleanOnly run the compression step (--compress-only).
deanalyzebooleanRemove the ANALYZE tables from the database (--deanalyze).
forcebooleanFinish even when errors are seen (--force).
ifneededbooleanRebuild only when the schema version would change (--ifneeded).
indexbooleanAlways rebuild the full-text search index (--index).
no_verifybooleanSkip verification of changes to the BLOB table (--noverify).
noindexbooleanSkip the full-text search index (--noindex).
pagesizeintegerDatabase page size (--pagesize).
quietbooleanPrint output only for errors (--quiet).
repositorystringRepository database file, e.g. `repos/app.fossil`; omit to rebuild the repository of the open check-out.
statsbooleanShow artifact statistics afterwards (--stats).
vacuumbooleanRun VACUUM afterwards (--vacuum).
walbooleanSwitch the database to Write-Ahead-Log journalling (--wal).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_cat Cat file revision

Print the content of a file at a given revision.

ParameterTypeDescription
file *stringFile path/name inside the repository.
repositorystringRepository database file to read instead of the open check-out, e.g. `repos/app.fossil` (-R). Absolute paths are used verbatim; relative paths resolve against the workspace.
revisionstringCheck-in or revision (-r). Defaults to the checked-out version.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_grep Grep history

Match a POSIX extended regular expression over every historical version of the named files, starting at the newest version of each file.

ParameterTypeDescription
files *arrayFiles to search, newest version first.
pattern *stringPOSIX extended regular expression.
countbooleanPrint the number of matching files only (-c).
files_with_matchesbooleanPrint one artifact hash per matching file instead of the lines (-l).
ignore_casebooleanCase-insensitive match (-i).
invert_matchbooleanShow only files without a match (-v).
no_messagesbooleanSuppress messages about unreadable files (-s).
oncebooleanStop at the first match (--once).
verbosebooleanReport each file as it is analysed (--verbose).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_whatis What is

Resolve a name (tag, branch, hash prefix, or with file: the content hash) to its artifact hash and role.

ParameterTypeDescription
name *stringSymbol to resolve: tag, branch, hash prefix or filename.
filebooleanTreat name as a file whose content hash is looked up (-f).
typestringOnly match this artifact type (--type).
verbosebooleanInclude the internal record id (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_ignore_from_gitignore Ignore glob from .gitignore

Convert a .gitignore file into the ignore-glob patterns Fossil matches against check-out paths, and optionally write them to .fossil-settings/ignore-glob.

ParameterTypeDescription
overwritebooleanReplace an existing .fossil-settings/ignore-glob.
sourcestringFile to convert, relative to the workspace.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.
writebooleanWrite the patterns to .fossil-settings/ignore-glob.

fossil_artifact Artifact content

Print the raw content of an artifact by its hash, such as the manifest of a check-in or the blob of a file version.

ParameterTypeDescription
artifact *stringArtifact hash, or a unique prefix of it.
repositorystringRepository database file to read instead of the open check-out, e.g. `repos/app.fossil` (-R). Absolute paths are used verbatim; relative paths resolve against the workspace.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_sql SQL query

Run a read-only query against the repository database and return the rows as a table. Pass `limit` inside the SQL, e.g. `SELECT ... LIMIT 20`.

ParameterTypeDescription
query *stringSQL statement, e.g. "SELECT name FROM blob LIMIT 5".
databasestringStandalone SQLite file to query in place of a repository (--no-repository), e.g. a chat archive.
repositorystringRepository database file, e.g. `repos/app.fossil`, to query instead of the one of the check-out (-R).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_status Status

Show the change set of the check-out (modified/added/deleted files) plus the list of untracked files.

ParameterTypeDescription
abs_pathsbooleanPrint absolute pathnames (--abs-paths).
briefbooleanList only the changed file names (fossil changes).
classifybooleanStart each line with the change type; changes mode only (--classify).
dotfilesbooleanInclude dot-files in the change and untracked lists (--dotfiles).
hashbooleanVerify file status by hashing instead of size and mtime (--hash).
headerbooleanPrint the repository name above a non-empty report; changes mode only (--header).
ignorestringComma-separated glob patterns of extra files to ignore (--ignore).
rel_pathsbooleanPrint pathnames relative to the current directory (--rel-paths).
selectarrayReport only these change groups, e.g. ["changed", "extra"] (--edited, --added, --all, --differ, …). Omit to report the default change set plus untracked files.
verbosebooleanPrint "(none)" when the report is empty; changes mode only (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_diff Diff

Show differences between two revisions, across branches, or between the last commit and the workspace.

ParameterTypeDescription
branchstringDiff across a branch (--branch).
briefbooleanOnly list the changed file names (--brief).
checkinstringDiff all changes introduced by this check-in (-ci).
contextintegerLines of context around each change (-c).
filesarrayOptional list of files to diff.
from_versionstringStarting check-in/revision (--from).
ignore_trailing_spacebooleanIgnore changes to end-of-line whitespace (-Z).
ignore_whitespacebooleanIgnore whitespace-only changes (-w).
internalbooleanUse the internal diff logic (-i).
jsonbooleanPrint the diff as JSON (--json).
new_filebooleanTreat added files as if they already existed with empty content (-N).
side_by_sidebooleanPrint a side-by-side diff (-y).
statbooleanShow only the number of added and deleted lines (--numstat).
strip_trailing_crbooleanTreat CR at the end of each line as insignificant (--strip-trailing-cr).
to_versionstringEnding check-in/revision (--to).
undobooleanDiff against the undo buffer (--undo).
unifiedbooleanPrint a unified diff (--unified).
verbosebooleanPrint the complete text of added or deleted files (-v).
versions_headerbooleanShow the compared versions in the diff header (-h).
widthintegerWidth of side-by-side lines (-W).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_finfo File history

Show the change history of one file, or switch to the artifact facts, status line or file content view.

ParameterTypeDescription
file *stringFile to inspect.
briefbooleanOne line per revision, in log mode (-b).
limitintegerNumber of revisions to show, in log mode (-n).
modestringlog: revisions with comments; id: artifact facts; status: one-line status; print: file content.
offsetintegerRevisions to skip, in log mode (--offset).
revisionstringRevision the id and print modes describe (-r).
verbosebooleanIn id mode, show every check-in that uses the file (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_revert Revert changes

Revert uncommitted local changes. Destructive: the workspace is restored from the repository.

ParameterTypeDescription
filesarrayFiles to revert. Omit to revert the whole check-out.
revisionstringRevision to revert to (-r).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_stash Stash

Manage the Fossil local stash (temporary storage for uncommitted work).

ParameterTypeDescription
actionstringStash sub-command.
commentstringComment used by save/snapshot (-m).
stash_idstringStash id used by pop/apply/drop/diff.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_tag Tags

List, find, add or cancel Fossil tags (symbolic labels attached to check-ins and other artifacts).

ParameterTypeDescription
actionstringTag sub-command.
checkinstringTarget check-in or artifact (required for add; defaults to tip for cancel, optional for list).
date_overridestringTag timestamp to store, e.g. "2026-11-17 12:00:00"; used with `add`/`cancel` (--date-override).
dry_runbooleanPrint the control artifact without writing it; used with `add`/`cancel` (-n).
inversebooleanInvert the `tagtype` filter; used with `ls` (-v).
limitintegerMaximum number of results; used with `find` (-n).
prefixstringList only tags with this prefix; used with `ls` (--prefix).
propagatebooleanPropagate the tag to all descendants of the artifact; used with `add` (--propagate).
rawbooleanUse the raw tag name instead of a branch name (--raw).
tag_namestringTag name (required for find/add/cancel).
tagtypestringList only tags of this type; used with `ls` (--tagtype).
typestringArtifact type to match; used with `find` (-t).
user_overridestringLogin to record as the tag author; used with `add`/`cancel` (--user-override).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_addremove Add/remove scan

Stage new files and stage deletions of missing files in one pass (run before commit).

ParameterTypeDescription
case_sensitivebooleanOverride the case-sensitive setting (--case-sensitive).
cleanstringComma-separated glob patterns of clean files to ignore (--clean).
dotfilesbooleanInclude dot-files when scanning.
dry_runbooleanShow what would be staged without changing anything (-n/--dry-run).
ignorestringComma-separated glob patterns to ignore (--ignore).
resetbooleanReset the ADDED/DELETED state of the check-out instead (--reset).
verbosebooleanReport each file while resetting, with reset: true (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_commit Commit

Create a check-in from the staged/current changes. Answers the interactive "continue" and "commit anyhow" prompts automatically.

ParameterTypeDescription
message *stringCommit message.
allow_conflictbooleanCommit with unresolved merge conflicts (--allow-conflict).
allow_emptybooleanAllow a check-in with no file changes (--allow-empty).
allow_forkbooleanAllow the check-in to fork the branch (--allow-fork).
allow_olderbooleanStore a timestamp older than the ancestor check-in (--allow-older).
bgcolorstringBackground colour for this one check-in (--bgcolor).
branchstringPlace the new check-in on this branch (--branch).
closebooleanClose the branch being committed (--close).
date_overridestringCheck-in timestamp to store instead of now, e.g. "2026-11-17 12:00:00" (--date-override).
dry_runbooleanShow what would be committed without writing (--dry-run).
filesarrayFiles to commit. Omit to commit everything that changed.
hashbooleanDetect file changes by hashing instead of size+mtime (--hash).
integratebooleanClose every branch merged into this one (--integrate).
message_filestringRead the commit message from this file (-M); takes precedence over `message`.
mimetypestringMimetype of the commit message (--mimetype).
no_verifybooleanSkip the before-commit hooks (--no-verify).
no_warningsbooleanOmit content warnings (--no-warnings).
private_checkinbooleanKeep the check-in out of pushes (--private).
tagsarrayTags to attach to the new check-in (--tag).
user_overridestringRecord this login as the author (--user-override).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_add Add files

Start tracking one or more files or directories.

ParameterTypeDescription
allow_reservedbooleanAdd file names that Windows reserves, such as `CON` or `NUL` (--allow-reserved).
case_sensitivebooleanOverride the case-sensitive setting (--case-sensitive).
cleanstringAlso ignore files matching these globs (--clean).
dotfilesbooleanRecurse into dot-files/directories (--dotfiles).
filesarrayFiles or directories to add. Required unless reset is true.
forcebooleanAdd even when a file matches ignore-glob, without prompting (-f).
ignorestringIgnore unmanaged files matching these globs (--ignore).
resetbooleanReset the ADDED state instead of adding files (--reset).
verbosebooleanReport each file while resetting, with reset: true (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_rm Remove files

Remove files or directories from the repository (and optionally from disk).

ParameterTypeDescription
files *arrayFiles or directories to remove.
case_sensitivebooleanOverride the case-sensitive setting (--case-sensitive).
dry_runbooleanShow what would be removed without changing anything (-n).
forcebooleanAlso delete from disk (--hard).
keepbooleanKeep files on disk (--soft); takes precedence over `force`.
resetbooleanReset the DELETED state instead of removing files (--reset).
verbosebooleanReport each file when resetting (--verbose); used with `reset`.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_mv Move/rename

Move or rename a file/directory, recording a RENAME event so history stays connected in the Fossil DAG.

ParameterTypeDescription
new_name *stringDestination path.
old_name *stringSource path.
case_sensitivebooleanExplicitly set the case-sensitive behaviour (--case-sensitive 1/0).
dry_runbooleanPrint the RENAME event without changing anything (-n).
hardbooleanRename on disk as well (--hard) instead of only recording it (--soft).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_extras List extras

List files present in the working tree that are not part of the check-out.

ParameterTypeDescription
abs_pathsbooleanPrint absolute path names (--abs-paths).
case_sensitivebooleanOverride the case-sensitive setting (--case-sensitive 1|0).
dotfilesbooleanInclude dot-files (--dotfiles).
headerbooleanPrefix the list with the repository name (--header).
ignorestringComma-separated glob patterns to ignore.
rel_pathsbooleanPrint paths relative to the current directory (--rel-paths).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_clean Clean untracked files

Delete untracked files from the workspace. Destructive: preview with dry_run first. Without flags it runs non-interactively (--no-prompt).

ParameterTypeDescription
all_checkoutsbooleanApply the empty-directory scan to every open check-out (--allckouts).
all_filesbooleanDelete every unmanaged file without confirmation (-f).
case_sensitivebooleanOverride the case-sensitive setting (--case-sensitive).
cleanstringDelete matching files without prompting (--clean).
dirs_onlybooleanRemove empty directories only, no files (--dirsonly).
disable_undobooleanDo not keep a copy that `fossil undo` can restore (--disable-undo).
dotfilesbooleanInclude files and directories whose name starts with a dot (--dotfiles).
dry_runbooleanOnly list what would be deleted (-n).
empty_dirsbooleanRemove empty directories after deleting files (--emptydirs).
ignorestringKeep unmanaged files matching these globs (--ignore).
keepstringComma-separated globs of files to spare beyond ignore-glob (--keep).
promptbooleanAsk before deleting each file (-i).
tempbooleanRemove only Fossil-generated temporary files (--temp).
verbosebooleanReport each file as it is removed (-v).
verilybooleanRemove everything that is not managed, including dot-files and ignored files, without the undo buffer (-x).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_timeline Timeline

Show the repository event timeline (check-ins, tickets, wiki, tags).

ParameterTypeDescription
branchstringOnly events on this branch (-b).
checkinstringCheck-in hash or date the `when` keyword applies to.
current_branchbooleanOnly events on the current branch (-c).
formatstringEntry format (-F), e.g. 'oneline' or '%h %d %c'.
limitintegerNumber of events (-n).
offsetintegerSkip this many entries before reporting (--offset).
pathstringOnly events touching this file or directory (-p).
repositorystringRepository database file to read instead of the open check-out, e.g. `repos/app.fossil` (-R). Absolute paths are used verbatim; relative paths resolve against the workspace.
type_filterstringEvent type (-t), e.g. 'ci' for check-ins, 't' for tickets, 'w' for wiki.
verbosebooleanList the files changed by each check-in (-v).
whenstringTimeline direction relative to `checkin`.
widthintegerWidth of the output lines (-W).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_info Info

Repository/check-out metadata, or details about a specific file, check-in or branch.

ParameterTypeDescription
repositorystringRepository database file to read instead of the open check-out, e.g. `repos/app.fossil` (-R). Absolute paths are used verbatim; relative paths resolve against the workspace.
targetstringFile name, check-in hash or branch. Omit for general repository info.
verbosebooleanShow extra details, such as the SQLite version and repository size (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_branch Branches

List, inspect, create, close, reopen, hide or unhide branches.

ParameterTypeDescription
actionstringBranch sub-command: 'ls' lists branches, 'new' creates one, 'info'/'current' report
allbooleanList all branches, including closed ones (-a).
basisstringStarting point for the new branch (check-in or branch). Defaults to 'current'.
bgcolorstringBackground colour for the new branch (--bgcolor).
branch_namestringBranch to act on (required for 'new', 'info', 'close', 'reopen', 'hide' and 'unhide').
closedbooleanList only closed branches (-c).
date_overridestringTimestamp to store instead of now (--date-override).
dry_runbooleanPrint the control artifact without committing it; used with close/reopen/hide/unhide (-n).
private_branchbooleanKeep the new branch local; used with `new` (--private).
private_branchesbooleanList only private branches (-p).
reversebooleanReverse the sort order (-r).
time_orderbooleanShow recently changed branches first (-t).
user_overridestringLogin to record as the author (--user-override).
verbosebooleanReport more detail; used with close/reopen (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_merge Merge

Merge another branch or check-in into the current workspace.

ParameterTypeDescription
branch_or_version *stringBranch name or check-in hash to merge.
backoutbooleanRemove the changes of this single check-in (--backout).
baselinestringUse this version as the merge pivot (--baseline).
binarystringSkip parallel changes of files matching this glob (--binary).
cherrypickbooleanMerge only the changes of this single check-in (--cherrypick).
dry_runbooleanSimulate the merge without touching files (-n).
forcebooleanForce the merge even if it would be a no-op (-f).
force_missingbooleanMerge even when content of one side is missing (--force-missing).
integratebooleanClose the source branch after merging (--integrate).
keep_merge_filesbooleanKeep the temporary merge files on conflict (-K).
verbosebooleanReport each file as it is merged (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_update Update check-out

WARNING: destructive. Switch the workspace to a version/branch, or update the current branch when target is empty. Overrides local workspace state - obtain user confirmation first.

ParameterTypeDescription
case_sensitivebooleanOverride the case-sensitive setting (--case-sensitive).
dry_runbooleanShow what would change without touching the workspace (-n).
force_missingbooleanUpdate even when content of one side is missing (--force-missing).
keep_merge_filesbooleanKeep the temporary merge files (-K).
latestbooleanUpdate to the latest version instead of a named one (--latest).
no_syncbooleanSkip the automatic sync before updating (--nosync).
set_mtimebooleanStamp every file with its last-check-in time (--setmtime).
targetstringVersion or branch to update to. Omit to update the current branch.
verbosebooleanReport the state of every file (-v).
widthintegerOutput width in columns (-W).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_undo Undo

WARNING: destructive. Undo the last update/revert/merge in the workspace. Preview with dry_run (-n) first.

ParameterTypeDescription
dry_runbooleanSimulate the undo (-n) without modifying files.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_changes Changes

Report the change status of files in the check-out, optionally restricted to one or more change types (edited, updated, added, deleted, renamed, conflict, meta) and/or to explicit paths.

ParameterTypeDescription
absolute_pathsbooleanPrint absolute pathnames (--abs-paths).
addedbooleanOnly added files (--added).
allbooleanEvery managed file, i.e. all change types (--all).
changedbooleanEdited and updated files together (--changed).
classifybooleanStart each line with the change type (--classify).
conflictbooleanOnly files with merge conflicts (--conflict).
deletedbooleanOnly deleted files (--deleted).
differbooleanAll differences against the check-out, including unmanaged files (--differ).
dotfilesbooleanInclude unmanaged files whose name starts with a dot (--dotfiles).
editedbooleanOnly edited, merged and conflicted files (--edited).
extrabooleanOnly unmanaged files (--extra).
filesarrayExplicit list of files or directories. When omitted the command applies to the whole check-out.
hashbooleanVerify file status by hashing instead of size and mtime (--hash).
headerbooleanPrint the repository name above a non-empty report (--header).
ignorestringIgnore files matching these globs (--ignore).
mergebooleanShow only files with merge conflict markers (--merge).
metabooleanOnly files with metadata changes (--meta).
missingbooleanOnly missing files (--missing).
no_classifybooleanSkip the per-file change type (--no-classify).
no_mergebooleanHide merge contributors (--no-merge).
relative_pathsbooleanPrint pathnames relative to the current directory (--rel-paths).
renamedbooleanOnly renamed files (--renamed).
unchangedbooleanOnly unchanged files (--unchanged).
updatedbooleanOnly files updated by merge/integrate (--updated).
verbosebooleanPrint "(none)" when the report is empty (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_annotate Annotate

Show a file line by line with the check-in that last changed each line (annotate: line numbers, blame/praise: author names).

ParameterTypeDescription
file *stringFile to annotate, relative to the check-out.
commandstringblame/praise print the author, annotate prints line numbers only.
fileversbooleanShow file versions instead of check-in versions (--filevers).
ignore_all_spacebooleanIgnore all whitespace when matching lines (-w).
ignore_trailing_spacebooleanIgnore trailing whitespace (-Z).
limitstringVersion limit: a count, a duration like "2s", or "none" (-n).
logbooleanList every version analysed (-l).
originstringFuture check-in to annotate towards (-o); e.g. trunk.
revisionstringCheck-in containing the file version to annotate (-r).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_merge_base Merge base

Find the common ancestor check-in of two or more versions, as a hypothetical merge would.

ParameterTypeDescription
versions *arrayTwo or more versions; the first is the primary.
ignore_mergesbooleanIgnore merge arcs when looking for name pivots (--ignore-merges).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_leaves Leaves

List the leaf check-ins of every branch, i.e. heads that have no children.

ParameterTypeDescription
allbooleanInclude closed leaves as well (-a).
by_branchbooleanOrder the output by branch name (--bybranch).
closedbooleanOnly closed leaves (-c).
multiplebooleanOnly branches with more than one leaf (-m).
recomputebooleanRecalculate the leaves instead of reading the cache (--recompute).
widthintegerOutput width in columns (-W); 0 means one line per entry.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_descendants Descendants

List every leaf descendant of a check-in (default: the check-out version).

ParameterTypeDescription
checkinstringCheck-in to start from. Omit for the check-out version.
repositorystringRepository database file to read instead of the open check-out, e.g. `repos/app.fossil` (-R). Absolute paths are used verbatim; relative paths resolve against the workspace.
widthintegerOutput width in columns (-W); 0 means one line per entry.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_unpublished Unpublished

List unpublished check-ins (private artifacts that a push will not send).

ParameterTypeDescription
allbooleanInclude every unpublished artifact, not only check-ins (--all).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_ls List files

List the files of the check-out, or of a given check-in, optionally limited to some paths and enriched with age, status or time ordering.

ParameterTypeDescription
agebooleanShow when each file was committed (--age).
hashbooleanVerify file status by hashing instead of size and mtime (--hash); adds --verbose.
pathsarrayExplicit list of files or directories. When omitted the command applies to the whole check-out.
repositorystringRepository database file to read instead of the open check-out, e.g. `repos/app.fossil` (-R). Absolute paths are used verbatim; relative paths resolve against the workspace.
revisionstringCheck-in to list (-r) instead of the check-out contents.
time_orderbooleanSort by time instead of name (-t).
verbosebooleanShow extra information, including change status (--verbose).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_describe Describe version

Describe a version as the closest non-propagating tag, the commit count since it and the short hash, or just the hash when no tag applies.

ParameterTypeDescription
digitsintegerHex digits of the hash to show (--digits).
dirtybooleanAlso show whether there are uncommitted changes (--dirty).
longbooleanAlways show tag, count and hash, even when they collapse (--long).
matchstringOnly consider non-propagating tags matching this glob (--match).
versionstringVersion to describe; defaults to the checked-out version.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_archive Archive check-in

Generate a tarball or ZIP archive of a check-in, or list the files the archive would contain.

ParameterTypeDescription
excludearrayGlob patterns to leave out (-X).
formatstringArchive format.
includearrayGlob patterns to keep (--include).
namestringTop-level directory name inside the archive (--name).
outputstringArchive path, relative to the workspace. Omit to list the files instead.
versionstringCheck-in to archive.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_unversioned Unversioned files

List, print, add, remove or timestamp the unversioned files the repository keeps without history, and sync or revert them against a remote.

ParameterTypeDescription
actionstringlist: show them; cat: print content; add/remove: change the set; touch: update timestamps; sync/revert: exchange them with a remote.
dry_runbooleanShow what would happen without changing anything; used with `sync` and `revert` (-n).
filesarrayFiles the action applies to.
globstringMatch names by this glob, in `list` and `remove` (--glob).
likestringMatch names like this pattern, in `list` and `remove` (--like).
mtimestringTimestamp to store instead of now, for add/remove/touch (--mtime).
urlstringRemote URL for `sync` and `revert`; defaults to the configured remote.
verbosebooleanReport extra diagnostics; used with `sync` and `revert` (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_touch Touch files

Update file timestamps so that Fossil's size and mtime based change detection sees the files again.

ParameterTypeDescription
dry_runbooleanList the files that need touching without touching them (-n).
filesarrayFiles or glob patterns to touch. Omit to touch every managed file.
globstringComma-separated glob patterns, evaluated from the top of the source tree (-g).
glob_filestringFossil glob-list file to read patterns from (-G).
modestringnow: current time; checkin: last check-in that modified each file; checkout: the checked-out version.
quietbooleanSuppress warnings about skipped unmanaged or out-of-tree files (-q).
verbosebooleanReport the globs and each file touched (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_amend Amend check-in

Change the comment, author, date, tags, branch or visibility of an existing check-in.

ParameterTypeDescription
checkin *stringCheck-in to amend, such as tip or a hash.
authorstringReplacement author (--author).
bgcolorstringBackground colour for this check-in (--bgcolor).
branchstringStart a branch at this check-in (--branch).
branchcolorbooleanApply the colour to the whole branch (--branchcolor).
cancelarrayTags to remove (--cancel, repeatable).
closebooleanMark this leaf as closed (--close).
commentstringReplacement comment (-m).
datestringReplacement check-in time, or now (--date).
date_overridestringChange time of the control artifact (--date-override).
dry_runbooleanPrint the control artifact without changing anything (-n).
hidebooleanHide the branch starting at this check-in (--hide).
message_filestringFile to read the replacement comment from, in the workspace (-M).
tagarrayTags to add (--tag, repeatable).
user_overridestringLogin recorded on the control artifact (--user-override).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_patch Binary patch

Create a binary patch from uncommitted changes, show it as a diff, or apply it to the check-out.

ParameterTypeDescription
file *stringPatch file path; relative paths resolve against the workspace.
actionstringcreate, apply or show the patch.
dry_runbooleanPrint what `apply` would do without doing it (-n).
forcebooleanOverwrite an existing patch, or apply over unsaved changes (-f).
verbosebooleanExplain what `apply` does (-v).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_bisect Bisect

Search the history for the check-in that introduced or fixed a problem: mark versions good/bad/skip, ask for the next candidate or review the log. WARNING: `run` executes the given command repeatedly; obtain user confirmation first.

ParameterTypeDescription
action *stringBisect subcommand.
commandstringCommand that decides good (exit 0), skip (125) or bad (anything else); required by `run`.
interactivebooleanAsk for the decision after each step instead of using the exit code (--interactive).
optionstringBisect option name for `options`.
valuestringNew value for `option`.
versionstringVersion to mark (good/bad/skip); omit for the current check-out.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_ticket_list List tickets

Render a ticket report (default report 1). When the report is unavailable it falls back to a compact SQL listing.

ParameterTypeDescription
reportstringTicket report number or name.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_ticket_show Show ticket report

Render one ticket report with an optional WHERE filter, e.g. filter: "status = 'Open'". Report 0 lists every ticket column.

ParameterTypeDescription
filterstringExtra WHERE condition, e.g. "status != 'open'".
quotebooleanEncode special characters (--quote).
reportstringReport number or title; 0 lists all ticket columns.
separatorstringColumn separator (-l).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_ticket_create Create ticket

Create a ticket. `additional_fields` is a flat list of field/value pairs, e.g. ['subsystem','UI','type','Bug'].

ParameterTypeDescription
title *stringTicket title.
additional_fieldsarrayFlat field/value pairs, e.g. ['subsystem','UI','priority','High'].
statusstringInitial status, e.g. 'Open' or 'Verified'.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_ticket_update Update ticket

Change a single field of an existing ticket, e.g. field_name='status', field_value='Closed'.

ParameterTypeDescription
field_name *stringField to change (status, subsystem, priority, comment, ...).
field_value *stringNew value for the field.
ticket_id *stringTicket UUID or prefix shown by the ticket list.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_chat_url Chat URL

Show the URL of the chatroom on the default remote (or on --remote).

ParameterTypeDescription
remotestringUse this remote URL instead of the default remote.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_chat_send Send chat message

Send a message to the chatroom of the default remote (or --remote). Requires login credentials for that remote; `file` attaches a file to the message.

ParameterTypeDescription
message *stringText of the chat message (-m).
attachment_namestringSend the attachment under this name (--as). Requires file.
filestringFile to attach (relative paths resolve against the workspace).
remotestringChat server URL to use instead of the default remote.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_chat_pull Pull chat history

Download chat content from the chat server into the local clone (setup privilege required on the server). Use `out` to store it in a separate database file instead.

ParameterTypeDescription
allbooleanDownload all chat content instead of only the new messages (--all).
outstringStore the CHAT table in this database file instead of the clone (--out, workspace relative).
remotestringChat server URL to use instead of the default remote.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_chat_read Read chat history

Read previously pulled chat messages (newest first) from the clone, or from an archive created with `fossil_chat_pull` + `out`. Run `fossil_chat_pull` first when the clone has no chat data.

ParameterTypeDescription
databasestringChat archive database file created by `fossil_chat_pull --out` (workspace relative).
limitintegerHow many messages to show.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_forum_list List forum threads

List the most recent forum posts, newest first, with their thread root, author and reply count.

ParameterTypeDescription
limitintegerHow many forum events to scan.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_forum_read Read forum thread

Print a forum thread (root post plus every reply found in the scanned window). Accepts any post hash in the thread; abbreviations work.

ParameterTypeDescription
thread *stringThread root hash, or the hash of any post in the thread (prefix allowed).
limitintegerHow many forum events to scan for replies.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_wiki_ls List wiki pages

List every wiki page in the repository.

ParameterTypeDescription
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_wiki_read Read wiki page

Export a wiki page as raw markdown/wiki text.

ParameterTypeDescription
page_name *stringWiki page name.
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.

fossil_wiki_write Write wiki page

Create or replace a wiki page.

ParameterTypeDescription
content *stringFull markdown/wiki content of the page.
page_name *stringWiki page name (created when missing).
workspacestringDirectory the fossil command runs in (check-out or workspace). Defaults to the --workspace value, then to the process working directory.