Skip to content

[Doc] Add Ruby SDK example to build-server documentation#2264

Open
koic wants to merge 1 commit intomodelcontextprotocol:mainfrom
koic:add_ruby_sdk_example_to_build_server_documentation
Open

[Doc] Add Ruby SDK example to build-server documentation#2264
koic wants to merge 1 commit intomodelcontextprotocol:mainfrom
koic:add_ruby_sdk_example_to_build_server_documentation

Conversation

@koic
Copy link
Member

@koic koic commented Feb 17, 2026

Motivation and Context

Add a Ruby tab to the "Build an MCP server" tutorial page, following the same weather server pattern as other language examples.

The Ruby tab includes:

  • Environment setup using Bundler and the mcp gem
  • Helper methods using Net::HTTP for NWS API calls
  • Tool class definitions (GetAlerts and GetForecast) using MCP::Tool
  • Server initialization with StdioTransport

The implementation uses the Ruby SDK and aligns with the structure of existing Python, TypeScript, Java, Kotlin, C#, and Rust SDKs.

https://github.com/modelcontextprotocol/ruby-sdk

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

Add a Ruby tab to the "Build an MCP server" tutorial page,
following the same weather server pattern as other language examples.

The Ruby tab includes:

- Environment setup using Bundler and the `mcp` gem
- Helper methods using `Net::HTTP` for NWS API calls
- Tool class definitions (`GetAlerts` and `GetForecast`) using `MCP::Tool`
- Server initialization with StdioTransport

The implementation uses the Ruby SDK and aligns with the structure of
existing Python, TypeScript, Java, Kotlin, C#, and Rust SDKs.

https://github.com/modelcontextprotocol/ruby-sdk
@koic koic requested a review from a team as a code owner February 17, 2026 15:27

<Tab title='Ruby'>

Let's get started with building our weather server! [You can find the complete code for what we'll be building here.](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/weather-server-ruby)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link will be provided by modelcontextprotocol/quickstart-resources#104.

@localden
Copy link
Contributor

@jonathanhefner thoughts on this, given that you were working on some quickstart refactoring?

@localden localden added the documentation Improvements or additions to documentation label Feb 21, 2026
@localden localden requested a review from jonathanhefner March 10, 2026 00:20
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.

3 participants