This directory contains the in-repo Rust SDK documentation for contextvm-sdk.
The main mental model is:
- build an
rmcpserver or client - attach a ContextVM transport
- run MCP over Nostr
For most native Rust applications, the primary entry points are NostrServerTransport and NostrClientTransport, used together with rmcp services via ServiceExt.
- Overview: architecture, API selection, and protocol model
- Native server guide: server setup over Nostr
- Native client guide: client setup over Nostr
- Encryption guide: plaintext, encrypted, and gift-wrap behavior
- Stateless mode guide: client-side initialize emulation and when to use it
- Discovery guide: public discovery helpers and event kinds
- Gateway guide: expose an existing server-side MCP flow over ContextVM
- Proxy guide: connect to a remote ContextVM server with a lighter client bridge
- RMCP integration guide: how the optional
rmcpintegration layer fits in - Transport guide: lower-level transport behavior and direct usage
- Transport modes guide: encryption mode, gift-wrap mode, and stateless mode as one reference
The docs here are concise and implementation-driven.
They are derived from the public crate APIs, the rmcp service APIs, the repository examples, and the transport and conformance tests in this repository.
They are intended to remain usable on their own, without depending on external documentation pages.