Title: [v1.x] fix: reject trailing newline in tool-name validation by maxisbey · Pull Request #3086 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: [v1.x] fix: reject trailing newline in tool-name validation by maxisbey · Pull Request #3086 · modelcontextprotocol/python-sdk
X Title: [v1.x] fix: reject trailing newline in tool-name validation by maxisbey · Pull Request #3086 · modelcontextprotocol/python-sdk
Description: The official Python SDK for Model Context Protocol servers and clients - [v1.x] fix: reject trailing newline in tool-name validation by maxisbey · Pull Request #3086 · modelcontextprotocol/python-sdk
Open Graph Description: Backport of #3076 to v1.x. TOOL_NAME_REGEX is $-anchored and checked with re.match; in Python, $ also matches just before a single trailing newline, so a tool name like "name\n" validated...
X Description: Backport of #3076 to v1.x. TOOL_NAME_REGEX is $-anchored and checked with re.match; in Python, $ also matches just before a single trailing newline, so a tool name like "name\n" v...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/3086
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:fd4f6ba7-4b58-4361-865f-7eaf715898d9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EC04:9FF13:1686163:1F29CB1:6A572A7C |
| html-safe-nonce | b13903431ef94ce5e97d041b3762b75fca38add40bf2671afce7f2b98bf02454 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzA0OjlGRjEzOjE2ODYxNjM6MUYyOUNCMTo2QTU3MkE3QyIsInZpc2l0b3JfaWQiOiI2ODI4MzI3MDM4MzM4MTQ4OTg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2021864a2f959ec3dc0e0efb7ecd8becffc09afad35ca335f448a98452e51799 |
| hovercard-subject-tag | pull_request:4029524497 |
| 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/3086/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/c7f74e4c4e1416eaf2f72a5d8b11365909979909fef9a692a1091748c7ead596/modelcontextprotocol/python-sdk/pull/3086 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7f74e4c4e1416eaf2f72a5d8b11365909979909fef9a692a1091748c7ead596/modelcontextprotocol/python-sdk/pull/3086 |
| og:image:alt | Backport of #3076 to v1.x. TOOL_NAME_REGEX is $-anchored and checked with re.match; in Python, $ also matches just before a single trailing newline, so a tool name like "name\n" validated... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxisbey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width