pub struct McpBrowserServer { /* private fields */ }Expand description
MCP server that exposes BrowserPool over stdin/stdout JSON-RPC.
§Example
use stygian_browser::{BrowserConfig, BrowserPool};
use stygian_browser::mcp::McpBrowserServer;
use std::sync::Arc;
let pool = BrowserPool::new(BrowserConfig::default()).await?;
let server = McpBrowserServer::new(pool);
server.run().await?;Implementations§
Source§impl McpBrowserServer
impl McpBrowserServer
Sourcepub fn new(pool: Arc<BrowserPool>) -> Self
pub fn new(pool: Arc<BrowserPool>) -> Self
Create a new server backed by the given pool.
Call run to start the stdin/stdout event loop.
Auto Trait Implementations§
impl Freeze for McpBrowserServer
impl !RefUnwindSafe for McpBrowserServer
impl Send for McpBrowserServer
impl Sync for McpBrowserServer
impl Unpin for McpBrowserServer
impl !UnwindSafe for McpBrowserServer
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