pub struct McpServer { /* private fields */ }Expand description
MCP Server implementation
Implementations§
Source§impl McpServer
impl McpServer
Sourcepub fn new(config: ForgeConfig) -> Self
pub fn new(config: ForgeConfig) -> Self
Create a new MCP server from configuration
Sourcepub async fn register_handlers(&self) -> Result<()>
pub async fn register_handlers(&self) -> Result<()>
Register all handlers from configuration
Sourcepub fn registry(&self) -> Arc<RwLock<HandlerRegistry>>
pub fn registry(&self) -> Arc<RwLock<HandlerRegistry>>
Get the handler registry (for testing)
Auto Trait Implementations§
impl Freeze for McpServer
impl !RefUnwindSafe for McpServer
impl Send for McpServer
impl Sync for McpServer
impl Unpin for McpServer
impl !UnwindSafe 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