Skip to main content

Module tools

Module tools 

Source
Available on crate feature mcp only.
Expand description

MCP tool definitions + in-process dispatch (issue #420).

Every tool is a thin shape-adapter over an existing faucet capability — registry (list / schema), init_template (scaffold), expand / topology (validate), preview, and run_from_yaml_str (the one gated mutating tool). No pipeline logic is re-implemented here.

Functions§

call_tool
Dispatch a tools/call. Returns the MCP tools/call result envelope (content + isError). A tool-level failure is tool_error(..), not a JSON-RPC protocol error.
tool_defs
Build the advertised tool list for tools/list, honoring the mutation gate.