A library for implementing mcp servers in MoonBit.
Dependencies
pub(all) enum Content {
Text(String)
Image(String, String)
Resource(String, String, String)
}pub(all) enum LogLevel {
Debug
Info
Notice
Warning
Error
Critical
Alert
Emergency
}pub struct Root {
uri : String
name : String?
}type Serverfn Server::add_prompt(self : Server, name~ : String, description~ : String, arguments~ : Array[PromptArgument] = .., cb~ : (Map[String, Json]) -> Array[PromptMessage]) -> UnitA library for implementing mcp servers in MoonBit.
Dependencies