René's URL Explorer Experiment


Title: MCPServer: content-block returns are unstructured, prompt messages take Image/Audio by maxisbey · Pull Request #3320 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: MCPServer: content-block returns are unstructured, prompt messages take Image/Audio by maxisbey · Pull Request #3320 · modelcontextprotocol/python-sdk

X Title: MCPServer: content-block returns are unstructured, prompt messages take Image/Audio by maxisbey · Pull Request #3320 · modelcontextprotocol/python-sdk

Description: Four small MCPServer/client fixes that remove traps the server docs would otherwise have to explain around. One commit per item so they can be reviewed (or dropped) independently. Behaviour change to call out in the release notes (item 1): a tool whose return annotation is a content-block type (-> EmbeddedResource, -> list[TextContent], -> tuple[TextContent, ...], -> str | TextContent, ...) or has Image/Audio as its list/tuple items no longer advertises outputSchema and no longer returns structuredContent; its content is unchanged. Pass structured_output=True to keep the old shape. Motivation and Context 1. Content-block, Image and Audio return annotations are unstructured (func_metadata) @mcp.tool() def f() -> EmbeddedResource published the pydantic schema of the EmbeddedResource class itself (~2 KB) as the tool's outputSchema and echoed the block into structuredContent a second time. Same for -> ResourceLink, -> TextContent, -> list[ContentBlock], tuple[...], unions. -> Image escaped only because Image is a plain class, and -> list[Image] / -> list[str | Image] / -> Image | Audio didn't register at all (PydanticSchemaGenerationError from create_model, outside the existing try). In auto-detect mode (structured_output=None), a return annotation that declares content blocks or the Image/Audio helpers — bare, as the items of a list/tuple/Sequence, or as the arms of a union (through Annotated/Optional) — now derives no output schema. That is the annotation-level mirror of what _convert_to_content already does with those values at runtime; mapping values and model fields are data and keep their schema exactly as before. structured_output=True still forces a schema. The check sits right before schema derivation, so there is one rule and one override; Annotated[CallToolResult, list[TextContent]] is covered by the same rule (on main that spelling failed every call unless structured_content was hand-built). Prompt.from_function and ResourceTemplate.from_function only ever needed the argument model but ran the same auto-detection, so an unschematizable return annotation on a prompt or resource template (-> list[SomePlainClass]) failed registration with a tool structured-output error; they now pass structured_output=False, which also keeps this rule from reaching beyond tools. 2. Prompt messages accept Image / Audio (prompts/base.py) Tools convert the helpers; UserMessage(Image(...)) was a pydantic validation error (client saw -32603), so you had to write Image(...).to_image_content(). Message.__init__ now does the same conversion str already gets. The dict form ({"role": "user", "content": Image(...)}) works too since validation goes through __init__. A prompt function may also return bare content the way a tool does — Image(...), a ready-made content block, or a list mixing captions and images — and each item becomes one user message; previously anything that wasn't a str/Message/dict was JSON-dumped (an Image arrived as its repr). That last part is its own commit (Prompt functions may return bare content blocks, Image or Audio) and can be dropped independently; the JSON-dump fallback for other values is untouched, and conversion errors (e.g. an unreadable media file) now reach the existing Error rendering prompt ... handler instead of being re-wrapped as Could not convert prompt result to message: . 3. Prompt message classes exported from mcp.server.mcpserver (__init__.py) Message, UserMessage, AssistantMessage are re-exported next to Image/Audio, so the prompt examples import everything from one place. (An earlier revision also let add_prompt() take a function like add_tool(); that was dropped — add_resource()/add_prompt() take built objects today, and changing the imperative registration API deserves its own pass across all three primitives. mcp.add_prompt(Prompt.from_function(fn, ...)) remains the runtime-registration spelling.) 4. Stale TODO in Client.send_roots_list_changed The comment claimed the server can't handle the notification; the lowlevel Server has on_roots_list_changed and tests/interaction/lowlevel/test_roots.py drives it. (The runtime deprecation warning currently fires once per decorated layer for the Client -> ClientSession delegations and for ctx.info() -> ctx.log() -> send_log_message; that is the same across ~10 call sites and is left for a follow-up rather than special-casing roots here.) How Has This Been Tested? New/updated unit tests: parametrized func_metadata cases (bare block, list[ContentBlock], list[str | Image], tuple[Audio, ...], Annotated[CallToolResult, list[TextContent]]), the structured_output=True override, a model with a content-block field staying structured; Image/Audio in UserMessage/AssistantMessage. Review-round pins: dict[str, TextContent] and a model with a block field stay structured; a prompt and a resource template with an unschematizable return annotation register; dict-form prompt message with an Image; bare Image/EmbeddedResource/[str, Image] prompt returns; tests/docs_src/test_structured_output.py proves the new page section. The existing test_tool_mixed_content flips to structured_content is None; test_tool_mixed_list_with_audio_and_image gets its real annotation back and loses a TODO plus three type: ignores. Exercised a user-style server over a real stdio subprocess before/after: on main the module fails to import (-> list[str | Image]), report/blocks advertise outputSchema, and the image prompt is an internal error; on this branch tools/list shows no outputSchema for the content tools (and still one for structured_output=True and a dict[str, float] control) and the prompt renders text/image/audio. Breaking Changes None. No signature, export, or documented behaviour changes; per VERSIONING.md these are bug fixes plus additive API for a minor release, so the migration guide is untouched. The one observable difference is item 1: tools whose return annotation is a content-block type stop advertising outputSchema and stop returning structuredContent (their content is unchanged). No docs page presented that shape as the intended contract (the media page says such results carry no output schema; the structured-output page enumerates models, TypedDicts, dataclasses, scalars and generics), and -> list[Image] not registering was a plain bug. It does show up in the everything-server's test_image_content / test_audio_content / test_embedded_resource / test_multiple_content_types; the conformance scenarios only assert on content, so they are unaffected. Anyone who wants the old shape passes structured_output=True. docs/servers/structured-output.md gets two sentences so the published page stays accurate. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context Not done here, noted as follow-ups: Deprecated public methods delegating to other deprecated public methods emit MCPDeprecationWarning once per layer (Client.set_logging_level/subscribe_resource/unsubscribe_resource/send_progress_notification/send_roots_list_changed, and Context.debug/info/warning/error -> log -> ServerSession.send_log_message). The clean fix is undecorated private bodies that both public layers call, plus a "one warning per call, attributed to the caller" regression test. (The roots deprecation text cites SEP-2577; the notification's removal at 2026-07-28 is SEP-2575 — same pass.) Typing indirections: type X = ... (PEP 695) and NewType return annotations are not unwrapped by the content rule, by the existing InputRequiredResult stripping, or by Annotated[CallToolResult, ...] detection (baseline behaviour, not a regression). One alias-resolution step on the inspected return type feeding all three is the right place. _try_create_model_and_schema builds its wrapper models outside the try, so -> list[SomePlainClass] on a tool (and structured_output=True with -> list[Image], or dict[str, Image]) still raises a raw PydanticSchemaGenerationError instead of falling back / raising InvalidSignature. Path-backed Image/Audio are read and base64-encoded on the event loop wherever they are converted: Tool.run -> convert_result -> _convert_to_content (since v1), Message.__init__ inside an async prompt function, and now render's bare-content arm. Fix once, in the helpers or inside the existing worker-thread hop, for tools and prompts together. Prompt message roles: UserMessage and AssistantMessage both declare role: Literal["user", "assistant"] (as in v1), so a dict-form {"role": "assistant", ...} materialises as UserMessage(role="assistant") — wire output is right, isinstance(msg, AssistantMessage) is not. The validator is now left-to-right so content is converted once. Narrowing each subclass to its own literal and discriminating on role works at runtime but trips pyright strict (reportIncompatibleVariableOverride), so the real fix is a small hierarchy reshape plus a decision on whether UserMessage(x, role="assistant") should keep constructing. The docs pages that motivated this (media, prompts) are being rewritten separately; the doc edits here are only the ones needed to keep currently published statements true. AI Disclaimer

