Documentation
¶
Index ¶
- type Client
- func (c *Client) CallTool(r mcp.CallToolParams) (*mcp.CallToolResult, error)
- func (c *Client) GetPrompt(r mcp.GetPromptParams) (*mcp.GetPromptResult, error)
- func (c *Client) ListAllPrompts(r ListAllPromptsParams) (*ListAllPromptsResult, error)
- func (c *Client) ListAllResources(r ListAllResourcesParams) (*ListAllResourcesResult, error)
- func (c *Client) ListAllTools(r ListAllToolsParams) (*ListAllToolsResult, error)
- func (c *Client) ListPrompts(r mcp.ListPromptsParams) (*mcp.ListPromptsResult, error)
- func (c *Client) ListResources(r mcp.ListResourcesParams) (*mcp.ListResourcesResult, error)
- func (c *Client) ListTools(r mcp.ListToolsParams) (*mcp.ListToolsResult, error)
- func (c *Client) Ping() bool
- func (c *Client) ReadResource(r mcp.ReadResourceParams) (*mcp.ReadResourceResult, error)
- type ClientConfig
- type ListAllPromptsParams
- type ListAllPromptsResult
- type ListAllResourcesParams
- type ListAllResourcesResult
- type ListAllToolsParams
- type ListAllToolsResult
- type MCP
- type MCPInstance
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
}
Client wraps an MCP client session
func (*Client) CallTool ¶
func (c *Client) CallTool(r mcp.CallToolParams) (*mcp.CallToolResult, error)
func (*Client) GetPrompt ¶
func (c *Client) GetPrompt(r mcp.GetPromptParams) (*mcp.GetPromptResult, error)
func (*Client) ListAllPrompts ¶
func (c *Client) ListAllPrompts(r ListAllPromptsParams) (*ListAllPromptsResult, error)
func (*Client) ListAllResources ¶
func (c *Client) ListAllResources(r ListAllResourcesParams) (*ListAllResourcesResult, error)
func (*Client) ListAllTools ¶
func (c *Client) ListAllTools(r ListAllToolsParams) (*ListAllToolsResult, error)
func (*Client) ListPrompts ¶
func (c *Client) ListPrompts(r mcp.ListPromptsParams) (*mcp.ListPromptsResult, error)
func (*Client) ListResources ¶
func (c *Client) ListResources(r mcp.ListResourcesParams) (*mcp.ListResourcesResult, error)
func (*Client) ListTools ¶
func (c *Client) ListTools(r mcp.ListToolsParams) (*mcp.ListToolsResult, error)
func (*Client) ReadResource ¶
func (c *Client) ReadResource(r mcp.ReadResourceParams) (*mcp.ReadResourceResult, error)
type ClientConfig ¶
type ClientConfig struct {
// Stdio
Path string
Args []string
Env map[string]string
Debug bool
// SSE and Streamable HTTP
BaseURL string
Timeout time.Duration
Headers map[string]string
}
ClientConfig represents the configuration for the MCP client
type ListAllPromptsParams ¶
type ListAllPromptsResult ¶
type ListAllResourcesParams ¶
type ListAllResourcesResult ¶
type ListAllToolsParams ¶
type ListAllToolsResult ¶
type MCPInstance ¶
type MCPInstance struct {
// contains filtered or unexported fields
}
MCPInstance represents an instance of the MCP module
func (*MCPInstance) Exports ¶
func (m *MCPInstance) Exports() modules.Exports
Exports defines the JavaScript-accessible functions
Click to show internal directories.
Click to hide internal directories.