pub type ServerFactory = Box<dyn Fn(Vec<String>, Option<Value>) -> BoxFuture<'static, Box<dyn DynService<RoleServer>>> + Send + Sync>;Expand description
Factory function that creates an MCP server instance asynchronously.
The factory receives parsed CLI arguments and an optional structured input from
the "input" field in the config JSON.
Aliased Typeยง
pub struct ServerFactory(/* private fields */);