Skip to main content

Module background

Module background 

Source
Expand description

Local background job state + log spooling (Phase 1 scaffold).

Goal: move background job logs from remote system temp directory / ssh-mcp subdirectory/*.log to a local-only spool directory while keeping the public MCP tool API stable.

Phase 1 provides the core types:

  • JobState: per-job state (pid, local log path, exit code, status)
  • JobRegistry: thread-safe registry for active + recently completed jobs
  • LocalLogSpooler: local system temp directory / ssh-mcp subdirectory directory management

Re-exports§

pub use job::JobState;
pub use job::JobStatus;
pub use job::SharedJobState;
pub use registry::JobRegistry;
pub use spooler::LocalLogSpooler;
pub use stream::OutputStreamer;

Modules§

job
registry
spooler
stream

Enums§

BackgroundError
Background subsystem errors.

Type Aliases§

Result