pub struct McpToolDef {
pub name: String,
pub description: String,
pub method: String,
pub path: String,
pub input_schema: Value,
pub min_ring: String,
pub path_params: Vec<String>,
}Expand description
An MCP tool definition declared by an extension.
The MCP server discovers these at runtime via /api/meta/mcp-tools.
When an extension adds routes, it also declares the corresponding
MCP tools here — no manual registry maintenance needed.
Fields§
§name: String§description: String§method: StringHTTP method: “GET”, “POST”, “PUT”, “DELETE”
path: StringURL path with :param placeholders (e.g. “/api/plan-db/json/:plan_id”)
input_schema: ValueJSON Schema for the tool’s input parameters.
min_ring: StringMinimum ring required: “sandboxed”, “community”, “trusted”, “core”
path_params: Vec<String>Path parameter names to interpolate from input args.
Trait Implementations§
Source§impl Clone for McpToolDef
impl Clone for McpToolDef
Source§fn clone(&self) -> McpToolDef
fn clone(&self) -> McpToolDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpToolDef
impl Debug for McpToolDef
Source§impl<'de> Deserialize<'de> for McpToolDef
impl<'de> Deserialize<'de> for McpToolDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for McpToolDef
impl RefUnwindSafe for McpToolDef
impl Send for McpToolDef
impl Sync for McpToolDef
impl Unpin for McpToolDef
impl UnsafeUnpin for McpToolDef
impl UnwindSafe for McpToolDef
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