Documentation
¶
Index ¶
- type Client
- func (c *Client) CallTool(ctx context.Context, toolName string, arguments map[string]interface{}) (interface{}, error)
- func (c *Client) Connect(ctx context.Context) error
- func (c *Client) Disconnect(ctx context.Context) error
- func (c *Client) GetTools() []types.Tool
- func (c *Client) IsConnected() bool
- type MCPTool
- func (t *MCPTool) Description() string
- func (t *MCPTool) Execute(ctx context.Context, input map[string]interface{}) (interface{}, error)
- func (t *MCPTool) Metadata() types.ToolMetadata
- func (t *MCPTool) Name() string
- func (t *MCPTool) Schema() map[string]interface{}
- func (t *MCPTool) SetClient(client *Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CallTool ¶
func (c *Client) CallTool(ctx context.Context, toolName string, arguments map[string]interface{}) (interface{}, error)
CallTool calls a tool on the MCP server
func (*Client) Disconnect ¶
Disconnect disconnects from MCP server
type MCPTool ¶
type MCPTool struct {
// contains filtered or unexported fields
}
MCPTool MCP tool implementation
func NewMCPTool ¶
NewMCPTool creates a new MCP tool
func (*MCPTool) Description ¶
Description gets tool description
func (*MCPTool) Metadata ¶
func (t *MCPTool) Metadata() types.ToolMetadata
Metadata gets tool metadata
Click to show internal directories.
Click to hide internal directories.