Skip to main content

Module exec

Module exec 

Source
Expand description

Shared executable-path resolution.

A single source of truth for turning a command (bare program name or path) into the absolute, symlink-resolved binary that will actually be executed. Used by both install-time MCP pinning (mur agent mcp pin) and the runtime startup verification (B0 rules 6 & 11) so a bare command like node resolves identically across the two passes — otherwise the runtime hashes a CWD-relative path that doesn’t exist and silently skips the pin/signature check while Command::new runs the PATH-resolved binary.

Functions§

bundled_mcp_server_path
Canonical location MUR keeps its own copy of the MCP server binary: ~/.mur/mcp-servers/mur-mcp-server (honors $MUR_HOME). Stable across how mur itself was installed (brew / cargo / source) and across upgrades, so agent profiles can pin this path once and never go stale.
ensure_bundled_mcp_server
Ensure bundled_mcp_server_path exists and matches the mur-mcp-server shipped alongside the running mur binary, copying it into place when missing or out of date. Returns the canonical target path.
resolve_command
Resolve command to an absolute path on disk.