kast-tool-rpc-complete is a one-shot process interface. Run it from the
Kotlin Gradle repository or worktree. Each invocation writes one JSON object
to stdout.
Discover
type: "catalog", catalog.schemaVersion: 2, and
catalog.tools[]. Each tool has name, description, inputSchema,
and effect (READ or WRITE). Re-read it after an upgrade.
Call
The command takes the tool name aftercall and one JSON object on stdin.
For a workspace-independent check:
health_check and stdin with the query example to
get compiler-backed symbols. Tool RPC exposes the same direct tool names as
MCP, including add_declaration. It does not expose
workspace_lifecycle.
Decode
The generated reply union is the process contract:
Decode
document using the selected tool’s generated response schema.
Unknown type or failure values are incompatible with this contract.
An empty qualified query does not prove absence.
Copilot CLI and Pi can use the installed adapters described in
the repository integration guide.