Documentation
¶
Index ¶
- func Register(s *server.MCPServer, st *store.Store, projectRoot string) func(bool)
- func RegisterWithProfile(s *server.MCPServer, st *store.Store, projectRoot string, profile ToolProfile) func(bool)
- func RegisterWithProfileOpts(s *server.MCPServer, st *store.Store, projectRoot string, profile ToolProfile, ...) func(bool)
- func RegisterWorkspace(s *server.MCPServer, w *workspace.Workspace) func(bool)
- func RegisterWorkspaceWithProfile(s *server.MCPServer, w *workspace.Workspace, profile ToolProfile) func(bool)
- func RegisterWorkspaceWithProfileOpts(s *server.MCPServer, w *workspace.Workspace, profile ToolProfile, ...) func(bool)
- type RegisterOpts
- type ToolProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
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 ¶
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
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.