Skip to content

Add Agent::shutdown() with MCP cleanup #356

@bug-ops

Description

@bug-ops

Parent: #355

Add pub async fn shutdown(&mut self) to Agent that:

  • Sends farewell message to channel
  • Calls McpManager::shutdown_all() (take Arc, try_unwrap, shutdown)
  • Logs completion

MCP state field: mcp_state.manager: Option<Arc<McpManager>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions