Skip to main content

setup

Function setup 

Source
pub async fn setup<E>(
    config: Config,
    executor: E,
) -> Result<(TcpListener, Router)>
where E: CommandExecutor + Send + Sync + 'static, E::Error: Display + Send + 'static,
Expand description

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.