1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
//! # ContextVM SDK for Rust
//!
//! A complete Rust implementation of the [ContextVM protocol](https://contextvm.org),
//! enabling MCP (Model Context Protocol) servers to expose their capabilities through
//! the Nostr network.
//!
//! ## Architecture
//!
//! ```text
//! ┌─────────────────────────────────────────┐
//! │ Gateway / Proxy (high-level) │
//! ├─────────────────────────────────────────┤
//! │ Transport (client / server) │
//! ├─────────────────────────────────────────┤
//! │ Core (types, serializers, validation) │
//! │ Relay │ Signer │ Encryption │
//! └─────────────────────────────────────────┘
//! ```
//!
//! ## Quick Start
//!
//! ### As a Gateway (expose local MCP server via Nostr)
//!
//! ```rust,no_run
//! use contextvm_sdk::gateway::{NostrMCPGateway, GatewayConfig};
//! use contextvm_sdk::transport::server::NostrServerTransportConfig;
//! use contextvm_sdk::core::types::ServerInfo;
//! use contextvm_sdk::signer;
//! ```
//!
//! ### As a Proxy (connect to remote MCP server via Nostr)
//!
//! ```rust,no_run
//! use contextvm_sdk::proxy::{NostrMCPProxy, ProxyConfig};
//! use contextvm_sdk::transport::client::NostrClientTransportConfig;
//! use contextvm_sdk::signer;
//! ```
/// Core types, constants, serializers, and validation
/// Server and capability discovery on the Nostr network
/// NIP-44 encryption and NIP-59 gift wrapping
/// Gateway bridging a local MCP server to Nostr
/// Proxy connecting to a remote MCP server via Nostr
/// Nostr relay pool management
/// Nostr signer utilities and key management
/// Client and server MCP-over-Nostr transports
/// rmcp Worker integration for ContextVM transports
// ── Core types and error handling ────────────────────────────────────
pub use ;
pub use ;
// ── Discovery ────────────────────────────────────────────────────────
pub use ServerAnnouncement;
// ── Relay pool ───────────────────────────────────────────────────────
pub use MockRelayPool;
pub use ;
// ── Transport (client) ──────────────────────────────────────────────
pub use ;
// ── Transport (discovery tags) ──────────────────────────────────────
pub use ;
// ── Transport (server) ──────────────────────────────────────────────
pub use ;
// ── rmcp re-export ──────────────────────────────────────────────────
pub use rmcp;
// ── CEP-22 progress-aware request helpers ───────────────────────────
pub use ;
// ── CEP-41 open-stream consumer API ─────────────────────────────────
pub use ;
pub use ClientOpenStreamHandle;