rust-sdk/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sandro Hanea 50fadfb81b
[Example] Small fix on incorrect counter logic and improve prompt handling (#63)
The counter decrement in `get_value` was removed to prevent unintended changes to the counter state. Additionally, `get_prompt` was updated to parse and validate the `message` argument properly, ensuring better error handling and formatting.

Co-authored-by: sandrohanea <me@sandro.rocks>
2025-03-30 00:34:32 +08:00
..
clients style: fmt the project (#54) 2025-03-28 23:50:46 +08:00
rig-integration style: fmt the project (#54) 2025-03-28 23:50:46 +08:00
servers [Example] Small fix on incorrect counter logic and improve prompt handling (#63) 2025-03-30 00:34:32 +08:00
transport style: fmt the project (#54) 2025-03-28 23:50:46 +08:00
wasi style: fmt the project (#54) 2025-03-28 23:50:46 +08:00
README.md Move whole rmcp crate to offcial rust sdk (#44) 2025-03-27 17:33:41 -04:00

Client Examples

  • Client SSE, using reqwest and eventsource-client.
  • Client stdio, using tokio to spawn child process.
  • Everything, test with @modelcontextprotocol/server-everything
  • Collection, How to transpose service into dynamic object, so they will have a same type.

Server Examples

Transport Examples

Intergration

  • Rig A stream chatbot with rig

WASI

Use Mcp Inspector

npx @modelcontextprotocol/inspector