Expand description
Installer / uninstaller for AgentSec.
Patches ~/.claude.json (MCP entry) and ~/.claude/settings.json (hooks).
All public functions accept Paths so tests can redirect paths via the
standard env-override mechanism.
§Dry-run default
Both install and uninstall accept a plan with an apply: bool
field. When apply is false (the default) the functions compute what
would change and return a report, but no file is written and no backup
is created. Real writes only happen when apply is true.
Structs§
- Install
Plan - Parameters for an install operation.
- Install
Report - Report returned by
installoruninstall. - Mutation
Change - A single file-level mutation.
- Uninstall
Plan - Parameters for an uninstall operation.
Enums§
- Change
Kind - Kind of change produced by an install/uninstall operation.
- Install
Scope - Scope for the MCP entry and hook install.