colmugx/mcp/protocol/types does not have a README file
pub(all) suberror MCPError {
ParseError(String)
InvalidRequest(String)
MethodNotFound(String)
InvalidParams(String)
InternalError(String)
TransportError(TransportError)
ToolError(String)
HeaderMismatch(String)
MissingRequiredClientCapability(String, required~ : Array[String])
UnsupportedProtocolVersion(String, supported~ : Array[String], requested~ : String)
} derive(Eq, Debug)impl Show for TransportErrorpub(all) struct ClientCapabilities {
roots : RootCapabilities?
sampling : SamplingCapabilities?
elicitation : ElicitationCapabilities?
extensions : Map[String, Json]?
} derive(Eq, Debug)pub(all) enum ContentItem {
Text(String)
Image(String, mime_type~ : String)
ResourceLink(String)
EmbeddedResource(EmbeddedResourceContent)
} derive(Eq, Debug)pub(all) struct CreateMessageResult {
role : String
model : String
content : ContentItem
stop_reason : String?
} derive(Eq, Debug)pub(all) struct GetPromptResult {
description : String?
messages : Array[PromptMessage]
} derive(Eq, Debug)pub(all) struct JsonRpcResponse {
jsonrpc : String
id : RequestId
result : Result[Json, JsonRpcError]
} derive(Eq, Debug)pub(all) struct Prompt {
name : String
description : String?
arguments : Array[PromptArgument]?
} derive(Eq, Debug)pub(all) struct ServerCapabilities {
tools : ToolCapabilities?
resources : ResourceCapabilities?
prompts : PromptCapabilities?
extensions : Map[String, Json]?
} derive(Eq, Debug)let ProtocolVersion : StringType-safe MCP SDK in MoonBit with server/client support and dual transport (STDIO/HTTP)
Dependencies