Skip to content

Add rust example for Build an MCP client#2864

Open
amikai wants to merge 1 commit into
modelcontextprotocol:mainfrom
amikai:doc/build-rust-mcp-client
Open

Add rust example for Build an MCP client#2864
amikai wants to merge 1 commit into
modelcontextprotocol:mainfrom
amikai:doc/build-rust-mcp-client

Conversation

@amikai
Copy link
Copy Markdown
Contributor

@amikai amikai commented Jun 5, 2026

Summary

Add a full Rust example to the Build an MCP client documentation page.

The Rust MCP client code was implemented manually and is already merged in modelcontextprotocol/quickstart-resources#59. This PR documents how to build and run that existing example step by step.

How Has This Been Tested?

I personally recreated the Rust client from a new Cargo project by following the documentation step by step, without copying the completed quickstart source file.

The following checks were completed:

  • Ran cargo fmt --check
  • Ran cargo check
  • Verified bare cargo run prints the expected usage message
  • Connected the client to the Rust weather MCP server
  • Confirmed the client discovered the get_forecast and get_alerts tools
CleanShot 2025-10-25 at 10 50 02@2x

AI Assistance Disclosure

The Rust client coding example was implemented manually. AI assistance was used only to help write and refine the documentation. I personally reviewed the documentation and performed the step-by-step verification described above to confirm that the example works.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

@amikai amikai requested review from a team as code owners June 5, 2026 09:05
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 5, 2026
@amikai amikai force-pushed the doc/build-rust-mcp-client branch 2 times, most recently from 780b521 to 3204e0c Compare June 5, 2026 09:13
@amikai amikai force-pushed the doc/build-rust-mcp-client branch from 3204e0c to 3dcd7d6 Compare June 5, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant