Title: fix: support PEP 604 structured output unions by he-yufeng · Pull Request #2592 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix: support PEP 604 structured output unions by he-yufeng · Pull Request #2592 · modelcontextprotocol/python-sdk
X Title: fix: support PEP 604 structured output unions by he-yufeng · Pull Request #2592 · modelcontextprotocol/python-sdk
Description: Summary wrap FastMCP structured output annotations with Pydantic's explicit (annotation, ...) field form add regression coverage for dict | list | str return annotations Fixes #2591. To verify uv run pytest tests\server\mcpserver\test_func_metadata.py -q --basetemp .tmp\pytest -p no:cacheprovider uv run ruff check src\mcp\server\mcpserver\utilities\func_metadata.py tests\server\mcpserver\test_func_metadata.py uv run ruff format --check src\mcp\server\mcpserver\utilities\func_metadata.py tests\server\mcpserver\test_func_metadata.py git diff --check
Open Graph Description: Summary wrap FastMCP structured output annotations with Pydantic's explicit (annotation, ...) field form add regression coverage for dict | list | str return annotations Fixes #2591. To verif...
X Description: Summary wrap FastMCP structured output annotations with Pydantic's explicit (annotation, ...) field form add regression coverage for dict | list | str return annotations Fixes #2591. To v...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2592
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ef2a379c-888e-d0ed-0af2-b159246df908 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E61C:179BE3:6B39CC9:90F30A4:6A5E1A2A |
| html-safe-nonce | 1b0c1fb2530555389514a68545ec36389d16b56ba0b7b05dc10285f77ff72bf7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjFDOjE3OUJFMzo2QjM5Q0M5OjkwRjMwQTQ6NkE1RTFBMkEiLCJ2aXNpdG9yX2lkIjoiMTc2Nzk5NjE2NjQ2NDQ3NzczOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 00df3053466e57057f3df72e997c99ee65dfc21b7784b5997d2cd77c241959a1 |
| hovercard-subject-tag | pull_request:3683619132 |
| 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/2592/files |
| twitter:image | https://avatars.githubusercontent.com/u/40085740?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40085740?s=400&v=4 |
| og:image:alt | Summary wrap FastMCP structured output annotations with Pydantic's explicit (annotation, ...) field form add regression coverage for dict | list | str return annotations Fixes #2591. To verif... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7a60e060dad2c24f72179d36247204b454da37845d1728020cd42046a433f87f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0ae7f3ea7b1bb2f1f4623bb093bbf54cee05d830 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width