feat(#1004,#1006): capability system + read_host_journal / get_host_journal MCP tool
This commit is contained in:
parent
6c75030420
commit
dc8a4e2baf
7 changed files with 345 additions and 3 deletions
|
|
@ -579,6 +579,15 @@ async fn dispatch(req: &ManagerRequest, coord: &Arc<Coordinator>) -> ManagerResp
|
|||
message: format!("{e:#}"),
|
||||
},
|
||||
},
|
||||
// GetHostJournal is an agent-socket-only capability-gated variant.
|
||||
// The manager can use the existing GetLogs tool for per-container
|
||||
// logs. Route to the agent_server handler for consistency.
|
||||
ManagerRequest::GetHostJournal { unit, container, lines, priority } => {
|
||||
crate::agent_server::dispatch_host_journal(
|
||||
MANAGER_AGENT, unit, container, lines, priority,
|
||||
)
|
||||
.await
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue