pub struct Hooks {
pub authn: Option<Authn>,
pub authorize: Option<Authorize>,
pub events: Option<Events>,
pub terminal: Option<Terminal>,
pub ssh: Option<Ssh>,
pub audit: Option<Audit>,
pub route: Option<Route>,
pub listed: Option<Listed>,
pub refuse_anonymous: bool,
}Expand description
What the embedder plugs into every listener.
Fields§
§authn: Option<Authn>§events: Option<Events>§terminal: Option<Terminal>Opens a terminal for GET /orgs/<org>/api/v1/terminal (a websocket).
ssh: Option<Ssh>Opens an SSH session for GET /orgs/<org>/api/v1/ssh (a websocket).
audit: Option<Audit>Hears every tool call on every surface, and terminal sessions.
route: Option<Route>Forwards calls for orgs placed on another server.
listed: Option<Listed>Which tools tools/list shows a caller (all, when unset).
refuse_anonymous: boolAnswer 401 to a network caller who sent no credential, on every
authenticated surface (/mcp, the tool list and calls, events),
instead of treating them as anonymous. Off only when the embedder
runs with anonymous access on.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Hooks
impl !UnwindSafe for Hooks
impl Freeze for Hooks
impl Send for Hooks
impl Sync for Hooks
impl Unpin for Hooks
impl UnsafeUnpin for Hooks
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more