Kantoor.MCP.Registry (Kantoor v1.0.0)

The MCP operation catalogue: every domain contributes its entries, and this module answers the whole list, one entry by name, and what one identity may see.

A tool name is unique across domains and is the same word the web interface uses for the act (list_domains, delete_mailbox, publish_dns), so an AI client and the person reading the manual talk about the same thing.

Summary

Functions

Every registered operation.

The tool groups (registry domains).

The operation named name, or nil.

The catalogue as text for the server instructions, grouped by domain.

The entries this identity may see and run.

Functions

all()

@spec all() :: [Kantoor.MCP.Entry.t()]

Every registered operation.

domains()

@spec domains() :: [String.t()]

The tool groups (registry domains).

find(name)

@spec find(String.t()) :: Kantoor.MCP.Entry.t() | nil

The operation named name, or nil.

index_text(entries)

@spec index_text([Kantoor.MCP.Entry.t()]) :: String.t()

The catalogue as text for the server instructions, grouped by domain.

visible_to(interface)

@spec visible_to(Kantoor.MCP.Interface.t()) :: [Kantoor.MCP.Entry.t()]

The entries this identity may see and run.