mcp-rust-sdk

mcp-rust-sdk

3.3

If you are the rightful owner of mcp-rust-sdk and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This repository contains a simple example of a Model Context Protocol (MCP) server implemented in Rust using a newline-delimited JSON stdio transport.

The Rust MCP Stdio Server Test is a basic implementation of a Model Context Protocol (MCP) server designed for learning and debugging purposes. It is implemented in Rust and uses newline-delimited JSON for stdio transport. The server handles the MCP initialization handshake and supports basic list commands such as `tools/list`, `resources/list`, and `prompts/list`. Additionally, it includes a dummy tool call (`tools/call`) to demonstrate functionality. This project is intended as a test implementation to help developers understand and experiment with MCP server-client interactions.

Features

  • MCP Initialization Handshake: Handles the initial handshake process for establishing communication between the server and client.
  • Basic List Commands: Supports basic list commands like `tools/list`, `resources/list`, and `prompts/list` to query available tools and resources.
  • Dummy Tool Call: Includes a dummy tool call (`tools/call`) for testing and demonstration purposes.
  • Logging: Supports logging with configurable verbosity using the `RUST_LOG` environment variable.
  • Newline-delimited JSON: Utilizes newline-delimited JSON for stdio communication, ensuring compatibility with various MCP clients.