model-context-protocol-rb 0.3.4 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -1
- data/README.md +745 -198
- data/lib/model_context_protocol/server/configuration.rb +79 -2
- data/lib/model_context_protocol/server/content.rb +321 -0
- data/lib/model_context_protocol/server/content_helpers.rb +84 -0
- data/lib/model_context_protocol/server/pagination.rb +71 -0
- data/lib/model_context_protocol/server/prompt.rb +106 -14
- data/lib/model_context_protocol/server/registry.rb +94 -18
- data/lib/model_context_protocol/server/resource.rb +95 -25
- data/lib/model_context_protocol/server/resource_template.rb +26 -13
- data/lib/model_context_protocol/server/streamable_http_transport.rb +211 -54
- data/lib/model_context_protocol/server/tool.rb +75 -53
- data/lib/model_context_protocol/server.rb +115 -18
- data/lib/model_context_protocol/version.rb +1 -1
- data/tasks/mcp.rake +28 -2
- data/tasks/templates/dev-http.erb +244 -0
- data/tasks/templates/dev.erb +7 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cb9fa1e4fc1430df1df1bd454f3f718cf3693afb7b412976751e7f44f56a10e
|
4
|
+
data.tar.gz: fc70eac6a64674c886cc246bb3fcc0efcf956f27d406d511cc833fe33a11fc77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2819592f7f0e3c3360e5265a0e15f73a92e6a4d439fc3fb86fcce99c41f8e08e03fd361bd1a8c31968c05334e55957a169c5f33f4586380347178edc89fb851
|
7
|
+
data.tar.gz: ba81388d3e7f1b7f903c6eb3f2094cbdc37d8a8e5ff9af605855d07708dab8fea5cf1c642a5e1e92e0121e5b2207fe1ac99ae563c21c0e0ead6d7157a53ecf4e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.4.0] - 2025-09-07
|
4
|
+
|
5
|
+
- Implement pagination support.
|
6
|
+
- Add support for server title and instructions.
|
7
|
+
- Implement resource annotations.
|
8
|
+
- Implement content responses and helper methods for easily serializing text, image, audio, embedded resource, and resource link content blocks.
|
9
|
+
- (Breaking) Simplify the ergonomics of `respond_with`.
|
10
|
+
- (Breaking) Rename `with_metadata` to `define`; this avoids confusion with the distinct concept of metadata in MCP.
|
11
|
+
- (Breaking) Nest argument declarations within `define` (formerly `with_metadata`).
|
12
|
+
- Allow prompts, resources, and tools to declare the `title` field.
|
13
|
+
- Implement default completion functionality.
|
14
|
+
- Implement structured content support for tools (with `output_schema` declaration and validation).
|
15
|
+
- Implement a prompt builder DSL for easily building a message history for a prompt; supports use of new content block helpers.
|
16
|
+
- Implement support for protocol negotiation.
|
17
|
+
- Finalize the initial working version of the streamable HTTP transport.
|
18
|
+
|
3
19
|
## [0.3.4] - 2025-09-02
|
4
20
|
|
5
21
|
- (Fix) Fixes broken arguments usage in prompts and tools.
|
@@ -51,7 +67,8 @@
|
|
51
67
|
|
52
68
|
- Initial release
|
53
69
|
|
54
|
-
[Unreleased]: https://github.com/dickdavis/model-context-protocol-rb/compare/v0.
|
70
|
+
[Unreleased]: https://github.com/dickdavis/model-context-protocol-rb/compare/v0.4.0...HEAD
|
71
|
+
[0.4.0]: https://github.com/dickdavis/model-context-protocol-rb/compare/v0.3.4...v0.4.0
|
55
72
|
[0.3.4]: https://github.com/dickdavis/model-context-protocol-rb/compare/v0.3.3...v0.3.4
|
56
73
|
[0.3.3]: https://github.com/dickdavis/model-context-protocol-rb/compare/v0.3.2...v0.3.3
|
57
74
|
[0.3.2]: https://github.com/dickdavis/model-context-protocol-rb/compare/v0.3.1...v0.3.2
|