pub struct MCPServer { /* private fields */ }Implementations§
Source§impl MCPServer
impl MCPServer
Sourcepub fn new(config: Config, vec_config: VectorConfig) -> Result<Self>
pub fn new(config: Config, vec_config: VectorConfig) -> Result<Self>
Build a server. The vector subsystem (usearch index + petgraph mirror) is
only constructed when config.vectors_enabled is set; vec_config is
ignored otherwise.
Sourcepub fn new_kg(config: Config) -> Result<Self>
pub fn new_kg(config: Config) -> Result<Self>
Convenience constructor for a pure knowledge-graph server (no vectors).
Sourcepub fn graph(&self) -> Arc<GraphHandle>
pub fn graph(&self) -> Arc<GraphHandle>
Expose the shared graph handle (used to drive the HTTP transport).
Sourcepub fn vector_store(&self) -> Option<Arc<VectorStore>>
pub fn vector_store(&self) -> Option<Arc<VectorStore>>
The shared vector store, if vector support is enabled.
Sourcepub async fn run_stdio(&self) -> Result<()>
pub async fn run_stdio(&self) -> Result<()>
stdio transport: newline-delimited JSON-RPC over stdin/stdout.
Auto Trait Implementations§
impl !RefUnwindSafe for MCPServer
impl !UnwindSafe for MCPServer
impl Freeze for MCPServer
impl Send for MCPServer
impl Sync for MCPServer
impl Unpin for MCPServer
impl UnsafeUnpin for MCPServer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more