tools

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(s *server.MCPServer, st *store.Store, projectRoot string) func(bool)

Register registers all tools and returns a func(bool) to set the indexing flag. Callers should pass true before a cold-start background index and false (via defer) when it finishes.

func RegisterWithProfile added in v0.2.2

func RegisterWithProfile(s *server.MCPServer, st *store.Store, projectRoot string, profile ToolProfile) func(bool)

RegisterWithProfile registers the MCP tools selected by profile and returns a func(bool) to set the indexing flag.

func RegisterWithProfileOpts added in v0.2.2

func RegisterWithProfileOpts(s *server.MCPServer, st *store.Store, projectRoot string, profile ToolProfile, opts RegisterOpts) func(bool)

RegisterWithProfileOpts is like RegisterWithProfile but accepts opt-in tool flags.

func RegisterWorkspace

func RegisterWorkspace(s *server.MCPServer, w *workspace.Workspace) func(bool)

RegisterWorkspace registers all tools for a workspace and returns the same indexing-flag setter.

func RegisterWorkspaceWithProfile added in v0.2.2

func RegisterWorkspaceWithProfile(s *server.MCPServer, w *workspace.Workspace, profile ToolProfile) func(bool)

RegisterWorkspaceWithProfile registers the MCP tools selected by profile for a workspace and returns the same indexing-flag setter.

func RegisterWorkspaceWithProfileOpts added in v0.2.2

func RegisterWorkspaceWithProfileOpts(s *server.MCPServer, w *workspace.Workspace, profile ToolProfile, opts RegisterOpts) func(bool)

RegisterWorkspaceWithProfileOpts is like RegisterWorkspaceWithProfile but accepts opt-in tool flags.

Types

type RegisterOpts added in v0.2.2

type RegisterOpts struct {
	EnableEmbeddings bool
	EnableEnrichment bool
}

RegisterOpts configures which opt-in LLM callout tools are registered. Both default to false — tools are not registered unless explicitly enabled.

type ToolProfile added in v0.2.2

type ToolProfile string

ToolProfile selects the MCP tool surface exposed to an agent.

const (
	ToolProfileCompact ToolProfile = "compact"
)

func ParseToolProfile added in v0.2.2

func ParseToolProfile(raw string) (ToolProfile, error)

ParseToolProfile normalizes user input to ToolProfileCompact.

Jump to

Keyboard shortcuts

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