🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

sl-mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sl-mcp

MCP server for Sapling (sl) version control

latest
npmnpm
Version
0.1.2
Version published
Weekly downloads
41
-2.38%
Maintainers
1
Weekly downloads
 
Created
Source

sl-mcp

MCP server for Sapling (sl). Gives LLMs structured access to Sapling repos with built-in safety guardrails.

Prerequisites

  • Sapling installed and on your PATH
  • Node.js 18+

Install

Claude Code

claude mcp add --transport stdio sl -- npx -y sl-mcp

Restart Claude Code. Verify with /mcp — you should see the sl server listed.

Other MCP clients

Add to your MCP config file (.mcp.json, claude_desktop_config.json, etc.):

{
  "mcpServers": {
    "sl": {
      "command": "npx",
      "args": ["-y", "sl-mcp"]
    }
  }
}

Tools

22 tools across three tiers:

TierToolsConfirmation
Readsl_status sl_diff sl_log sl_show sl_blame sl_cat sl_root sl_smartlogNone
Writesl_goto sl_commit sl_amend sl_rebase sl_shelve sl_unshelve sl_add sl_remove sl_forget sl_revert sl_undoDestructive ops warn LLM to confirm
Remotesl_pull sl_push sl_pr_submitAlways confirm with user

Safety

  • Force push to main/master is blocked server-side (not just a warning)
  • Destructive tools (rebase, revert, goto --clean) include confirmation guidance in tool descriptions
  • Remote tools always instruct the LLM to confirm before executing

Configuration

Env varDefaultDescription
SL_MCP_BINARYslPath to Sapling binary
SL_MCP_TIMEOUT30000Command timeout in ms

License

MIT

Keywords

mcp

FAQs

Package last updated on 13 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts