Expand description
mushroomdb install / uninstall — wire the /mushroom skill and MCP
server into Claude Code and Cursor.
§Design notes
- No network: writes local config only; binary is already on disk.
- Idempotent: running install twice is a no-op (exit 0).
- Non-destructive: refuses to overwrite user files install didn’t create.
- Manifest-driven uninstall: tracks every file written; removes exactly what install created.
§User-scope MCP config location (verified 2026-09-02 by live inspection)
Claude Code user-level MCP servers live in ~/.claude.json under the
top-level "mcpServers" key. This was verified empirically on a live
Claude Code install: ~/.claude/settings.json holds env/permissions/hooks
but NO mcpServers key. Cursor uses ~/.cursor/mcp.json (same format as
project-level .cursor/mcp.json).
Structs§
- Install
Opts - Options parsed from
mushroomdb install [flags]ormushroomdb uninstall [flags].
Enums§
- Binary
Location - How the MCP server entry (and the skill’s bootstrap commands) invoke mushroomdb.
- Platform
- Which assistant platform(s) to wire up.
Functions§
- classify_
binary_ location - Pure classifier behind
detect_binary_location: decide whether themushroomdbthat PATH resolves to is the executable now running. - detect_
binary_ location - Decide how the MCP entry should invoke mushroomdb, from the real environment.
- run_
install - Install the /mushroom skill and MCP server entry for the resolved platforms.
- run_
install_ with - Like
run_install, but with the binary location supplied by the caller instead of detected from PATH /current_exe. Tests use this to stay deterministic;run_installis the real-environment wrapper. - run_
uninstall - Uninstall: remove exactly what install wrote. Reads the manifest.