barrel_server_mcp_tools (barrel_server v1.0.1)
View SourceThe core MCP tools: databases, documents, BQL, search, the changes feed, and the timeline (branch/merge). Every handler is arity 2; the Ctx carries the authenticated principal, which barrel_server_mcp_auth:allow/3 checks against the database and right each tool touches. Denials come back as isError tool results, not protocol errors: agents recover better from content they can read.
Writes thread provenance through write_opts/2 (actor = subject, session = MCP session or the session argument, source = mcp), the single seam every MCP write shares.
Summary
Functions
The write options of an MCP write: provenance from the authenticated principal.
Functions
The write options of an MCP write: provenance from the authenticated principal.