Skip to main content

Module node

Module node 

Source
Expand description

The supported embedding surface: build (NodeBuilder) and drive (Node) a full in-process mesh node. The node is its OWN mesh identity under its OWN root directory — it never touches the per-user daemon’s state, socket, or singleton lock, so it coexists freely with a running mcpmesh daemon (and with other embedded nodes under other roots).

Structs§

Node
A running in-process node. Dropping it does NOT stop serving — call shutdown.
NodeBuilder
Build a Node: pick a root directory, optionally inject a Config, then start.

Enums§

StartError
Everything that can refuse a NodeBuilder::start. Embedders branch on DataDirInUse (another node owns this root — one node per root, enforced by redb’s exclusive database lock) and Config (a malformed config.toml / programmatic config, worth showing to a human); everything else is opaque infrastructure failure.