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//!
7//! Copyright (c) systemprompt.io — Business Source License 1.1.
8//! See <https://systemprompt.io> for licensing details.
9
10mod audit;
11pub mod auth;
12mod backend;
13mod client;
14mod engine;
15mod errors;
16mod resolver;
17
18pub use engine::{ProxyEngine, ProxyKind, ProxyTarget};
19
20#[cfg(feature = "test-api")]
21pub use audit::test_api;
22#[cfg(feature = "test-api")]
23pub use auth::test_api as auth_test_api;
24#[cfg(feature = "test-api")]
25pub use engine::test_api as engine_test_api;
26#[cfg(feature = "test-api")]
27pub use errors::ProxyError;
28#[cfg(feature = "test-api")]
29pub use resolver::test_api as resolver_test_api;