Title: fix: return INVALID_PARAMS (-32602) for resource-not-found errors by leoneperdigao · Pull Request #2325 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix: return INVALID_PARAMS (-32602) for resource-not-found errors by leoneperdigao · Pull Request #2325 · modelcontextprotocol/python-sdk
X Title: fix: return INVALID_PARAMS (-32602) for resource-not-found errors by leoneperdigao · Pull Request #2325 · modelcontextprotocol/python-sdk
Description: The official Python SDK for Model Context Protocol servers and clients - fix: return INVALID_PARAMS (-32602) for resource-not-found errors by leoneperdigao · Pull Request #2325 · modelcontextprotocol/python-sdk
Open Graph Description: Summary Fix read_resource() to raise MCPError(code=INVALID_PARAMS) instead of ResourceError, so resource-not-found errors return -32602 instead of 0 Aligns with the TypeScript SDK behavior and eme...
X Description: Summary Fix read_resource() to raise MCPError(code=INVALID_PARAMS) instead of ResourceError, so resource-not-found errors return -32602 instead of 0 Aligns with the TypeScript SDK behavior and eme...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2325
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:b673c1a7-f3d6-7c70-ea9d-52f0c4abf24e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8C5A:24E30E:DE6241:13F86C1:6A58997E |
| html-safe-nonce | a63a3c2707849dc6286cb5b92da9f0a4c47a9f6fe91568f93f9af0d1ceba913a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzVBOjI0RTMwRTpERTYyNDE6MTNGODZDMTo2QTU4OTk3RSIsInZpc2l0b3JfaWQiOiI5MzQ1MzA2Mzk5NTY4NDI4NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3a0c9a423f25362476b6bbcae18320bf2d4e1d47bd7ea977eae1e78e91a6d1a7 |
| hovercard-subject-tag | pull_request:3428169671 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/2325/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/842c90a587ed522587a28f0bcac9bca27be5d3ab3885f257b86dfaca0b1a6f4f/modelcontextprotocol/python-sdk/pull/2325 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/842c90a587ed522587a28f0bcac9bca27be5d3ab3885f257b86dfaca0b1a6f4f/modelcontextprotocol/python-sdk/pull/2325 |
| og:image:alt | Summary Fix read_resource() to raise MCPError(code=INVALID_PARAMS) instead of ResourceError, so resource-not-found errors return -32602 instead of 0 Aligns with the TypeScript SDK behavior and eme... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | leoneperdigao |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-cache |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width