Ectomancer.Igniter (Ectomancer v1.7.0)

Copy Markdown View Source

Igniter installer for Ectomancer.

This module provides the installer callback used by mix igniter.install ectomancer. It reuses the existing Ectomancer.Installer.* modules for discovery, generation, and configuration updates, while using Igniter utilities for supervision tree patching.

Igniter handles adding {:ectomancer, "~> 1.5"} to mix.exs automatically — this installer focuses on the remaining setup steps.

Usage

mix igniter.install ectomancer

The installer will:

  1. Check for required dependencies (Ecto, Plug)
  2. Discover Ecto schemas in your project
  3. Prompt you to select which schemas to expose
  4. Generate an MCP module exposing the selected schemas
  5. Configure Ectomancer in config/config.exs
  6. Add the MCP route to your Phoenix router
  7. Add the Anubis supervisor to your application supervision tree

Summary

Functions

Igniter installer callback.

Functions

install(igniter, opts)

@spec install(
  Igniter.t(),
  keyword()
) :: Igniter.t()

Igniter installer callback.

Called by mix igniter.install ectomancer after the dependency is added. Returns a modified %Igniter{} struct with accumulated changes.