fossil-scm-mcp

v1.0.1
fossil-scm-mcp Checked 2 days ago Published 1 month ago

Model Context Protocol (MCP) server for Fossil SCM with 31 specialized tools for AI agents

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

fossil_init

Create a new Fossil repository database from scratch. Automatically places the database in the '.fossil_repositories' parent directory if no explicit path is provided. Args: db_name: Optional filename or path for the repository database (defaults to auto-derived '<project_name>.fossil' in parent '.fossil_repositories'). project_name: Optional name for the project (defaults to the workspace folder name). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
cwd
db_name
project_name

fossil_open

Open an existing Fossil repository in the specified or current working directory. Automatically resolves database path if omitted. Args: db_name: Optional name or path of the database to open (defaults to auto-detecting '.fossil_repositories/<project_name>.fossil'). force: If True, uses the -f (--force) option to override directory not empty restrictions. keep: If True, uses the -k (--keep) option to keep local files unchanged. workdir: Optional target working directory where the check-out should be created (--workdir DIR). cwd: Optional path to…

ParameterTypeDescription
cwd
db_name
forceboolean
keepboolean
workdir

fossil_close

Close the open Fossil check-out in the current or specified working directory. Args: force: If True, uses the -f (--force) option to close even if there are uncommitted local changes or stash. cwd: Optional path to the directory where the check-out is currently open.

ParameterTypeDescription
cwd
forceboolean

fossil_clone

