systemprompt_api/services/proxy/mod.rs
1//! Reverse proxy from the API gateway to local MCP and agent backends.
2//!
3//! [`ProxyEngine`] is the entry point; the `auth` submodule is the single
4//! authorization boundary for proxied `/api/v1/mcp/*` and `/api/v1/agents/*`
5//! traffic, emitting RFC 9728 OAuth challenges on unauthenticated requests.
6//!
7//! Copyright (c) systemprompt.io — Business Source License 1.1.
8//! See <https://systemprompt.io> for licensing details.
9
10pub mod audit;
11pub mod auth;
12mod backend;
13mod client;
14pub mod engine;
15mod errors;
16pub mod resolver;
17
18pub use engine::{ProxyEngine, ProxyKind, ProxyTarget};
19pub use errors::{ProxyError, ResponseBuildError};