Skip to main content

Module mcp_install

Module mcp_install 

Source
Expand description

MCP installer: registers difflore as an MCP server with every detected AI coding tool, in one shot. Public entry points are install_all, uninstall_all, status, collect_status_snapshot, detect_install_drift, and maybe_print_mcp_hint.

Detect + install + uninstall are all driven by the single AGENTS table in registry.rs (one [registry::AgentSpec] row per surface). The drivers delegate to the leaf format engines — json_config.rs, goose_yaml.rs, hooks_install.rs — and shared path / record helpers live in common.rs. Adding an agent means adding one AGENTS row, not touching a probe table, a per-agent install fn, an install/uninstall dispatch list, and the name/UX maps.

Structs§

CanonicalRecordStatus
McpClientStatus
McpRuntimeProbe
McpStatusDiagnosis
McpStatusSnapshot
TargetOutcome
TargetStatus

Enums§

CanonicalRecordState
InstallState
RuntimeProbeState
Status

Functions§

collect_status_snapshot
collect_status_snapshot_with_runtime_probe
detect_install_drift
Names of AI-agent surfaces detected on this machine that don’t yet have DiffLore installed. Empty means everything wireable is wired.
detect_install_repair_targets
Client display names whose MCP wiring can be refreshed by rerunning the idempotent installer. Includes classic drift (detected but not installed/conflicting) plus canonical-record drift such as hooks that exist on disk but were not captured in ~/.difflore/mcp.json.
install_all
maybe_print_mcp_hint
status
uninstall_all
update_all