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§
- Canonical
Record Status - McpClient
Status - McpRuntime
Probe - McpStatus
Diagnosis - McpStatus
Snapshot - Target
Outcome - Target
Status
Enums§
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
DiffLoreinstalled. 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