Skip to main content
Reference · Information

senkani init

Live

Register MCP server + hooks with Claude Code. Idempotent.

Syntax

senkani init [--hooks-only]

Behavior

Writes the hook binary to `~/.senkani/bin/senkani-hook`, appends an MCP server entry to `~/.claude/settings.json`, and registers PreToolUse + PostToolUse hooks with matcher `Read|Bash|Grep|Write|Edit`. `--hooks-only` skips the MCP entry for Cursor / Copilot users.

Example

$ senkani init            # Claude Code
$ senkani init --hooks-only   # Cursor / Copilot

Flags

Flag
Description
--hooks-only
Skip MCP server registration.
--dry-run
Print intended changes without writing.
Source: Sources/CLI/InitCommand.swift