pub struct CortexMemoryAcceptTool {
pub session_token: Arc<RwLock<Option<String>>>,
pub auto_commit: bool,
/* private fields */
}Expand description
MCP tool: cortex_memory_accept.
Schema:
cortex_memory_accept(
memory_id: string,
confirmation_token: string,
) ->
{ accepted: bool, memory_id: string }Fields§
§session_token: Arc<RwLock<Option<String>>>The confirmation token generated at server startup (ADR 0047 §3).
Shared with CortexSessionCommitTool via the same
Arc<RwLock<Option<String>>> written once by serve.rs before the
stdio loop starts.
auto_commit: boolWhen true, the ADR 0047 §3 token check is bypassed.
Set by serve.rs when CORTEX_MCP_AUTO_COMMIT=1 is present in the
environment. MUST only be used in operator-controlled CI contexts.
Implementations§
Trait Implementations§
Source§impl Debug for CortexMemoryAcceptTool
impl Debug for CortexMemoryAcceptTool
Source§impl ToolHandler for CortexMemoryAcceptTool
impl ToolHandler for CortexMemoryAcceptTool
Auto Trait Implementations§
impl Freeze for CortexMemoryAcceptTool
impl RefUnwindSafe for CortexMemoryAcceptTool
impl Send for CortexMemoryAcceptTool
impl Sync for CortexMemoryAcceptTool
impl Unpin for CortexMemoryAcceptTool
impl UnsafeUnpin for CortexMemoryAcceptTool
impl UnwindSafe for CortexMemoryAcceptTool
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