pub struct MCPServer { /* private fields */ }Implementations§
Source§impl MCPServer
impl MCPServer
pub fn new(config: Config) -> Result<Self>
Sourcepub fn graph(&self) -> Arc<GraphHandle> ⓘ
pub fn graph(&self) -> Arc<GraphHandle> ⓘ
Expose the shared graph handle (used to drive the HTTP transport).
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