Versions in this module Expand all Collapse all v0 v0.0.3 Mar 26, 2026 v0.0.1 Mar 24, 2026 Changes in this version + type Client struct + func StartProcess(ctx context.Context, cfg ProcessConfig) (*Client, error) + func (c *Client) Call(ctx context.Context, method string, params any, out any) error + func (c *Client) Close() error + func (c *Client) HandleRequest(method string, fn func(ctx context.Context, req Request) (any, *RPCError)) + func (c *Client) Initialize(ctx context.Context, info ClientInfo, experimental bool) (string, error) + func (c *Client) InitializeWithOptions(ctx context.Context, info ClientInfo, opts InitializeOptions) (string, error) + func (c *Client) Notify(ctx context.Context, method string, params any) error + func (c *Client) OnNotification(fn func(method string, params json.RawMessage)) + type ClientInfo struct + Name string + Title string + Version string + type InitializeCapabilities struct + ExperimentalAPI bool + OptOutNotificationMethods []string + type InitializeOptions struct + ExperimentalAPI bool + OptOutNotificationMethods []string + type Notification struct + Method string + Params json.RawMessage + type ProcessConfig struct + Args []string + Command string + Env []string + OnProcessExit func(err error) + OnStderr func(line string) + WebSocketURL string + type RPCError struct + Code int + Data json.RawMessage + Message string + type Request struct + ID json.RawMessage + Method string + Params json.RawMessage + type Response struct + Error *RPCError + ID json.RawMessage + Result json.RawMessage