Mirror of https://github.com/modelcontextprotocol/rust-sdk — The official Rust SDK for the Model Context Protocol
  • Rust 99.2%
  • Shell 0.5%
  • JavaScript 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
4t145 4597d1f047
Server wasm compatibility (#15)
* add axum sse example

* fix: make the sse axum folder name correct

* feat: add common modules for Axum SSE example

This commit adds supporting modules for the Axum Server-Sent Events (SSE) example:
- Added `counter.rs` with a simple counter router implementation
- Added `jsonrpc_frame_codec.rs` for decoding JSON-RPC frames
- Created a `mod.rs` to expose these modules
- Removed the previous SSE example configuration from Cargo.toml

* refactor: remove main.rs and update Cargo.toml for WASM compatibility

This commit makes two key changes:
1. Removes the main.rs file and make it a example
2. Add a wasi_std_io example

* refactor: simplify WASI I/O handling in example and fmt

Merged AsyncInputStream and AsyncOutputStream into a single WasiFd struct with std_in() and std_out() methods, reducing code duplication and improving clarity of the WASI standard I/O example.

* move examples to root
2025-03-14 11:21:33 -07:00
.github/workflows feat: github workflows 2025-02-21 20:39:05 +00:00
crates Server wasm compatibility (#15) 2025-03-14 11:21:33 -07:00
examples Server wasm compatibility (#15) 2025-03-14 11:21:33 -07:00
.gitignore Initial commit 2025-02-18 10:55:26 +00:00
Cargo.toml chore: move examples out of various places into a top-level dir (#10) 2025-03-03 14:50:34 -05:00
LICENSE Initial commit 2025-02-18 10:55:26 +00:00
README.md Initial commit 2025-02-18 10:55:26 +00:00

rust-sdk

The official Rust SDK for the Model Context Protocol