mcp 0.7.0 → 0.7.1
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 +9 -1
- data/SECURITY.md +21 -0
- data/lib/mcp/resource/contents.rb +2 -2
- data/lib/mcp/server.rb +5 -1
- data/lib/mcp/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1358d86b880959c1608cba8b747c9a13de95b9811f339c2d5811a3a18c7df410
|
|
4
|
+
data.tar.gz: ba8d2d0d5071468b56570830f579cdf5ab1d3f2b683c31722d7ed49b90fcc71b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44b4b01136379f1136084654534536fd269963ba2a010dda528a3b890a5f5416e54f0500e42154725aa9d5e594bedd7fd1944a20da89d2ff81bc9eb7b86e25fe
|
|
7
|
+
data.tar.gz: 8ac611adc761a1ddcbf5a0e5b51dcc8c0ec8f9a5f7f072bf9fa226b0db0eb439ebfca73c7e923f3820088375c40e5d30b319fcd1b7b4ffbcd304e0c23d36ac9c
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.7.1] - 2026-02-21
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fix `Resource::Contents#to_h` to use correct property names per MCP spec (#235)
|
|
15
|
+
- Return JSON-RPC protocol errors for unknown tool calls (#231)
|
|
16
|
+
- Fix `logging/setLevel` to return empty hash per MCP specification (#230)
|
|
17
|
+
|
|
10
18
|
## [0.7.0] - 2026-02-14
|
|
11
19
|
|
|
12
20
|
### Added
|
|
@@ -140,4 +148,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
140
148
|
|
|
141
149
|
## [0.1.0] - 2025-05-30
|
|
142
150
|
|
|
143
|
-
Initial release
|
|
151
|
+
Initial release in collaboration with Shopify
|
data/SECURITY.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
Thank you for helping keep the Model Context Protocol and its ecosystem secure.
|
|
4
|
+
|
|
5
|
+
## Reporting Security Issues
|
|
6
|
+
|
|
7
|
+
If you discover a security vulnerability in this repository, please report it through
|
|
8
|
+
the [GitHub Security Advisory process](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability)
|
|
9
|
+
for this repository.
|
|
10
|
+
|
|
11
|
+
Please **do not** report security vulnerabilities through public GitHub issues, discussions,
|
|
12
|
+
or pull requests.
|
|
13
|
+
|
|
14
|
+
## What to Include
|
|
15
|
+
|
|
16
|
+
To help us triage and respond quickly, please include:
|
|
17
|
+
|
|
18
|
+
- A description of the vulnerability
|
|
19
|
+
- Steps to reproduce the issue
|
|
20
|
+
- The potential impact
|
|
21
|
+
- Any suggested fixes (optional)
|
|
@@ -11,7 +11,7 @@ module MCP
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def to_h
|
|
14
|
-
{ uri: uri,
|
|
14
|
+
{ uri: uri, mimeType: mime_type }.compact
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
|
|
@@ -37,7 +37,7 @@ module MCP
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
def to_h
|
|
40
|
-
super.merge(
|
|
40
|
+
super.merge(blob: data)
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
end
|
data/lib/mcp/server.rb
CHANGED
|
@@ -362,6 +362,8 @@ module MCP
|
|
|
362
362
|
end
|
|
363
363
|
|
|
364
364
|
@logging_message_notification = logging_message_notification
|
|
365
|
+
|
|
366
|
+
{}
|
|
365
367
|
end
|
|
366
368
|
|
|
367
369
|
def list_tools(request)
|
|
@@ -375,7 +377,7 @@ module MCP
|
|
|
375
377
|
unless tool
|
|
376
378
|
add_instrumentation_data(tool_name: tool_name, error: :tool_not_found)
|
|
377
379
|
|
|
378
|
-
|
|
380
|
+
raise RequestHandlerError.new("Tool not found: #{tool_name}", request, error_type: :invalid_params)
|
|
379
381
|
end
|
|
380
382
|
|
|
381
383
|
arguments = request[:arguments] || {}
|
|
@@ -399,6 +401,8 @@ module MCP
|
|
|
399
401
|
end
|
|
400
402
|
|
|
401
403
|
call_tool_with_args(tool, arguments)
|
|
404
|
+
rescue RequestHandlerError
|
|
405
|
+
raise
|
|
402
406
|
rescue => e
|
|
403
407
|
report_exception(e, request: request)
|
|
404
408
|
|
data/lib/mcp/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mcp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Model Context Protocol
|
|
@@ -44,6 +44,7 @@ files:
|
|
|
44
44
|
- README.md
|
|
45
45
|
- RELEASE.md
|
|
46
46
|
- Rakefile
|
|
47
|
+
- SECURITY.md
|
|
47
48
|
- bin/console
|
|
48
49
|
- bin/generate-gh-pages.sh
|
|
49
50
|
- bin/rake
|
|
@@ -98,7 +99,7 @@ licenses:
|
|
|
98
99
|
- Apache-2.0
|
|
99
100
|
metadata:
|
|
100
101
|
allowed_push_host: https://rubygems.org
|
|
101
|
-
changelog_uri: https://github.com/modelcontextprotocol/ruby-sdk/releases/tag/v0.7.
|
|
102
|
+
changelog_uri: https://github.com/modelcontextprotocol/ruby-sdk/releases/tag/v0.7.1
|
|
102
103
|
homepage_uri: https://github.com/modelcontextprotocol/ruby-sdk
|
|
103
104
|
source_code_uri: https://github.com/modelcontextprotocol/ruby-sdk
|
|
104
105
|
bug_tracker_uri: https://github.com/modelcontextprotocol/ruby-sdk/issues
|