Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is the binary version, overridable at build time via -ldflags "-X github.com/rainmana/tinybrain/v3/internal/app.Version=v1.2.3"
Functions ¶
Types ¶
type TinyBrainServer ¶
type TinyBrainServer struct {
// contains filtered or unexported fields
}
TinyBrainServer represents the main MCP server for security-focused memory storage
func NewTinyBrainServer ¶
func NewTinyBrainServer(dbPath string, logger *log.Logger) (*TinyBrainServer, error)
NewTinyBrainServer initializes the database, repositories, and services backing the MCP server. dbPath is the SQLite database file location.
func (*TinyBrainServer) Close ¶
func (t *TinyBrainServer) Close() error
Close releases the underlying database connection.
func (*TinyBrainServer) StartHTTP ¶
func (t *TinyBrainServer) StartHTTP(addr string) error
StartHTTP serves the REST API documented at https://rainmana.github.io/tinybrain/api-reference/ plus a small dashboard. Endpoints are registered both at the root (POST /sessions) and under /api/ (POST /api/sessions).
Click to show internal directories.
Click to hide internal directories.