Versions in this module Expand all Collapse all v0 v0.82.2 Jul 27, 2026 v0.82.1 Jul 26, 2026 v0.82.0 Jul 25, 2026 v0.0.3 May 31, 2026 Changes in this version + func AttachContextOrStderr(ctx context.Context, err error, stderr *StderrBuffer) error + func AttachNotifications(result map[string]any, notifications []RPCEnvelope) + func AttachStderr(err error, stderr *StderrBuffer) error + func IDMatches(value any, want int) bool + func RunCallTool(options Options, name string, arguments map[string]any) (map[string]any, error) + func RunListTools(options Options) (map[string]any, error) + func RunRequest(options Options, method string, params map[string]any) (map[string]any, error) + func WriteNotification(writer io.Writer, method string, params any) error + func WriteRequest(writer io.Writer, id int, method string, params any) error + type Options struct + Command []string + Env map[string]string + Hooks ProcessHooks + Timeout time.Duration + type ProcessHooks struct + ClientVersion string + ConfigureCommand func(*exec.Cmd) + ForceKillDelay time.Duration + KillProcess func(*os.Process) error + type RPCEnvelope struct + Error *RPCError + ID any + JSONRPC string + Method string + Params any + Result json.RawMessage + func ReadResponse(reader *bufio.Scanner, id int) (map[string]any, []RPCEnvelope, error) + type RPCError struct + Code int + Message string + type StderrBuffer struct + func (b *StderrBuffer) String() string + func (b *StderrBuffer) Write(data []byte) (int, error)