mcp

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 8 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
}

func New

func New(config *Config) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) Tools

func (c *Client) Tools(ctx context.Context) ([]tool.Tool, error)

type Config

type Config struct {
	Servers map[string]Server `json:"servers" yaml:"servers"`
}

func Parse

func Parse(path string) (*Config, error)

type Server

type Server struct {
	Type string `json:"type" yaml:"type"`

	URL     string            `json:"url" yaml:"url"`
	Headers map[string]string `json:"headers" yaml:"headers"`

	Command string            `json:"command" yaml:"command"`
	Env     map[string]string `json:"env" yaml:"env"`
	Args    []string          `json:"args" yaml:"args"`
}

Jump to

Keyboard shortcuts

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