Help us shape the future of Go! Take the 2026 Go Developer Survey

mcptools

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package mcptools connects explicitly configured local MCP servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	Specs []model.ToolSpec
	// contains filtered or unexported fields
}

func Start

func Start(ctx context.Context, root string, cfg []config.MCPServer, stderr io.Writer) (*Registry, error)

Start validates and connects all configured servers, building a fixed catalog.

func (*Registry) Call

func (r *Registry) Call(ctx context.Context, name, raw string) (string, bool)

Call executes only a catalogued tool, preserving the original JSON values.

func (*Registry) Close

func (r *Registry) Close()

type Tool

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

Jump to

Keyboard shortcuts

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