pub struct RemoteMcpEndpoint { /* private fields */ }Expand description
Remote MCP HTTP endpoint collection mounted by crate::WebmcpServer.
Implementations§
Source§impl RemoteMcpEndpoint
impl RemoteMcpEndpoint
Sourcepub fn new(
adapter: Arc<dyn RuntimeAdapter>,
config: RemoteMcpServerConfig,
) -> WebmcpResult<Self>
pub fn new( adapter: Arc<dyn RuntimeAdapter>, config: RemoteMcpServerConfig, ) -> WebmcpResult<Self>
Construct the modern Streamable HTTP and legacy HTTP+SSE services.
Sourcepub fn config(&self) -> &RemoteMcpServerConfig
pub fn config(&self) -> &RemoteMcpServerConfig
Return the public configuration without exposing the proxy token.
Sourcepub fn tool_definitions(&self) -> Vec<Tool>
pub fn tool_definitions(&self) -> Vec<Tool>
Return the advertised read-only tool definitions.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteMcpEndpoint
impl !UnwindSafe for RemoteMcpEndpoint
impl Freeze for RemoteMcpEndpoint
impl Send for RemoteMcpEndpoint
impl Sync for RemoteMcpEndpoint
impl Unpin for RemoteMcpEndpoint
impl UnsafeUnpin for RemoteMcpEndpoint
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