sdkclient

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

func NewFactory

func NewFactory() *Factory

func NewFactoryWithLogger

func NewFactoryWithLogger(logger *slog.Logger) *Factory

type Session

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

func (*Session) CallTool

func (s *Session) CallTool(
	ctx context.Context,
	toolName string,
	args map[string]any,
) (*spec.InvokeMCPToolResponseBody, error)

func (*Session) Close

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

func (*Session) Complete

func (*Session) Discover

func (s *Session) Discover(
	ctx context.Context,
	serverID spec.MCPServerID,
	defaultPolicy spec.MCPServerPolicy,
	trustLevel spec.MCPTrustLevel,
) (spec.MCPDiscoverySnapshot, error)

func (*Session) GetPrompt

func (s *Session) GetPrompt(
	ctx context.Context,
	name string,
	args map[string]string,
) (*spec.MCPGetPromptResponseBody, error)

func (*Session) Ping

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

func (*Session) ReadResource

func (s *Session) ReadResource(
	ctx context.Context,
	uri string,
) (*spec.MCPReadResourceResponseBody, error)

Jump to

Keyboard shortcuts

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