Public declaration syntax from forge-go/mcp/client.go Original source SHA-256: d36d5568aade9c2b7312d1a5471403ffbdd828873635fe49d3384f2000a81cb4 Function bodies and constant values are omitted. This is not the complete implementation. Source line 12 type McpClientConfig struct Source line 29 type McpClient struct Source line 39 func NewMcpClient(transport McpTransport, oauth *OAuthConfig) *McpClient Source line 57 func NewMcpClientFromConfig(config McpClientConfig) (*McpClient, error) Source line 81 func (c *McpClient) Connect(ctx context.Context) (McpCapabilities, error) Source line 138 func (c *McpClient) ListTools(ctx context.Context) ([]McpToolDescriptor, error) Source line 174 func (c *McpClient) CallTool(ctx context.Context, name string, arguments any) (json.RawMessage, error) Source line 206 func (c *McpClient) ListResources(ctx context.Context) ([]McpResource, error) Source line 240 func (c *McpClient) GetResource(ctx context.Context, uri string) (json.RawMessage, error) Source line 268 func (c *McpClient) ListPrompts(ctx context.Context) ([]McpPrompt, error) Source line 303 func (c *McpClient) GetPrompt(ctx context.Context, name string, arguments map[string]string) (json.RawMessage, error) Source line 324 func (c *McpClient) Disconnect() error Source line 331 func (c *McpClient) Capabilities() McpCapabilities