Clone a remote or local Fossil repository to a destination .fossil file. Args: repository_uri: The source repository URL (http://, https://, ssh://) or local file path. target_file: Path to the destination .fossil repository file to create. http_proxy: Optional HTTP proxy server URL to use during the clone. cwd: Optional working directory for command execution.

ParameterTypeDescription
repository_uri *string
target_file *string
cwd
http_proxy

fossil_settings

Read or change Fossil repository settings (e.g. crlf-glob, binary-glob, ignore-glob, autosync). Args: name: Optional name of the setting to view or configure. If omitted, lists all settings and their current values. value: Optional value to assign to the setting. If omitted (and name is provided), displays the current value of 'name'. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
cwd
name
value

fossil_status

Display the current status of files in the repository (modified, added, un-tracked). Args: dotfiles: Include files/directories beginning with a dot in untracked files list. brief: Show a single keyword for the status. ignore: Comma-separated list of glob patterns for extra files to be ignored. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
briefboolean
cwd
dotfilesboolean
ignore

fossil_diff

Show code differences between revisions or the current workspace. Args: from_version: Starting check-in or revision (--from). to_version: Ending check-in or revision (--to). files: Optional list of files to diff. branch: Show diff across branches (--branch). brief: Show only the list of changed files (--brief). ignore_whitespace: Ignore whitespace differences (-w). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
branch
briefboolean
cwd
files
from_version
ignore_whitespaceboolean
to_version

fossil_cat

Extract and display the contents of a file from a specified revision without modifying the workspace. Args: file: The file path or name to extract. revision: Optional check-in or revision (-r). If omitted, uses the current checkout version. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
file *string
cwd
revision

fossil_finfo

Show the revision history (file info) for a specific file. Args: file: The file name or path to inspect. limit: Number of events to show (default: 20). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
file *string
cwd
limitinteger

fossil_revert

Revert uncommitted local changes for specific files, or all files if omitted. Args: files: Optional list of specific files to revert. If omitted, reverts all modified files. revision: Optional revision to revert to (-r). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
cwd
files
revision

fossil_stash

Manage the local Fossil stash (temporary modifications storage). Args: action: Stash sub-command: 'save', 'snapshot', 'ls', 'pop', 'apply', 'drop', 'diff'. comment: Optional comment when saving a stash (for 'save' or 'snapshot'). stash_id: Optional stash ID (for 'pop', 'apply', 'drop', 'diff'). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
actionstring
comment
cwd
stash_id

fossil_tag

Manage Fossil tags (symbolic labels on check-ins). Args: action: 'ls' (list tags), 'add' (add tag), 'cancel' (delete tag). tag_name: Name of the tag (required for 'add' and 'cancel'). checkin: Check-in / commit hash or branch target (required for 'add', optional for 'cancel'). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
actionstring
checkin
cwd
tag_name

fossil_addremove

Add new files to tracking and remove deleted files from disk (prepares for commit). Args: dotfiles: Include files/directories beginning with a dot. ignore: Comma-separated list of glob patterns for files to be ignored. clean: Comma-separated list of glob patterns for clean files to be ignored. reset: Reset the ADDED/DELETED state of a check-out (no other options are valid with this option except cwd). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
clean
cwd
dotfilesboolean
ignore
resetboolean

fossil_commit

Launch a commit in the repository with current local modifications. Automatically handles interactive prompts for new binary files by sending 'a' (all). Args: message: The commit message. files: Optional list of specific files to commit. If empty, commits all modified/added files. branch: Optional new branch name to place this commit on (--branch). no_warnings: Omit all warnings about file contents (default: True). allow_empty: Allow a commit with no changes (default: False). user_override: Record this user as the login that created…

ParameterTypeDescription
message *string
allow_emptyboolean
branch
cwd
files
no_warningsboolean
user_override

fossil_add

Make arrangements to add one or more files or directories to the repository. Args: files: List of file or directory paths to add. dotfiles: Include files/directories beginning with a dot when adding recursively. force: Add files even if they match ignore-glob patterns without prompting (defaults to True). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
files *array
cwd
dotfilesboolean
forceboolean

fossil_rm

Remove one or more files or directories from the repository. Args: files: List of file or directory paths to remove. force: Remove files from the check-out/disk as well (--hard). keep: Skip removing files from the check-out/disk (--soft). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
files *array
cwd
forceboolean
keepboolean

fossil_mv

Rename or move a file or directory in the Fossil repository and optionally on disk. Explicitly records the rename event (RENAME), preserving history continuity in the Fossil version graph (DAG). Args: old_name: Source file or directory path/name. new_name: Destination file or directory path/name. hard: If True (default), moves/renames the file physically on disk as well (--hard). If False, only records the rename intention in the manifest (--soft). case_sensitive: Override case-sensitive setting (--case-sensitive 1/0). cwd…

ParameterTypeDescription
new_name *string
old_name *string
case_sensitive
cwd
hardboolean

fossil_extras

Print a list of all files in the source tree that are not part of the current check-out. Args: dotfiles: Include files/directories beginning with a dot. ignore: Comma-separated list of glob patterns to ignore. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
cwd
dotfilesboolean
ignore

fossil_clean

Delete untracked files from the working directory. Args: all_files: If True (-f), forces deletion without interactive confirmation. dry_run: If True (-n), only displays what files would be deleted, without touching them. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
all_filesboolean
cwd
dry_runboolean

fossil_timeline

Extract the history (timeline) of actions from the repository. Args: limit: Number of events to show (default: 20). path: Optional file or directory path to filter history (-p). type_filter: Optional filter for event types, e.g. 'ci' for check-ins, or branch name (-t). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
cwd
limitinteger
path
type_filter

fossil_info

Provide metadata about the repository status, or a specific file/commit if 'target' is given. Args: target: Optional file name, commit ID, or branch to get info about. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
cwd
targetstring

fossil_branch

Manage branches. Args: action: Can be 'ls' to list or 'new' to create. branch_name: Required if action is 'new'. basis: Optional starting point for the new branch. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
actionstring
basisstring
branch_namestring
cwd

fossil_merge

Merge another branch or check-in into the current workspace. Args: branch_or_version: Branch name or check-in hash to merge. integrate: If True (--integrate), automatically closes the source branch after merging. dry_run: If True (-n), simulates the merge without modifying local files. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
branch_or_version *string
cwd
dry_runboolean
integrateboolean

fossil_update

WARNING: Destructive action. Switch to the indicated version/branch, or update the current branch if target is empty. This overrides local workspace state! Ensure you have user permission. Args: target: The version/branch to update to. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
cwd
targetstring

fossil_undo

WARNING: Destructive action. Undo the last update, revert, or merge operation in the current workspace. Ensure you have user permission. Args: dry_run: If True, simulates the undo by running with -n flag (does not modify files). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
cwd
dry_runboolean

fossil_ticket_list

Extract the list of tickets from the system. Args: report: The ticket report style or ID to show (default: "1"). cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
cwd
reportstring

fossil_ticket_create

Create a new ticket. Args: title: The title of the ticket. status: The initial status of the ticket (default: "Open"). additional_fields: Optional list of field-value pairs, e.g., ['subsystem', 'UI', 'type', 'Bug']. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
title *string
additional_fields
cwd
statusstring

fossil_ticket_update

Modify an attribute for an existing ticket. Example: field_name="status", field_value="Closed". Args: ticket_id: The ID of the ticket to update. field_name: The name of the field to modify. field_value: The new value for the field. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
field_name *string
field_value *string
ticket_id *string
cwd

fossil_wiki_ls

Return the list of all existing wiki pages. Args: cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
cwd

fossil_wiki_read

Read the content of a wiki page in raw markdown/wiki format. Args: page_name: The name of the wiki page. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
page_name *string
cwd

fossil_wiki_write

Create or update a wiki page with new content. Args: page_name: The name of the wiki page. content: The text content to write. cwd: Optional path to the directory where the command should be executed.

ParameterTypeDescription
content *string
page_name *string
cwd