Skip to main content

Crate ogham_server

Crate ogham_server 

Source
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.
ServerConfig
Server configuration.

Enums§

CcrBackendConfig
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.