run_stream_server_from_config

Function run_stream_server_from_config 

Source
pub async fn run_stream_server_from_config(
    config: McpServiceConfig,
    bind_addr: &str,
    quiet: bool,
) -> Result<()>
Expand description

从配置启动 Streamable HTTP 服务器

§Features

  • Stateful Mode: stateful_mode: true 支持 session 管理和服务端推送
  • Version Control: 自动检测后端重连,使旧 session 失效
  • Full Lifecycle: 自动创建子进程、连接、handler、服务器

§Arguments

  • config - MCP 服务配置
  • bind_addr - 绑定地址,例如 “127.0.0.1:3000”
  • quiet - 静默模式,不输出启动信息