Documentation
¶
Index ¶
- type Proxy
- func (p *Proxy) CallTool(ctx context.Context, name string, args map[string]interface{}, ...) (*mcpschema.CallToolResult, error)
- func (p *Proxy) ListAllTools(ctx context.Context, opts ...mcpclient.RequestOption) ([]mcpschema.Tool, error)
- func (p *Proxy) ResumeTool(ctx context.Context, name string, args, inputResponses map[string]interface{}, ...) (*mcpschema.CallToolResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy wraps an MCP client to normalize tool names and provide simple helpers.
func (*Proxy) CallTool ¶
func (p *Proxy) CallTool(ctx context.Context, name string, args map[string]interface{}, opts ...mcpclient.RequestOption) (*mcpschema.CallToolResult, error)
CallTool normalizes name and dispatches to the underlying client.
func (*Proxy) ListAllTools ¶
func (p *Proxy) ListAllTools(ctx context.Context, opts ...mcpclient.RequestOption) ([]mcpschema.Tool, error)
ListAllTools returns all tools for the server by paging through cursors.
func (*Proxy) ResumeTool ¶ added in v0.1.23
func (p *Proxy) ResumeTool(ctx context.Context, name string, args, inputResponses map[string]interface{}, requestState string, opts ...mcpclient.RequestOption) (*mcpschema.CallToolResult, error)
ResumeTool resubmits a July input-required tool call with the opaque request state and collected responses returned by the server.
Click to show internal directories.
Click to hide internal directories.