Skip to main content

Crate decision_cockpit

Crate decision_cockpit 

Source
Expand description

Decision Cockpit: a product-decision memory system.

The same domain/service layer is exposed through two interfaces: an HTTP API (for the UI) and an MCP stdio server (for an LLM agent).

Re-exports§

pub use config::Config;
pub use error::AppError;
pub use error::AppResult;
pub use state::AppState;

Modules§

assets
Static assets baked into the binary at compile time.
bootstrap
Startup helpers: ensure Postgres is reachable before migrations run.
config
db
Database access layer.
domain
Domain entities and shared enums.
error
http
HTTP API for the UI. Thin handlers over the shared service layer.
mcp
MCP stdio server built on the official rmcp SDK.
services
Domain services: the single source of business logic shared by the HTTP API and the MCP server. Handlers in either interface should be thin adapters that deserialize input, call a service function, and serialize the result.
state