Documentation
¶
Index ¶
- func Register(s *server.MCPServer, st *store.Store, projectRoot string) func(bool)
- func RegisterWithOpts(s *server.MCPServer, st *store.Store, projectRoot string, opts RegisterOpts) func(bool)
- func RegisterWorkspaceWithOpts(s *server.MCPServer, w *workspace.Workspace, opts RegisterOpts) func(bool)
- type DriftAuditor
- type EntityReader
- type HistoryReader
- type RegisterOpts
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 RegisterWithOpts ¶ added in v0.3.0
func RegisterWithOpts(s *server.MCPServer, st *store.Store, projectRoot string, opts RegisterOpts) func(bool)
RegisterWithOpts registers the MCP tools with opt-in LLM callout flags and returns a func(bool) to set the indexing flag.
func RegisterWorkspaceWithOpts ¶ added in v0.3.0
func RegisterWorkspaceWithOpts(s *server.MCPServer, w *workspace.Workspace, opts RegisterOpts) func(bool)
RegisterWorkspaceWithOpts registers the MCP tools for a workspace, with opt-in LLM callout flags, and returns the indexing-flag setter.
Types ¶
type DriftAuditor ¶ added in v0.3.0
type DriftAuditor interface {
GetDriftFindings(opts store.DriftAuditOpts) ([]store.DriftFinding, error)
}
DriftAuditor is the drift-audit surface the tools layer consumes from a store.
GetDriftFindings is the single exported drift entry point — the ~20 find*/conflicting* helpers are package-private to internal/store and hide behind it — so drift consumers depend on this narrow interface instead of the whole *store.Store. That keeps the dependency honest (drift rendering needs nothing else from a store) and lets the rendering be unit-tested against a mock. *store.Store satisfies it; in workspace mode each project's *Store does.
type EntityReader ¶ added in v0.3.0
EntityReader resolves an entity UUID to its full record. appendEntitySection uses it to render human-readable canonical names + aliases instead of the bare entity UUIDs stored on mentions. Satisfied by the entity sub-store reached via store.Store.Entity (passed at the call sites in handleNode/handleContext); the sub-store type is unexported, so the satisfaction is enforced there rather than by a package-level var assertion.
type HistoryReader ¶ added in v0.3.0
type HistoryReader interface {
GetFileHistory(path string) (*store.FileHistory, error)
}
HistoryReader is the git-history surface handleHistory consumes from a store. GetFileHistory is the only store call on the render path (node resolution stays in the handler), so the rendering is unit-testable against a mock. *store.Store satisfies it.
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.
Source Files
¶
- advanced.go
- context_pack.go
- drift_auditor.go
- embeddings_actions.go
- embeddings_facade.go
- enrichment.go
- entity.go
- graph.go
- graph_facade.go
- history.go
- history_reader.go
- links.go
- profiles.go
- search.go
- tags.go
- tools.go
- tools_context.go
- tools_explore.go
- tools_files.go
- tools_node.go
- tools_similar.go
- tools_status.go
- tools_util.go