diff --git a/hive-ag3nt/src/bin/hive.rs b/hive-ag3nt/src/bin/hive.rs index b880bb11..bcd7c71e 100644 --- a/hive-ag3nt/src/bin/hive.rs +++ b/hive-ag3nt/src/bin/hive.rs @@ -104,7 +104,7 @@ async fn main() -> Result<()> { serve_main::(&cli.socket, poll_ms).await } (Role::Agent, Cmd::Mcp) => mcp::serve_agent_stdio(cli.socket).await, - (Role::Manager, Cmd::Mcp) => mcp::serve_manager_stdio(cli.socket).await, + (Role::Manager, Cmd::Mcp) => mcp::serve_agent_stdio(cli.socket).await, (Role::Agent, Cmd::Wake { from, body }) => { wake::(&cli.socket, from, body).await } diff --git a/hive-ag3nt/src/mcp.rs b/hive-ag3nt/src/mcp.rs index b1938e24..dee9bee4 100644 --- a/hive-ag3nt/src/mcp.rs +++ b/hive-ag3nt/src/mcp.rs @@ -8,8 +8,7 @@ //! broker-routed protocol. Unaffected by this module. //! - **MCP stdio** owned by this module — what claude actually speaks. //! -//! One `AgentServer { socket }` struct shared by agent and manager roles. -//! `ManagerServer` is a backward-compat type alias for `AgentServer`. +//! One `AgentServer { socket }` struct for all roles. //! Tool access is gated upstream by `--allowedTools` (derived from the //! agent's `ToolGroup` config); the server itself is a dumb dispatcher. //! All tools go through the same `run_tool_envelope` helper. @@ -581,9 +580,6 @@ pub struct AgentServer { socket: PathBuf, } -/// Backward-compat alias — callers that reference `ManagerServer` by name still compile. -pub type ManagerServer = AgentServer; - impl AgentServer { #[must_use] pub fn new(socket: PathBuf) -> Self { @@ -1446,16 +1442,11 @@ pub async fn serve_stdio(socket: PathBuf) -> Result<()> { Ok(()) } -/// Convenience wrapper: run the agent MCP server over stdio. +/// Run the MCP server over stdio. Used by all roles. pub async fn serve_agent_stdio(socket: PathBuf) -> Result<()> { serve_stdio(socket).await } -/// Convenience wrapper: run the manager MCP server over stdio. -pub async fn serve_manager_stdio(socket: PathBuf) -> Result<()> { - serve_stdio(socket).await -} - // ----------------------------------------------------------------------------- // Manager tool surface // -----------------------------------------------------------------------------