Documentation
¶
Index ¶
- type MCPClient
- func (srv *MCPClient) GetClient(ctx context.Context, runContext map[string]any) (*MCPClient, error)
- func (srv *MCPClient) GetName() string
- func (srv *MCPClient) GetTools(opts ...McpServerOption) []core.Tool
- func (srv *MCPClient) ListTools(ctx context.Context, runContext map[string]any) ([]core.Tool, error)
- type McpServerOption
- type McpTool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MCPClient ¶
type MCPClient struct {
Endpoint string `json:"-"`
Headers map[string]string `json:"-"`
Client *client.Client `json:"-"`
Tools []mcp.Tool `json:"-"`
Meta *mcp.Meta `json:"-"`
ToolFilter []string `json:"-"`
ApprovalRequiredTools []string `json:"-"`
}
func NewInProcessMCPServer ¶
func NewSSEClient ¶
type McpServerOption ¶
type McpServerOption func(*MCPClient)
func WithApprovalRequiredTools ¶
func WithApprovalRequiredTools(tools ...string) McpServerOption
func WithHeaders ¶
func WithHeaders(headers map[string]string) McpServerOption
func WithToolFilter ¶
func WithToolFilter(toolFilter ...string) McpServerOption
type McpTool ¶
func NewMcpTool ¶
func (*McpTool) Execute ¶
func (c *McpTool) Execute(ctx context.Context, params *responses.FunctionCallMessage) (*responses.FunctionCallOutputMessage, error)
Click to show internal directories.
Click to hide internal directories.