Documentation
¶
Overview ¶
Package server implements the MCP protocol server with stdio and HTTP transports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is set via ldflags at build time: -ldflags "-X ...server.Version=..." Falls back to "dev" if not set.
Functions ¶
Types ¶
type MCPServer ¶
type MCPServer struct {
// contains filtered or unexported fields
}
MCPServer implements the MCP protocol server with RAG and memory capabilities.
func (*MCPServer) ReloadConfig ¶ added in v0.8.1
ReloadConfig swaps the server's effective config and restarts the RAG engine. Always updates s.config first so non-RAG-bound fields (e.g. TaskArchiveRoots) reflect the new file even when RAG is disabled or fails to initialize. The ragMu (RWMutex) doubles as the config write barrier — read paths that touch s.config must take s.ragMu.RLock() if they require a consistent snapshot.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.