Package com.shaft.commandline.mcp


package com.shaft.commandline.mcp
  • Class
    Description
    Base MCP client that owns the JSON-RPC framing and the initialize / notifications/initialized handshake.
    The result of a tools/call. shaft-mcp returns {"content":[{"type":"text","text":"..."}],"isError":false} on both transports.
    A single MCP content block returned inside a CallToolResult. shaft-mcp emits {"type":"text","text":"..."} blocks; the text is frequently a JSON string itself.
    MCP client speaking streamable HTTP to a persistent shaft-mcp daemon (session mode).
    The negotiated result of the MCP initialize handshake.
    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 returns tools/list and tools/call results over HTTP as a single SSE message event:
    MCP client speaking newline-delimited JSON-RPC over a child process's stdio (one-shot mode).
    A tool advertised by shaft-mcp via tools/list.