fossil-scm-mcp
v1.0.1Model Context Protocol (MCP) server for Fossil SCM with 31 specialized tools for AI agents
🇬🇧 English | 🇷🇴 Versiunea în limba română ⚠️ Note: ✨ 100% AI‑powered project 🪄 — concept, analysis, code, testing, documentation — with the human 👨💻 in the loop as the big boss 👨💼 for control, fine‑tuning, and decisions 🤔😉🤫. A robust Model Context Protocol (MCP) server providing comprehensive, headless programmatic access to Fossil SCM repositories.
Summary extracted from the README.
🇬🇧 English | 🇷🇴 Versiunea în limba română
⚠️ Note:
✨ 100% AI‑powered project 🪄 — concept, analysis, code, testing, documentation — with the human 👨💻 in the loop as the big boss 👨💼 for control, fine‑tuning, and decisions 🤔😉🤫.
Fossil SCM - MCP Server
A robust Model Context Protocol (MCP) server providing comprehensive, headless programmatic access to Fossil SCM repositories. It exposes 31 dedicated tools covering Version Control, Repository Administration & Settings, Bug/Task Ticketing, and Wiki management, tailored specifically for AI agents (Google Antigravity, Claude Desktop, Cursor, etc.).
Prerequisites
[!IMPORTANT] CRITICAL: This package does NOT install the Fossil executable itself.
For this MCP server to function, you MUST have thefossilcommand-line utility installed and available in your system'sPATHenvironment variable.
- Download Fossil from the official website: https://fossil-scm.org/
- Extract and place the executable (
fossil.exeon Windows,fossilon Linux/macOS) in a directory of your choice. - Add that directory to your system's
PATH.
Installation & Configuration
To integrate this MCP server with Claude Desktop, Google Antigravity, or other MCP-compatible clients, add the following configuration to your MCP configuration file (e.g., claude_desktop_config.json or mcp_config.json):
Option 1: Using uvx (Zero-Install, Recommended)
Direct execution from PyPI with zero local repository cloning required:
{
"mcpServers": {
"fossil-scm": {
"command": "uvx",
"args": [
"fossil-scm-mcp"
]
}
}
}
Option 2: Using pip
If you installed the package globally or into your active Python environment (pip install fossil-scm-mcp):
{
"mcpServers": {
"fossil-scm": {
"command": "fossil-scm-mcp"
}
}
}
Option 3: From Local Source (Development)
Clone the repository and run directly with uv:
git clone https://github.com/ReluPercan/FossilSoloMCP.git
Configure your MCP client:
{
"mcpServers": {
"fossil-scm": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/FossilSoloMCP",
"fossil-scm-mcp"
]
}
}
}
Replace /path/to/FossilSoloMCP with the actual path to the cloned repository directory on your system (e.g., C:/Tools/FossilSoloMCP or /home/user/FossilSoloMCP).
[!IMPORTANT] Golden Rule for AI Agents (Dynamic
cwd):
The server operates completely decoupled and dynamically. To cleanly handle multiple repositories without workspace conflicts, always instruct your AI assistant to provide thecwdparameter (the absolute path of the current project) on every tool call.Recommended AI Agent Rule (System Prompt / Custom Instructions):
When calling any tool in the fossil-scm MCP server, always provide the 'cwd' parameter explicitly set to the current project's absolute working directory.
[!TIP] The
--repositoryCLI parameter (or environment variablesFOSSIL_WORKSPACE/FOSSIL_CWD) can optionally specify a static fallback working directory for calls omittingcwd. However, passingcwddynamically on every tool call remains the recommended practice.
Key Features & Capabilities
- 31 Specialized Tools:
- Version Control (20 tools): Workspace status (
fossil_status), diff with revision and branch support (fossil_diff), detailed repository and artifact inspection (fossil_info), historical file inspection without checkout (fossil_cat), per-file commit history (fossil_finfo), granular file restoration (fossil_revert), DAG-preserving file rename (fossil_mv), workspace cleanup (fossil_clean), branch merging with auto-close (fossil_merge), temporary stash management (fossil_stash), symbolic tag management (fossil_tag), granular add/remove (fossil_add,fossil_rm,fossil_addremove,fossil_extras), branch management (fossil_branch), commit with new branch creation (fossil_commit), timeline with path and type filters (fossil_timeline), and safe undo/update operations (fossil_undo,fossil_update). - Ticketing & Bug Tracking (3 tools): List (
fossil_ticket_list), create (fossil_ticket_create), and update tickets (fossil_ticket_update) stored directly within the repository database. - Wiki Documentation (3 tools): List (
fossil_wiki_ls), export/read (fossil_wiki_read), and commit/write (fossil_wiki_write) Markdown wiki pages. - Repository Administration & Setup (5 tools): Initialize new repositories (
fossil_init), open repositories (fossil_open), close active checkouts (fossil_close), clone remote or local repositories (fossil_clone), and inspect/modify repository configurations (fossil_settings).
- Version Control (20 tools): Workspace status (
- Headless & Anti-Hang Resilience:
- Automatically sets
stdintoDEVNULLto instantly fail interactive CLI prompts (y/N) instead of hanging. - Built-in 30-second timeout mechanism with clean error reporting.
- Default
--no-warningsand automatic prompt handling on commits for binary files and CRLF/LF line endings. fossil_addusesforce=Trueby default, cleanly bypassingignore-globconfirmation prompts when files are explicitly specified.
- Automatically sets
- Centralized Repositories: Automatically organizes repositories into a
.fossil_repositories/directory outside the active working tree. - Safety First: Destructive operations (
undo,update) are explicitly labeled with warnings so AI agents ask for human confirmation before executing.
📚 Documentation
For complete architectural details, AI agent workflows, and the in-depth API reference covering all 31 tools, see the User Manual & Technical Reference or the interactive Bilingual Web Manual (MANUAL.html).
📄 License
This project is licensed under the terms of the MIT License. See the LICENSE file for complete details.
📝 Warranty
No warranty of any kind is provided!