colmugx/mcp/runtime does not have a README file
pub struct CancellationToken {
cancelled : Bool
callbacks : Map[Int, () -> Unit]
next_callback_id : Int
}fn CancellationToken::on_cancel(self : CancellationToken, callback : () -> Unit) -> CancellationRegistrationpub struct ProgressReporter {
send : async (Double, Double?, String?) -> Unit
cancellation_token : CancellationToken
}fn ProgressReporter::new(send : async (Double, Double?, String?) -> Unit, cancellation_token? : CancellationToken) -> ProgressReporterasync fn ProgressReporter::report(self : ProgressReporter, progress : Double, total? : Double, message? : String) -> Unitpub(all) struct RequestContext {
request_id : RequestId
meta : Map[String, Json]
principal : Principal?
input_responses : Map[String, Json]
continuation_state : Json?
cancellation_token : CancellationToken
progress_reporter : ProgressReporter
}fn RequestContext::new(request_id : RequestId, meta? : Map[String, Json], principal? : Principal, input_responses? : Map[String, Json], continuation_state? : Json, cancellation_token? : CancellationToken, progress_reporter? : ProgressReporter) -> RequestContextInstall
Download zipType-safe MCP SDK in MoonBit with server/client support and dual transport (STDIO/HTTP)