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
- Config
Builder - Queue
Read - Successful return shape: a per-row block list plus a
confirmation token the delegate has reserved for this batch.
The proxy embeds
tokenin the wrapper prefix it prepends to the tool response; it does nothing else with the token.
Traits§
- Queue
Delegate - 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_KEYenv-var value: a single base64-encoded 32-byte key. Empty string →None. Malformed →Err. - run
- serve
- setup