colmugx/mcp/client does not have a README file

    CallToolResult

    pub(all) struct CallToolResult {
    content : Array[
    ContentItem
    ]
    is_error : Bool
    } derive(Eq,
    Debug
    )

    CompletionResult

    pub(all) struct CompletionResult {
    values : Array[String]
    total : Int?
    has_more : Bool?
    } derive(Eq,
    Debug
    )

    ListPromptsResult

    pub(all) struct ListPromptsResult {
    prompts : Array[
    PromptDefinition
    ]
    next_cursor : String?
    } derive(Eq,
    Debug
    )

    ListResourceTemplatesResult

    pub(all) struct ListResourceTemplatesResult {
    resource_templates : Array[ResourceTemplate]
    next_cursor : String?
    } derive(Eq,
    Debug
    )

    ListResourcesResult

    pub(all) struct ListResourcesResult {
    resources : Array[
    ResourceDefinition
    ]
    next_cursor : String?
    } derive(Eq,
    Debug
    )

    ListToolsResult

    pub(all) struct ListToolsResult {
    tools : Array[
    ToolDefinition
    ]
    next_cursor : String?
    } derive(Eq,
    Debug
    )

    MCPClient

    MCPClient::call_tool

    async fn MCPClient::call_tool(self : MCPClient, name : String, arguments? : String) -> Result[CallToolResult,
    MCPError
    ]

    MCPClient::close

    fn MCPClient::close(self : MCPClient) -> Unit

    MCPClient::complete

    async fn MCPClient::complete(self : MCPClient, ref_type~ : String, ref_name~ : String, argument_name~ : String, argument_value~ : String) -> Result[CompletionResult,
    MCPError
    ]

    MCPClient::connect_http

    async fn MCPClient::connect_http(url~ : String, name~ : String, version~ : String, auth_token? : String) -> Result[MCPClient,
    MCPError
    ]

    MCPClient::connect_stdio

    async fn MCPClient::connect_stdio(cmd~ : String, args? : Array[String], name~ : String, version~ : String, extra_env? : Map[String, String], group~ :
    TaskGroup
    [Unit]) -> Result[MCPClient,
    MCPError
    ]

    MCPClient::get_prompt

    async fn MCPClient::get_prompt(self : MCPClient, name : String, arguments? : String) -> Result[
    GetPromptResult
    ,
    MCPError
    ]

    MCPClient::list_prompts

    async fn MCPClient::list_prompts(self : MCPClient, cursor? : String) -> Result[ListPromptsResult,
    MCPError
    ]

    MCPClient::list_resource_templates

    async fn MCPClient::list_resource_templates(self : MCPClient, cursor? : String) -> Result[ListResourceTemplatesResult,
    MCPError
    ]

    MCPClient::list_resources

    async fn MCPClient::list_resources(self : MCPClient, cursor? : String) -> Result[ListResourcesResult,
    MCPError
    ]

    MCPClient::list_tools

    async fn MCPClient::list_tools(self : MCPClient, cursor? : String) -> Result[ListToolsResult,
    MCPError
    ]

    MCPClient::next_request_id

    fn MCPClient::next_request_id(self : MCPClient) -> Int

    MCPClient::on_notification

    fn MCPClient::on_notification(self : MCPClient, handlers : NotificationHandlers) -> MCPClient

    MCPClient::ping

    async fn MCPClient::ping(self : MCPClient) -> Result[Unit,
    MCPError
    ]

    MCPClient::read_resource

    async fn MCPClient::read_resource(self : MCPClient, uri : String) -> Result[ReadResourceResult,
    MCPError
    ]

    MCPClient::run

    async fn MCPClient::run(self : MCPClient, group :
    TaskGroup
    [Unit]) -> Unit

    MCPClient::set_log_level

    async fn MCPClient::set_log_level(self : MCPClient, level : String) -> Result[Unit,
    MCPError
    ]

    MCPClient::subscribe_resource

    async fn MCPClient::subscribe_resource(self : MCPClient, uri : String) -> Result[Unit,
    MCPError
    ]

    MCPClient::unsubscribe_resource

    async fn MCPClient::unsubscribe_resource(self : MCPClient, uri : String) -> Result[Unit,
    MCPError
    ]

    MCPHost

    pub struct MCPHost {
    name : String
    version : String
    connections : Map[String, MCPClient]
    }

    MCPHost::call_tool

    async fn MCPHost::call_tool(self : MCPHost, qualified_name : String, arguments? : String) -> Result[CallToolResult,
    MCPError
    ]

    MCPHost::close_all

    fn MCPHost::close_all(self : MCPHost) -> Unit

    MCPHost::connect_http

    async fn MCPHost::connect_http(self : MCPHost, name~ : String, url~ : String, auth_token? : String) -> Result[Unit,
    MCPError
    ]

    MCPHost::connect_stdio

    async fn MCPHost::connect_stdio(self : MCPHost, name~ : String, cmd~ : String, args? : Array[String], extra_env? : Map[String, String], group~ :
    TaskGroup
    [Unit]) -> Result[Unit,
    MCPError
    ]

    MCPHost::list_tools

    MCPHost::new

    fn MCPHost::new(name~ : String, version~ : String) -> MCPHost

    NotificationHandlers

    pub(all) struct NotificationHandlers {
    on_tools_changed : () -> Unit?
    on_resources_changed : () -> Unit?
    on_prompts_changed : () -> Unit?
    on_progress : (
    ProgressNotification
    ) -> Unit?
    on_cancelled : (
    CancelledNotification
    ) -> Unit?
    on_resource_updated : (
    ResourceUpdatedNotification
    ) -> Unit?
    on_message : (String, Json?) -> Unit?
    }

    NotificationHandlers::empty

    ReadResourceResult

    RequestIdCounter

    type RequestIdCounter

    ResourceTemplate

    pub(all) struct ResourceTemplate {
    uri_template : String
    name : String
    description : String?
    mime_type : String?
    } derive(Eq,
    Debug
    )