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 | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:d4f47eab-996d-7238-ee41-5f1e1701bffb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D2A4:AF682:24F52D5:34B45D5:6A58F725 |
| html-safe-nonce | 1c4cd59661a18c4ea0f9ce1c29d62899c95a4274b45246e42274f1b8b478a4aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkE0OkFGNjgyOjI0RjUyRDU6MzRCNDVENTo2QTU4RjcyNSIsInZpc2l0b3JfaWQiOiIyNDg3OTI2NjMzMzg4MzczNzk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0b80a0825e3e17b142a7b81fe1b2a7c3381ce3caf762dd2d57bf6a53b70435bd |
| 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/modelcontextprotocol/python-sdk/pull/2325/commits |
| 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