rmcp 3.0.1

Rust SDK for Model Context Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::rc::Rc;

use rmcp::ClientHandler;

struct LocalClientHandler {
    _state: Rc<()>,
}

impl ClientHandler for LocalClientHandler {}

#[test]
fn client_handler_accepts_non_send_sync_state_with_local_feature() {
    fn assert_client_handler<T: ClientHandler>() {}

    assert_client_handler::<LocalClientHandler>();
}