client

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCachedDialer

func NewCachedDialer(client *Client, logger *slog.Logger) appmcp.Dialer

Types

type Client

type Client struct{}

func New

func New() *Client

func (*Client) Connect

func (c *Client) Connect(ctx context.Context, target appmcp.Target) (*Session, error)

type Session

type Session struct {
	// contains filtered or unexported fields
}

func (*Session) CallTool

func (s *Session) CallTool(ctx context.Context, name string, arguments json.RawMessage) (json.RawMessage, error)

func (*Session) Close

func (s *Session) Close(context.Context)

func (*Session) GetPrompt

func (s *Session) GetPrompt(ctx context.Context, name string, arguments map[string]string) (json.RawMessage, error)

func (*Session) ListPrompts

func (s *Session) ListPrompts(ctx context.Context) ([]appmcp.Prompt, error)

func (*Session) ListResourceTemplates

func (s *Session) ListResourceTemplates(ctx context.Context) ([]appmcp.ResourceTemplate, error)

func (*Session) ListResources

func (s *Session) ListResources(ctx context.Context) ([]appmcp.Resource, error)

func (*Session) ListTools

func (s *Session) ListTools(ctx context.Context) ([]appmcp.Tool, error)

func (*Session) Ping

func (s *Session) Ping(ctx context.Context) error

func (*Session) ReadResource

func (s *Session) ReadResource(ctx context.Context, uri string) (json.RawMessage, error)

func (*Session) SupportsPrompts

func (s *Session) SupportsPrompts() bool

func (*Session) SupportsResources

func (s *Session) SupportsResources() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL