sdkclient

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MPL-2.0 Imports: 22 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(
	clientInfo mcpServer.ClientInfo,
) (*Factory, error)

func NewFactoryWithLogger

func NewFactoryWithLogger(
	clientInfo mcpServer.ClientInfo,
	logger *slog.Logger,
) (*Factory, error)

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,
) (*mcpServer.InvokeMCPToolResponseBody, error)

func (*Session) Close

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

func (*Session) Discover

func (*Session) GetPrompt

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

func (*Session) ReadResource

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

Jump to

Keyboard shortcuts

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