Open Graph Description: Four small MCPServer/client fixes that remove traps the server docs would otherwise have to explain around. One commit per item so they can be reviewed (or dropped) independently. Behaviour change ...

X Description: Four small MCPServer/client fixes that remove traps the server docs would otherwise have to explain around. One commit per item so they can be reviewed (or dropped) independently. Behaviour change ...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/3320

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:fdee3b12-c5da-06e1-41a0-7abcbf445a58
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id81F2:3FC0A2:1EAE78:294D58:6B05DB8B
html-safe-nonce33fde2c249313404725757ae4afb72d83aba1570189f3ad687f7be58e3b8f674
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUYyOjNGQzBBMjoxRUFFNzg6Mjk0RDU4OjZCMDVEQjhCIiwidmlzaXRvcl9pZCI6IjYzNTI4NTYzODYxMDc3MjY3MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace799ac9c9763da62ff21d707f1c1099ffbab54cbd8b9b144c1e9eb198dfcb8be
hovercard-subject-tagpull_request:4290724030
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/3320/files
twitter:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
og:image:altFour small MCPServer/client fixes that remove traps the server docs would otherwise have to explain around. One commit per item so they can be reviewed (or dropped) independently. Behaviour change ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneab9d6b164c6e5b32656ef80f1a302b2dafee4e4c9360ef3fced66da06fb522fa
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2db8c3558610af6beef9310dcf5537e201a6e5fb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3320%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3320%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues321 (321)https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://github.com/modelcontextprotocol/python-sdk/security
Insightshttps://github.com/modelcontextprotocol/python-sdk/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
mcpserver-content-and-prompt-ergonomicshttps://github.com/modelcontextprotocol/python-sdk/tree/mcpserver-content-and-prompt-ergonomics
Conversation 42 https://github.com/modelcontextprotocol/python-sdk/pull/3320
Commits 11 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits
Checks 41 https://github.com/modelcontextprotocol/python-sdk/pull/3320/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/3320/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
MCPServer: content-block returns are unstructured, prompt messages take Image/Audio https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#top
Show all changes 11 commits https://github.com/modelcontextprotocol/python-sdk/pull/3320/files
02a0c5e Remove stale TODO from Client.send_roots_list_changed maxisbey Aug 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/02a0c5e68fd56d3f0a15344fb505eba6223c390f
5234189 Accept Image and Audio helpers as prompt message content maxisbey Aug 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/523418995d04f74d215da6c9af0a9b3c38d82b4e
0be83f5 Treat content-block, Image and Audio return annotations as unstructur… maxisbey Aug 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/0be83f5e4f82fd60d66697274209804b72df1c47
d26de07 Let MCPServer.add_prompt take a function; export prompt Message classes maxisbey Aug 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/d26de07100428444cec66fc1da648703c6ca35fc
988fbbf Leave the migration guide alone; these are 2.x fixes, not v1->v2 breaks maxisbey Aug 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/988fbbf711de39f4ac3d8476c376a70194b60cec
b1f7a29 Drop the add_prompt(fn) overload; keep only the Message re-exports maxisbey Aug 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/b1f7a298dbcf905addb18bd4ab2d0c69ba28f436
9cc83c9 Review round: mirror _convert_to_content in the content rule; keep pr… maxisbey Aug 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/9cc83c931640f7f32f6844679d9863ec29af5726
2251112 Prompt functions may return bare content blocks, Image or Audio maxisbey Aug 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/2251112243f6521b662b9021d438e9514197609c
6f95028 Review nits: Annotated recursion looks at the type only; drop Iterabl… maxisbey Aug 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/6f95028f181c682fb26be72219de57302780cb09
6015f97 Prompt render: let conversion errors surface; validate dict messages … maxisbey Aug 17, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/6015f97b3150fe9cbab544657a4f55de4f9358bd
4fadfdd Document that path-backed Image/Audio message content reads the file … maxisbey Aug 17, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/4fadfddab167951ebd9b3762eda415ff53da67f9
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/3320/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
structured-output.md https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-6cdb67ce182e70a37d1f810c4d392afc68e9dcd0e7b7904fe608e6e33ce42b92
client.py https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
__init__.py https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-1212dd4293d9fb8b9118c5b2f2afed4b9d4f227de7717f269aa0d64a251ce6e0
base.py https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
templates.py https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-44c89eefb9a0f376f6c3004ad4a44828e0403a96114fe008c0dd7a708abde7cc
server.py https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-51d6996c0b80b8a5c42e7071451cb9ed3c91b398facebe99b94aad911059190e
func_metadata.py https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
test_structured_output.py https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-e398ccdbd1b381bb3ab98d3f53d0bdc950d29cc70318dbbc2e24399c615a2cc8
test_base.py https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-6ccb3f45c2025086b1ca3e761516276354e6cb47cb6f7322b884a8798e2b8c93
test_resource_template.py https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-1984957e9d1e3a3e525ce9a3707676cae0b81fd98ba0866abf8ce087e1c443b6
test_func_metadata.py https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-441229bc4427c8d5e50cc305a07b43d42f2a292682cf4b0161e59b4f4685e9b8
test_server.py https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34
docs/servers/structured-output.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-6cdb67ce182e70a37d1f810c4d392afc68e9dcd0e7b7904fe608e6e33ce42b92
View file https://github.com/modelcontextprotocol/python-sdk/blob/4fadfddab167951ebd9b3762eda415ff53da67f9/docs/servers/structured-output.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3320/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-6cdb67ce182e70a37d1f810c4d392afc68e9dcd0e7b7904fe608e6e33ce42b92
https://github.com/modelcontextprotocol/python-sdk/pull/3320/checks?check_run_id=95388395826
claudehttps://github.com/apps/claude
Aug 17, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#r3796447810
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-6cdb67ce182e70a37d1f810c4d392afc68e9dcd0e7b7904fe608e6e33ce42b92
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-6cdb67ce182e70a37d1f810c4d392afc68e9dcd0e7b7904fe608e6e33ce42b92
src/mcp/client/client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
View file https://github.com/modelcontextprotocol/python-sdk/blob/4fadfddab167951ebd9b3762eda415ff53da67f9/src/mcp/client/client.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3320/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
src/mcp/server/mcpserver/__init__.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-1212dd4293d9fb8b9118c5b2f2afed4b9d4f227de7717f269aa0d64a251ce6e0
View file https://github.com/modelcontextprotocol/python-sdk/blob/4fadfddab167951ebd9b3762eda415ff53da67f9/src/mcp/server/mcpserver/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3320/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-1212dd4293d9fb8b9118c5b2f2afed4b9d4f227de7717f269aa0d64a251ce6e0
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-1212dd4293d9fb8b9118c5b2f2afed4b9d4f227de7717f269aa0d64a251ce6e0
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-1212dd4293d9fb8b9118c5b2f2afed4b9d4f227de7717f269aa0d64a251ce6e0
src/mcp/server/mcpserver/prompts/base.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
View file https://github.com/modelcontextprotocol/python-sdk/blob/4fadfddab167951ebd9b3762eda415ff53da67f9/src/mcp/server/mcpserver/prompts/base.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3320/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
https://github.com/modelcontextprotocol/python-sdk/pull/3320/checks?check_run_id=95388395826
claudehttps://github.com/apps/claude
Aug 17, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#r3796447802
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
https://github.com/modelcontextprotocol/python-sdk/pull/3320/checks?check_run_id=95388395826
claudehttps://github.com/apps/claude
Aug 17, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#r3796447815
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
src/mcp/server/mcpserver/resources/templates.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-44c89eefb9a0f376f6c3004ad4a44828e0403a96114fe008c0dd7a708abde7cc
View file https://github.com/modelcontextprotocol/python-sdk/blob/4fadfddab167951ebd9b3762eda415ff53da67f9/src/mcp/server/mcpserver/resources/templates.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3320/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-44c89eefb9a0f376f6c3004ad4a44828e0403a96114fe008c0dd7a708abde7cc
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-44c89eefb9a0f376f6c3004ad4a44828e0403a96114fe008c0dd7a708abde7cc
src/mcp/server/mcpserver/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-51d6996c0b80b8a5c42e7071451cb9ed3c91b398facebe99b94aad911059190e
View file https://github.com/modelcontextprotocol/python-sdk/blob/4fadfddab167951ebd9b3762eda415ff53da67f9/src/mcp/server/mcpserver/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3320/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-51d6996c0b80b8a5c42e7071451cb9ed3c91b398facebe99b94aad911059190e
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-51d6996c0b80b8a5c42e7071451cb9ed3c91b398facebe99b94aad911059190e
src/mcp/server/mcpserver/utilities/func_metadata.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
View file https://github.com/modelcontextprotocol/python-sdk/blob/4fadfddab167951ebd9b3762eda415ff53da67f9/src/mcp/server/mcpserver/utilities/func_metadata.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3320/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
https://github.com/modelcontextprotocol/python-sdk/pull/3320/checks?check_run_id=95388395826
claudehttps://github.com/apps/claude
Aug 17, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#r3796447806
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
tests/docs_src/test_structured_output.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-e398ccdbd1b381bb3ab98d3f53d0bdc950d29cc70318dbbc2e24399c615a2cc8
View file https://github.com/modelcontextprotocol/python-sdk/blob/4fadfddab167951ebd9b3762eda415ff53da67f9/tests/docs_src/test_structured_output.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3320/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-e398ccdbd1b381bb3ab98d3f53d0bdc950d29cc70318dbbc2e24399c615a2cc8
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-e398ccdbd1b381bb3ab98d3f53d0bdc950d29cc70318dbbc2e24399c615a2cc8
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-e398ccdbd1b381bb3ab98d3f53d0bdc950d29cc70318dbbc2e24399c615a2cc8
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-e398ccdbd1b381bb3ab98d3f53d0bdc950d29cc70318dbbc2e24399c615a2cc8
https://github.com/modelcontextprotocol/python-sdk/pull/3320/files#diff-e398ccdbd1b381bb3ab98d3f53d0bdc950d29cc70318dbbc2e24399c615a2cc8
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3320/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.