mcp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mcp is the module serving the tools of configured MCP servers, the local browser's included.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraServer added in v0.2.0

type ExtraServer func(setup.Config) (setup.MCPServerConfig, bool)

ExtraServer is a server another module runs through MCP, like the browser.

type Module

type Module struct {
	// contains filtered or unexported fields
}

func New

func New(extra ExtraServer) *Module

func (*Module) Apply added in v0.2.0

func (m *Module) Apply(ctx context.Context, cfg setup.Config) error

Apply connects the servers that are new, changed or stopped, in parallel, and closes the ones removed or changed; the others keep their session. A server that fails to connect is reported in Status.

func (*Module) Close

func (m *Module) Close() error

func (*Module) Context

func (m *Module) Context() string

func (*Module) ID

func (m *Module) ID() string

func (*Module) Status added in v0.2.0

func (m *Module) Status(context.Context) modules.Status

func (*Module) Tools added in v0.2.0

func (m *Module) Tools() []tools.Executor

Jump to

Keyboard shortcuts

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