Skip to main content

DevMcpExt

Trait DevMcpExt 

Source
pub trait DevMcpExt:
    Sized
    + Application
    + Send
    + Sync
    + 'static {
    // Provided methods
    fn dev_mcp(self) -> DevMcp<Self> { ... }
    fn dev_mcp_with(self, tools: DevTools) -> DevMcp<Self> { ... }
}
Available on non-WebAssembly only.
Expand description

.dev_mcp() on every Application — AppWithState, App, WithMiddleware, AsyncAppWithState and the rest.

Provided Methods§

Source

fn dev_mcp(self) -> DevMcp<Self>

The dev MCP endpoint with the default DevTools, in front of this app — or this app alone outside development without a token.

Source

fn dev_mcp_with(self, tools: DevTools) -> DevMcp<Self>

The same with the tools and gating tools describes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<A> DevMcpExt for A
where A: Application + Send + Sync + 'static,