Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ see [Client Transports](https://ruby.sdk.modelcontextprotocol.io/client/transpor

## Examples

Runnable examples are available in [`examples/`](https://github.com/modelcontextprotocol/ruby-sdk/tree/main/examples),
Runnable examples are available in [`examples`](https://github.com/modelcontextprotocol/ruby-sdk/tree/main/examples),
including a complete Rails application in [`examples/rails`](https://github.com/modelcontextprotocol/ruby-sdk/tree/main/examples/rails).

## Documentation
Expand Down
4 changes: 2 additions & 2 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permalink: /examples/

# Examples

Runnable examples live in [`examples/`](https://github.com/modelcontextprotocol/ruby-sdk/tree/main/examples) in the repository.
Runnable examples live in [`examples`](https://github.com/modelcontextprotocol/ruby-sdk/tree/main/examples) in the repository.

## Standalone Scripts

Expand All @@ -30,7 +30,7 @@ See [`examples/README.md`](https://github.com/modelcontextprotocol/ruby-sdk/blob

[`examples/rails`](https://github.com/modelcontextprotocol/ruby-sdk/tree/main/examples/rails) is a complete, minimal
Rails application serving an MCP server over the Streamable HTTP transport. The server and transport are built once
at boot and mounted at `/mcp` in `config/routes.rb`; tools live in `app/tools/`, and a text resource is served through
at boot and mounted at `/mcp` in `config/routes.rb`; tools live in `app/tools`, and a text resource is served through
a `resources_read_handler`.

```console
Expand Down
4 changes: 2 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ The client will:
- Provide an interactive menu to trigger notifications
- Display all received SSE events in real-time

### 7. Rails Server (`rails/`)
### 7. Rails Server (`rails`)

A minimal Rails application that mounts `StreamableHTTPTransport` in its routes, following the "Rails (mount)" pattern from the top-level README.
It demonstrates class-based tools in `app/tools/` and a resource with a read handler.
It demonstrates class-based tools in `app/tools` and a resource with a read handler.

**Usage:**

Expand Down
Loading