Skip to main content

ensure_bundled_mcp_server

Function ensure_bundled_mcp_server 

Source
pub fn ensure_bundled_mcp_server() -> Result<PathBuf>
Expand description

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.

Source resolution: the sibling of the current executable first (brew, cargo and source builds all colocate the two binaries), then mur-mcp-server on PATH. If no source is found but a copy already exists, that copy is returned (usable, just can’t self-update). Errors only when there is neither a source nor an existing copy.

Call this BEFORE the kernel sandbox seals — the copy needs write access to ~/.mur.