features

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSession = errors.New("no session")
)

Functions

This section is empty.

Types

type ServerFeatures

type ServerFeatures struct {
	Session *mcp.ClientSession
	Out     *os.File
}

func (ServerFeatures) CallTool

func (s ServerFeatures) CallTool(ctx context.Context, tool, data string) error

func (ServerFeatures) CallTool1

func (s ServerFeatures) CallTool1(ctx context.Context, tool string, params map[string]any) error

func (ServerFeatures) CallTool2

func (s ServerFeatures) CallTool2(ctx context.Context, tool string, arguments string) (mcp.Content, error)

func (ServerFeatures) GetPrompt

func (s ServerFeatures) GetPrompt(ctx context.Context, prompt, data string) error

func (ServerFeatures) GetPrompt1

func (s ServerFeatures) GetPrompt1(ctx context.Context, prompt string, params map[string]string) error

func (ServerFeatures) ListPrompts

func (s ServerFeatures) ListPrompts(ctx context.Context) ([]*mcp.Prompt, error)

func (ServerFeatures) ListResources

func (s ServerFeatures) ListResources(ctx context.Context) ([]*mcp.Resource, error)

func (ServerFeatures) ListTools

func (s ServerFeatures) ListTools(ctx context.Context) ([]*mcp.Tool, error)

func (ServerFeatures) PrintPrompts

func (s ServerFeatures) PrintPrompts(ctx context.Context) error

func (ServerFeatures) PrintResources

func (s ServerFeatures) PrintResources(ctx context.Context) error

func (ServerFeatures) PrintTools

func (s ServerFeatures) PrintTools(ctx context.Context) error

func (ServerFeatures) ReadResource

func (s ServerFeatures) ReadResource(ctx context.Context, resource string) error

Jump to

Keyboard shortcuts

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