Add pack diff command

This commit is contained in:
server
2026-04-14 12:16:41 +02:00
parent 0a3e975431
commit aca8a675d2
6 changed files with 180 additions and 0 deletions

View File

@@ -89,6 +89,12 @@ def pack_build(
)
@mcp.tool()
def pack_diff(left: str, right: str) -> dict[str, Any]:
"""Diff two directories and/or .m2p archives using normalized paths and plaintext hashes."""
return _run_cli("diff", "--left", left, "--right", right)
@mcp.tool()
def pack_list(archive: str) -> dict[str, Any]:
"""List entries in an .m2p archive."""