Koichi ITO
af99a303e1
Make StreamableHTTPTransport a Rack application
...
## Motivation and Context
Add `call(env)` to `StreamableHTTPTransport`, making it a Rack application
that works with `mount`, `run`, and Rack middleware.
Refactor examples to use Rack middleware classes for MCP logging instead of proc wrappers,
demonstrating idiomatic Rack composition with the new `run(transport)` pattern.
Update README.md with mount and controller integration patterns.
Closes #59 , #60
## How Has This Been Tested?
Added tests for `call(env)` as a Rack app. All tests pass.
## Breaking Change
No breaking changes. All existing APIs are preserved:
- `StreamableHTTPTransport.new(server)` continues to work as before.
- `handle_request(request)` is unchanged. The new `call(env)` is a purely additive public method.
2026-04-10 04:55:25 +09:00
..
client
Join server threads before closing IO pipes in stdio client tests
2026-03-31 04:34:21 +09:00
resource
Fix Resource::Contents#to_h to use correct property names per MCP spec
2026-02-19 13:50:10 +09:00
server /transports
Make StreamableHTTPTransport a Rack application
2026-04-10 04:55:25 +09:00
tool
Merge pull request #237 from koic/replace_assert_empty_with_assert_equal_using_explicit_literals
2026-03-03 01:05:16 +09:00
annotations_test.rb
Replace assert_empty with assert_equal using explicit literals
2026-02-24 16:09:34 +09:00
client_test.rb
Support completion/complete per MCP specification
2026-04-03 01:35:07 +09:00
configuration_test.rb
Merge pull request #192 from koic/add_missing_assertion
2025-12-25 00:33:12 +09:00
content_test.rb
Add Content::EmbeddedResource class for embedded resource content type
2026-03-02 01:33:05 +09:00
icon_test.rb
Replace assert_empty with assert_equal using explicit literals
2026-02-24 16:09:34 +09:00
instrumentation_test.rb
Use autoload to defer loading of unused subsystems
2026-03-12 14:08:27 +09:00
logging_message_notification_test.rb
Add logging support
2026-01-26 22:23:46 +09:00
methods_test.rb
Use autoload to defer loading of unused subsystems
2026-03-12 14:08:27 +09:00
progress_test.rb
Auto-set server.transport in Transport#initialize
2026-04-09 12:08:55 +09:00
prompt_test.rb
Fix Prompt#validate_arguments! crash when arguments are nil
2026-03-01 17:21:41 +09:00
resource_template_test.rb
Omit icons from responses when empty or nil
2026-01-12 09:46:45 +09:00
resource_test.rb
Omit icons from responses when empty or nil
2026-01-12 09:46:45 +09:00
server_context_test.rb
Support POST response SSE streams for server-to-client messages
2026-04-04 19:20:31 +09:00
server_notification_test.rb
Auto-set server.transport in Transport#initialize
2026-04-09 12:08:55 +09:00
server_progress_test.rb
Auto-set server.transport in Transport#initialize
2026-04-09 12:08:55 +09:00
server_sampling_test.rb
Auto-set server.transport in Transport#initialize
2026-04-09 12:08:55 +09:00
server_test.rb
Support completion/complete per MCP specification
2026-04-03 01:35:07 +09:00
string_utils_test.rb
Fix ReDoS vulnerability in StringUtils#underscore
2026-01-09 01:14:52 +09:00
tool_test.rb
Allow $ref in Tool::Schema for protocol version 2025-11-25
2026-02-27 14:33:36 +09:00
transport_test.rb
Remove redundant require statements
2025-08-02 00:57:31 +09:00