Expand description
Embeddable HTTP server for the Ogham context engineering SDK.
Run standalone (ogham-server binary, configured via OGHAM_*
environment variables) or mount the router into an existing Axum
application:
use ogham_server::{app_with_state, AppState};
let router = axum::Router::new().nest("/ogham", app_with_state(AppState::new()));Endpoints: POST /compress, POST /retrieve, POST /detect,
GET /health, GET /stats. Request/response shapes are documented
on app. The binary binds 127.0.0.1:3000 by default and never
listens on all interfaces unless explicitly configured.
Structs§
- AppState
- Application state shared across handlers.
- Server
Config - Server configuration.
Enums§
- CcrBackend
Config - Backend selection for the server’s CCR store.
Functions§
- app
- Build the MCP/REST router with shared state.
- app_
with_ state - Mountable router over caller-provided state — this is what host applications embed.