mcp

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Servers map[string]ServerConfig `json:"mcpServers"`
}

type Manager

type Manager struct {
	*Config
	// contains filtered or unexported fields
}

func Load

func Load(path string) (*Manager, error)

func New

func New(cfg *Config) *Manager

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) Connect

func (m *Manager) Connect(ctx context.Context) error

func (*Manager) Tools

func (m *Manager) Tools(ctx context.Context) ([]tool.Tool, error)

type ServerConfig

type ServerConfig struct {
	Transport string `json:"transport,omitempty"`

	URL string `json:"url,omitempty"`

	Command string   `json:"command,omitempty"`
	Args    []string `json:"args,omitempty"`

	Headers map[string]string `json:"headers,omitempty"`
}

Jump to

Keyboard shortcuts

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