mcp

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 the MCP client with additional functionality

func New

func New(mcp *client.MCP) *Client

New creates a new MCP client wrapper

func (*Client) CallTool

func (c *Client) CallTool(serverName, toolName string, args map[string]interface{}) ([]protocol.Content, error)

CallTool calls a tool on an MCP server

func (*Client) Connect

func (c *Client) Connect() error

Connect establishes connections to MCP servers and starts discovery

func (*Client) GetTools

func (c *Client) GetTools() map[string][]protocol.Tool

GetTools returns a copy of all available tools

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL