Skip to main content

Crate agentstatedeveloper_mcp

Crate agentstatedeveloper_mcp 

Source
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
GcSweepRequest
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§

ApiError

Functions§

build_router
Build the axum router wired to the given engine + db path.

Type Aliases§

SharedEngine
Engine is shared across handlers. The underlying Repository holds a Box<dyn Storage> trait object that is not guaranteed Send+Sync at the trait-object level, so we serialize access through an async Mutex.