toolsets

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package toolsets names the groups of MCP tools an operator can enable.

The selection is enforced server-side: a toolset that is not enabled is never registered, so no client, model or prompt can reach it. The default is the read-only core toolset; everything else is opt-in.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() []string

Default is the toolset selection used when the operator does not choose one.

func Names

func Names() []string

Names returns the valid toolset names.

func Register

func Register(server *mcp.Server, scope tools.Scope, names []string) error

Register adds the named toolsets to server, bound to scope.

func Validate

func Validate(names []string) error

Validate rejects unknown toolset names, listing the valid ones.

Types

type Toolset

type Toolset struct {
	Name        string
	Description string
	Register    func(*mcp.Server, tools.Scope)
}

Toolset is a named group of MCP tools that is enabled or disabled as a unit.

func AllToolsets

func AllToolsets() []Toolset

AllToolSets returns every toolset, in registration order.

Jump to

Keyboard shortcuts

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