Package com.shaft.commandline.mcp
package com.shaft.commandline.mcp
-
ClassDescriptionBase MCP client that owns the JSON-RPC framing and the
initialize/notifications/initializedhandshake.The result of atools/call. shaft-mcp returns{"content":[{"type":"text","text":"..."}],"isError":false}on both transports.A single MCP content block returned inside aCallToolResult. shaft-mcp emits{"type":"text","text":"..."}blocks; thetextis frequently a JSON string itself.MCP client speaking streamable HTTP to a persistent shaft-mcp daemon (session mode).The negotiated result of the MCPinitializehandshake.A minimal MCP client speaking JSON-RPC 2.0 to shaft-mcp.Raised when an MCP interaction fails: a JSON-RPC protocol error, a transport failure, or a tool-level error result.Extracts the JSON payload from a Server-Sent Events response body. shaft-mcp returnstools/listandtools/callresults over HTTP as a single SSEmessageevent:MCP client speaking newline-delimited JSON-RPC over a child process's stdio (one-shot mode).A tool advertised by shaft-mcp viatools/list.