Skip to main content

Module doctor

Module doctor 

Source
Expand description

GET /v1/doctor — read-only startup config / Store snapshot. GET /v1/doctor — server-side infra info snapshot.

Surfaces startup config read-only: the Blueprint store real (backend / root path), ref_base, bind, enhance flow on/off, etc. An entry point for callers (the MCP adapter’s doctor tool / operator) to answer “where is the Store?” and “how many BPs are registered?” in one shot.

Store contents (BP list / head / history) are peeked via the existing /v1/blueprints/... routes; doctor covers only the infra layer.

Structs§

DoctorInfo
Startup config snapshot. Populated from Args in main.rs and mounted on the router.

Functions§

build_doctor_router
Builds the /v1/doctor router. info is the (immutable) startup snapshot to serve; store is used to peek the registered Blueprint id count/list.