colmugx/mcp/protocol/core does not have a README file
pub(open) trait Params {
fn schema() -> JsonSchema
fn from_json(Json) -> Self raise ToolError
fn to_json(Self) -> Json
}impl ToToolResult for Unitimpl ToToolResult for Boolimpl ToToolResult for Intimpl ToToolResult for Doubleimpl ToToolResult for Stringimpl ToToolResult for ToolResultpub struct JsonSchema {
type_name : String
description : String
properties : Map[String, JsonSchema]?
required : Array[String]?
items : JsonSchema?
default : Json?
} derive(Debug)fn SchemaBuilder::field(self : SchemaBuilder, name : String, field_type : SchemaType, required? : Bool, desc? : String) -> SchemaBuilderpub(all) struct ToolWrapper {
name_impl : () -> String
description_impl : () -> String
params_impl : () -> Array[ParamDef]
execute_impl : (Json) -> ToolResult
}impl Tool for ToolWrapperfn obj_schema(props : Map[String, JsonSchema], required : Array[String], desc? : String) -> JsonSchemafn[Args : Params, Ret : ToToolResult] tool_fn(handler : (Args) -> Ret, name~ : String, description~ : String) -> ToolWrapperType-safe MCP SDK in MoonBit with server/client support and dual transport (STDIO/HTTP)
Dependencies