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. services::server::bind_and_serve binds the listener before bootstrap and services::server::run_server swaps in the full router; HealthChecker reports per-module readiness. Failures surface as the error types and are mapped to HTTP responses at the route boundary.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Re-exports§

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;

Modules§

error
Entry-local HTTP error type for non-OAuth API routes.
routes
HTTP route modules for the API server.
services
HTTP service layer for the API server.