-
Notifications
You must be signed in to change notification settings - Fork 178
Closed
Milestone
Description
Once the handshaking and done, the next integral part of the whole MCP is schema mapping to rmcp's JsonObject which is used for input and output schema of tool.
Here is the structure we need to follow. We will have an mcp_adaptor module, that has something like the following
use rmcp::model::JsonObject;
pub trait McpToolSchemaMapper {
fn get_schema(&self) -> McpToolSchema;
}
pub struct McpToolSchema {
pub input_schema: JsonObject,
pub output_schema: Option<JsonObject>, // this is what RMCP expectsd
}
#[derive(Clone)]
pub struct AgentMcpTool {
pub tool: AgentMethod, // this has all the details required
}
impl McpToolSchemaMapper for AgentMcpTool {
fn get_schema(&self) -> McpToolSchema { todo!() }
}Reactions are currently unavailable