Skip to main content

Crate objectiveai_mcp_proxy

Crate objectiveai_mcp_proxy 

Source
Expand description

ObjectiveAI MCP proxy library.

Other crates can use objectiveai_mcp_proxy::{ConfigBuilder, run} and spawn the proxy in-process; the binary at main.rs is a thin wrapper that reads Config from the environment and calls run.

Structs§

AppState
Shared state every axum handler reaches via State<AppState>.
Config
ConfigBuilder
QueueRead
Successful return shape: a per-row block list plus a confirmation token the delegate has reserved for this batch. The proxy embeds token in the wrapper prefix it prepends to the tool response; it does nothing else with the token.

Traits§

QueueDelegate
Embedder-provided message-queue read path. None ⇒ no delegate installed at proxy boot (CLI standalone case); the proxy’s tool-call dispatcher short-circuits without invoking anything.

Functions§

parse_key_env
Parse an MCP_ENCRYPTION_KEY env-var value: a single base64-encoded 32-byte key. Empty string → None. Malformed → Err.
run
serve
setup