Documentation
¶
Index ¶
- Variables
- type ServerFeatures
- func (s ServerFeatures) CallTool(ctx context.Context, tool, data string) error
- func (s ServerFeatures) CallTool1(ctx context.Context, tool string, params map[string]any) error
- func (s ServerFeatures) CallTool2(ctx context.Context, tool string, arguments string) (mcp.Content, error)
- func (s ServerFeatures) GetPrompt(ctx context.Context, prompt, data string) error
- func (s ServerFeatures) GetPrompt1(ctx context.Context, prompt string, params map[string]string) error
- func (s ServerFeatures) ListPrompts(ctx context.Context) ([]*mcp.Prompt, error)
- func (s ServerFeatures) ListResources(ctx context.Context) ([]*mcp.Resource, error)
- func (s ServerFeatures) ListTools(ctx context.Context) ([]*mcp.Tool, error)
- func (s ServerFeatures) PrintPrompts(ctx context.Context) error
- func (s ServerFeatures) PrintResources(ctx context.Context) error
- func (s ServerFeatures) PrintTools(ctx context.Context) error
- func (s ServerFeatures) ReadResource(ctx context.Context, resource string) error
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) GetPrompt ¶
func (s ServerFeatures) GetPrompt(ctx context.Context, prompt, data string) error
func (ServerFeatures) GetPrompt1 ¶
func (ServerFeatures) ListPrompts ¶
func (ServerFeatures) ListResources ¶
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
Click to show internal directories.
Click to hide internal directories.