Versions in this module Expand all Collapse all v0 v0.5.0 Apr 26, 2026 Changes in this version + type Client struct + func New(name, version string, opts *Options) *Client + func (c *Client) Connect(ctx context.Context, transport mcp.Transport, opts *mcp.ClientSessionOptions) (*Session, error) + func (c *Client) ConnectCommand(ctx context.Context, cmd *exec.Cmd, opts *mcp.ClientSessionOptions) (*Session, error) + func (c *Client) MCPClient() *mcp.Client + type Options struct + ClientOptions *mcp.ClientOptions + type Session struct + func (s *Session) CallTool(ctx context.Context, name string, args map[string]any) (*mcp.CallToolResult, error) + func (s *Session) Close() error + func (s *Session) GetPrompt(ctx context.Context, name string, args map[string]string) (*mcp.GetPromptResult, error) + func (s *Session) ID() string + func (s *Session) InitializeResult() *mcp.InitializeResult + func (s *Session) ListPrompts(ctx context.Context) ([]*mcp.Prompt, error) + func (s *Session) ListResources(ctx context.Context) ([]*mcp.Resource, error) + func (s *Session) ListTools(ctx context.Context) ([]*mcp.Tool, error) + func (s *Session) MCPSession() *mcp.ClientSession + func (s *Session) ReadResource(ctx context.Context, uri string) (*mcp.ReadResourceResult, error) + func (s *Session) Wait() error