pub enum ScanMode {
Standalone,
Attached {
session_id: String,
},
}Expand description
How the scanner acquires an MCP session for discovery calls.
Variants§
Standalone
Scanner opens its own MCP session to the upstream.
Used when the upstream accepts anonymous sessions or the proxy
holds credentials (e.g. a static bearer token in mcpr.toml).
Attached
Scanner injects discovery requests into an existing client session.
Used when the upstream requires auth that only clients hold.
The scanner uses reserved JSON-RPC ids (e.g. __mcpr_scan_<n>)
to multiplex without colliding with the client’s own requests.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScanMode
impl RefUnwindSafe for ScanMode
impl Send for ScanMode
impl Sync for ScanMode
impl Unpin for ScanMode
impl UnsafeUnpin for ScanMode
impl UnwindSafe for ScanMode
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