fakek0f3st/dsh-mcp-diff

Gives MCP filesystem edits and parsed bash mutations the same collapsed diff card DSH already draws for its own edit tools.

Registers a toolview under the MCP tool keys so a filesystem MCP edit renders a unified diff card with per-line additions and deletions instead of a generic block, and takes over the bash toolview to add an informational or diff card only for commands it can identify as file mutations. Shells that are not parsed stay untouched, and a warning chip appears for commands matching an unambiguous destructive signature.

Coding & Development ★ 4
View on GitHub ↗

Install

dsh plugin --profile web add dsh-mcp-diff

The npm line (prebuilt, recommended); the README's github: form builds on install instead. DSH picks up its plugin set only at startup, so restart dsh web and refresh the GUI page after installing.

Compatibility

Covers the filesystem MCP server's edit_file, write_file, move_file and create_directory, DSH's own edit and write tools, and bash shapes the parser can identify — heredocs with old and new blocks, sed -i, cat redirects. Commands it cannot confidently parse (chmod, ln, rsync, dd, git state changes) deliberately keep the plain terminal card, on the author's stated rule that a missed card beats a wrong one. A bash-derived diff is parsed from the command text and the tool output, not from filesystem access, and the card says so in a footnote.

Details

Alternatives

CkEFFAF/dsh-plugin-devkit · BrambleXu/dsh-revdiff · omdsh-dev/dsh-tool-diff

More plugins in Coding & Development

Browse more in Coding & Development

Guides for Coding & Development plugins