Skip to main content

Crate objectiveai_mcp

Crate objectiveai_mcp 

Source
Expand description

ObjectiveAI MCP server library.

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

Modules§

agent_args_registry
Per-rmcp-session in-memory map of SessionState. Populated by [crate::header_session_manager::HeaderSessionManager] on every initialize (fresh, no-session-id POST, or lazy-rehydration of a reconnect with an id we haven’t seen this process lifetime), consumed by every tool handler before dispatching to the executor.
objectiveai

Structs§

Config
ConfigBuilder

Functions§

run
serve
setup
Build the rmcp (TcpListener, axum::Router) pair. The executor is Arc-wrapped internally so the dynamic plugin / tool route closures and the static ObjectiveAI handler share a single instance.