Kantoor.MCP.Entry (Kantoor v1.0.0)

One operation of the MCP catalogue. An entry is the single source of truth for the tool schema, its authorisation, its dry-run preview and its dispatch to a Kantoor context function.

  • scope — :read, :write or :admin. The OAuth token must carry the scope, and an :admin operation also needs the person to be an administrator right now.
  • min_role — :user (any signed-in person) or :admin.
  • destructive — a delete, a send, a DNS publication, provisioning or a credential: without confirm: true the call returns a dry-run preview.
  • paginate — the result is a list; limit/offset apply.
  • preview — optional (interface, args) -> String.t() describing what a destructive call would do.
  • dispatch — (interface, args) -> term() calling the same context function the web interface uses.

Summary

Types

t()

@type t() :: %Kantoor.MCP.Entry{
  description: term(),
  destructive: term(),
  dispatch: term(),
  domain: term(),
  input_schema: term(),
  min_role: term(),
  name: term(),
  paginate: term(),
  preview: term(),
  scope: term(),
  summary: term()
}