Wraith.Tools (Wraith v0.1.0)

View Source

Everything an agent can do to the site — the one MCP tool registry. Served two ways: to the studio agent over the bridge (Wraith.Studio.Tools delegates here) and to any MCP client over HTTP at /mcp (WraithWeb.McpController), authenticated with an API key.

Every admin screen's action has a tool. Read-only tools carry the MCP readOnlyHint annotation; a Content (read-only) key only sees those. Destructive ones carry destructiveHint.

context is %{"user_id" => id, "scope" => "admin" | "content"} — writes are made as that user.

Summary

Functions

Every MCP tool: name, description, JSON schema and MCP annotations.

Tool names visible to ctx; with no ctx, every tool in the catalogue.

Functions

catalogue()

Every MCP tool: name, description, JSON schema and MCP annotations.

names(ctx \\ nil)

Tool names visible to ctx; with no ctx, every tool in the catalogue.

read_only?(arg1)