Wraith. Kiro. MCP behaviour
(Wraith v0.1.0)
View Source
The MCP plumbing for the studio tool server (JSON-RPC 2.0 over
Streamable HTTP with plain JSON replies): initialize, ping,
tools/list, tools/call. A server is a module with
@callback tools(context) :: [tool_spec]
@callback call(context, name, arguments) :: result_mapwhere context is whatever handle/4 is given.
handle/4 takes one decoded JSON-RPC message and returns the reply, or
nil for notifications.
Summary
Callbacks
Optional: resources/read — {:ok, [%{uri, mimeType, text}]} | :error.
Optional: resources/list — [%{uri, name, description, mimeType}].
Callbacks
Optional: resources/read — {:ok, [%{uri, mimeType, text}]} | :error.
Optional: resources/list — [%{uri, name, description, mimeType}].