Skip to main content

Crate systemprompt_api

Crate systemprompt_api 

Source
Expand description

systemprompt.io HTTP API server.

Hosts the Axum application that fronts every protocol surface — A2A, MCP, OAuth, the marketplace, and the AI gateway — wiring routes and context-extraction services::middleware onto the shared AppContext. ApiServer is the process entry point; HealthChecker reports per-module readiness. Failures surface as the error types and are mapped to HTTP responses at the route boundary.

Re-exports§

pub use models::ServerConfig;
pub use services::health::HealthChecker;
pub use services::health::HealthSummary;
pub use services::health::ModuleHealth;
pub use services::health::ProcessMonitor;
pub use services::middleware::A2AContextMiddleware;
pub use services::middleware::ContextExtractor;
pub use services::middleware::McpContextMiddleware;
pub use services::middleware::PublicContextMiddleware;
pub use services::middleware::UserOnlyContextMiddleware;
pub use services::server::ApiServer;

Modules§

error
Entry-local HTTP error type for non-OAuth API routes.
models
HTTP server request/response models for the API entry point.
routes
HTTP route modules for the API server.
services
HTTP service layer for the API server.