Skip to main content

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
7mod audit;
8pub mod auth;
9mod backend;
10mod client;
11mod engine;
12mod errors;
13mod resolver;
14
15pub use engine::{ProxyEngine, ProxyKind, ProxyTarget};
16
17#[cfg(feature = "test-api")]
18pub use audit::test_api;
19#[cfg(feature = "test-api")]
20pub use auth::test_api as auth_test_api;
21#[cfg(feature = "test-api")]
22pub use engine::test_api as engine_test_api;
23#[cfg(feature = "test-api")]
24pub use errors::ProxyError;
25#[cfg(feature = "test-api")]
26pub use resolver::test_api as resolver_test_api;