Expand description
HTTP server for AgentStateDeveloper (ASD) — powers the M2 Lens consumer.
Exposes a read-only JSON API over the ASG-backed ASD state. See
build_router for the full route surface. Binary entrypoint lives in
src/bin/asd-serve.rs.
Also hosts the MCP stdio server module mcp_server — wired up by the
asd-mcp binary.
Re-exports§
pub use mcp_server::AsdMcpServer;
Modules§
- events
- Live activity stream for asd-serve — backs
GET /api/v1/events(SSE). - mcp_
params - MCP tool parameter types (Plan M t-002, 1.0.92).
- mcp_
server - AgentStateDeveloper MCP stdio server — exposes ASD read/write operations as MCP tools for coding agents.
- metrics
- Distilled-metrics API — the record ASD keeps of itself, made searchable.
Structs§
- AppState
- GcSweep
Request - Body of
POST /api/v1/gc/sweep: the same shape as AgentStateGraph’s own/gc/sweep, so a client can target either server. Every field is optional; send{}for ASD’s defaults.
Enums§
Functions§
- build_
router - Build the axum router wired to the given engine + db path.
Type Aliases§
- Shared
Engine - Engine is shared across handlers. The underlying
Repositoryholds aBox<dyn Storage>trait object that is not guaranteed Send+Sync at the trait-object level, so we serialize access through an async Mutex.