pub struct CortexServer { /* private fields */ }Expand description
Cortex MCP server.
Holds an Arc<ToolRegistry> so the struct is cheap to clone. rmcp
requires ServerHandler: Clone for its router.
Implementations§
Source§impl CortexServer
impl CortexServer
Sourcepub fn new(registry: Arc<ToolRegistry>) -> Self
pub fn new(registry: Arc<ToolRegistry>) -> Self
Construct over a fully-wired registry. The registry must already
contain every tool the server will expose; rmcp’s tools/list reply
is generated from the static #[tool(...)] attributes on this impl
and not from the registry contents, so a tool advertised here but not
registered will return internal_error at call time.
Source§impl CortexServer
impl CortexServer
Sourcepub fn cortex_search_tool_attr() -> Tool
pub fn cortex_search_tool_attr() -> Tool
Generated tool metadata function for cortex_search
Sourcepub fn cortex_context_tool_attr() -> Tool
pub fn cortex_context_tool_attr() -> Tool
Generated tool metadata function for cortex_context
Sourcepub fn cortex_memory_health_tool_attr() -> Tool
pub fn cortex_memory_health_tool_attr() -> Tool
Generated tool metadata function for cortex_memory_health
Sourcepub fn cortex_config_tool_attr() -> Tool
pub fn cortex_config_tool_attr() -> Tool
Generated tool metadata function for cortex_config
Sourcepub fn cortex_suggest_tool_attr() -> Tool
pub fn cortex_suggest_tool_attr() -> Tool
Generated tool metadata function for cortex_suggest
Sourcepub fn cortex_memory_list_tool_attr() -> Tool
pub fn cortex_memory_list_tool_attr() -> Tool
Generated tool metadata function for cortex_memory_list
Sourcepub fn cortex_memory_outcome_tool_attr() -> Tool
pub fn cortex_memory_outcome_tool_attr() -> Tool
Generated tool metadata function for cortex_memory_outcome
Sourcepub fn cortex_decay_status_tool_attr() -> Tool
pub fn cortex_decay_status_tool_attr() -> Tool
Generated tool metadata function for cortex_decay_status
Sourcepub fn cortex_doctor_tool_attr() -> Tool
pub fn cortex_doctor_tool_attr() -> Tool
Generated tool metadata function for cortex_doctor
Sourcepub fn cortex_audit_verify_tool_attr() -> Tool
pub fn cortex_audit_verify_tool_attr() -> Tool
Generated tool metadata function for cortex_audit_verify
Sourcepub fn cortex_reflect_tool_attr() -> Tool
pub fn cortex_reflect_tool_attr() -> Tool
Generated tool metadata function for cortex_reflect
Sourcepub fn cortex_models_list_tool_attr() -> Tool
pub fn cortex_models_list_tool_attr() -> Tool
Generated tool metadata function for cortex_models_list
Sourcepub fn cortex_memory_embed_tool_attr() -> Tool
pub fn cortex_memory_embed_tool_attr() -> Tool
Generated tool metadata function for cortex_memory_embed
Sourcepub fn cortex_memory_note_tool_attr() -> Tool
pub fn cortex_memory_note_tool_attr() -> Tool
Generated tool metadata function for cortex_memory_note
Sourcepub fn cortex_session_close_tool_attr() -> Tool
pub fn cortex_session_close_tool_attr() -> Tool
Generated tool metadata function for cortex_session_close
Sourcepub fn cortex_memory_accept_tool_attr() -> Tool
pub fn cortex_memory_accept_tool_attr() -> Tool
Generated tool metadata function for cortex_memory_accept
Sourcepub fn cortex_admit_axiom_tool_attr() -> Tool
pub fn cortex_admit_axiom_tool_attr() -> Tool
Generated tool metadata function for cortex_admit_axiom
Sourcepub fn cortex_session_commit_tool_attr() -> Tool
pub fn cortex_session_commit_tool_attr() -> Tool
Generated tool metadata function for cortex_session_commit
Trait Implementations§
Source§impl Clone for CortexServer
impl Clone for CortexServer
Source§fn clone(&self) -> CortexServer
fn clone(&self) -> CortexServer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more