Dsh Mcp Diff
Fakek0f3sT/dsh-mcp-diff · tools
Uniform diff cards for every file mutation in DeepSeek Harness Web — MCP filesystem (editfile/writefile) and built-in edit/write, collapsed by default, with per-line highlighting.
★ 4GitHub stars
0Forks
2026-09-07Last updated
TypeScriptLanguage
MITLicense
Key features
- registers a toolview under the MCP keys and builds the diff from the server response (a ready unified diff with context and @@ headers) or from the call arguments when there is no response yet (write_file, a still-running edit_file)
- replace — a heredoc script that reads a file, .replace()s old/new triple-quoted blocks and writes it back: the card shows the file, real del/add lines and +N -M derived from those blocks
- also overrides the built-in edit / write, unifying their contextual hunks (a per-line LCS: shared lines read as neutral context instead of being doubled)
- renders move_file and create_directory as compact informational cards — source → destination, the created path, both workspace-relative — since they carry no diff lines
- makes every card's path openablea click hands it to the host's file opener (the same channel the native tool rows use), which resolves it against the session workspace and opens the file in your IDE/editor
Requirements
- The plugin imports only platform modules (react, ui-primitives, ui-slots, runtime/client) — ui-tool internals are not imported.
Install command
dsh plugin --profile web add github:Fakek0f3sT/dsh-mcp-diff