daemon

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRunning

func IsRunning(conf config.Config) bool

IsRunning reports whether the daemon is accepting connections on its Unix socket.

func RequestStop

func RequestStop(conf config.Config, logger *slog.Logger) error

RequestStop attempts a shutdown via Unix socket then TCP, and verifies each transport is no longer reachable afterwards.

func RunStdioServer

func RunStdioServer(ctx context.Context, conf config.Config) error

RunStdioServer connects to the daemon's MCP endpoint over the Unix socket and proxies it to stdio. Tools are queried from session then forwarded to avoid duplicating the implementation here and in the daemon.

Types

type Daemon

type Daemon struct {
	// contains filtered or unexported fields
}

Daemon manages the YAML store and exposes it via MCP over a Unix socket (and optionally TCP HTTP).

func New

func New(s store.Store, conf config.Config, logger *slog.Logger) *Daemon

func (*Daemon) Start

func (d *Daemon) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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