René's URL Explorer Experiment


Title: Add resolver dependency injection for MCPServer tools by Kludex · Pull Request #2969 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Add resolver dependency injection for MCPServer tools by Kludex · Pull Request #2969 · modelcontextprotocol/python-sdk

X Title: Add resolver dependency injection for MCPServer tools by Kludex · Pull Request #2969 · modelcontextprotocol/python-sdk

Description: Summary Adds server-side dependency injection for @mcp.tool() functions. A tool parameter annotated Annotated[T, Resolve(fn)] is filled by running the resolver fn before the tool body, instead of by the calling LLM. Resolvers form a dependency graph: a resolver may declare its own Resolve(...) dependencies, read the Context (including the new Context.headers), and receive the tool's own arguments by name. A resolver may return Elicit[T] to ask the client; the SDK runs the elicitation and injects the answer. Each resolver runs at most once per tools/call. from typing import Annotated from pydantic import BaseModel from mcp.server.mcpserver import Elicit, MCPServer, Resolve mcp = MCPServer(name="github") class Login(BaseModel): username: str class Confirm(BaseModel): ok: bool async def login() -> Login | Elicit[Login]: if username := saved_login(): # already known: no question return Login(username=username) return Elicit("GitHub username?", Login) # must ask async def confirm(repo: str, login: Annotated[Login, Resolve(login)]) -> Elicit[Confirm]: return Elicit(f"Star {repo} as {login.username}?", Confirm) @mcp.tool() async def star_repo( repo: str, login: Annotated[Login, Resolve(login)], confirm: Annotated[Confirm, Resolve(confirm)], ) -> str: """Star a GitHub repo.""" return f"starred {repo} as {login.username}" if confirm.ok else "cancelled" Design Mechanism reuses the existing Context-injection seam: resolvers are detected at registration (Tool.from_function), excluded from the tool's JSON input schema via skip_names, and supplied at call time through arguments_to_pass_directly - so they bypass argument validation exactly like Context does today. A client that sends a value for a resolved parameter anyway is ignored: the resolver's value is the only one the tool can receive. Headers come from the Context, not a Starlette Request: a new transport-agnostic Context.headers property (None on stdio, or when the transport's request object carries no headers). Headers are client-supplied input - fine for a locale or a feature flag; an identity still comes from the authorization layer, never from a header the caller can set. The docs say this explicitly. Exactly-once is per-call resolver memoization (keyed by function identity); cross-call idempotency is intentionally out of scope. Decline/cancel handling is driven by the consumer's annotation. Annotating the unwrapped model (Annotated[Login, Resolve(login)]) injects the model on accept and aborts the call with an error result on decline/cancel. Annotating ElicitationResult[Login] (or the explicit union) lets the consumer match on accept/decline/cancel instead: @mcp.tool() async def whoami( login: Annotated[ElicitationResult[Login], Resolve(login)], ) -> str: match login: case AcceptedElicitation(data=data): return f"hi {data.username}" case _: return "no username provided" The resolver dependency graph is analyzed once at registration: unclassifiable resolver parameters and cyclic dependencies raise InvalidSignature there. Docs & examples New tutorial page Dependencies (docs/tutorial/dependencies.md), with complete runnable snippets under docs_src/dependencies/ proven by tests/docs_src/test_dependencies.py (8 tests). The elicitation tutorial gained an "Ask before the tool runs" section for the eliciting form. New story examples/stories/refund_desk/: a back-office refund server where the amount is resolver-computed from the order record and never appears in the input schema, so the model cannot supply it. Runs in the stories matrix (uv run python -m stories.refund_desk.client). docs/migration.md documents the one behavioral change (below). Notes One behavioral change, documented in the migration guide: ElicitationResult is now a subscriptable TypeAliasType (so ElicitationResult[T] works in annotations) instead of a plain union, which makes a runtime isinstance(result, ElicitationResult) raise TypeError - check against the member classes (AcceptedElicitation etc.) instead. Everything else is additive. New public symbols (Resolve, Elicit, and the re-exported elicitation result types) live in mcp.server.mcpserver, not top-level mcp. Resolvers and their referenced types must be resolvable by typing.get_type_hints, matching the existing limitation for tool parameter types (locally-scoped types under from __future__ import annotations are not resolvable - this is pre-existing, not introduced here). Scoped to tools; resources/prompts use a different injection path and can follow. Tests tests/server/mcpserver/test_resolve.py (26 tests, 100% coverage of resolve.py): direct value vs Elicit, accept/decline for both unwrapped and union consumers, nested resolvers, exactly-once memoization (including bound-method resolvers), by-name tool-arg injection incl. aliased fields, schema exclusion, sync resolvers, non-BaseModel resolver returns, single-validation-pass semantics, and registration-time cycle/unresolvable-param errors. Plus the docs-snippet tests and the refund_desk story legs above. AI Disclaimer

Open Graph Description: Summary Adds server-side dependency injection for @mcp.tool() functions. A tool parameter annotated Annotated[T, Resolve(fn)] is filled by running the resolver fn before the tool body, instead of b...

X Description: Summary Adds server-side dependency injection for @mcp.tool() functions. A tool parameter annotated Annotated[T, Resolve(fn)] is filled by running the resolver fn before the tool body, instead of b...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:622cc964-1308-5b7a-f1f5-b873141514a9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE60A:2B39AA:102AA87:1543218:6A5BC5FC
html-safe-noncec148ad3dafd0d0fac189491a0a28fc3cbe8f9c343b6f8f44fbface92ad99000e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjBBOjJCMzlBQToxMDJBQTg3OjE1NDMyMTg6NkE1QkM1RkMiLCJ2aXNpdG9yX2lkIjoiNzc0NDA5NzI3OTcxNjczNTk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacafe52ee51d0619353f0baae09759292b5f7cbdc68503f7c5c470a99ee9d5152e
hovercard-subject-tagpull_request:3935675337
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/2969/files
twitter:imagehttps://avatars.githubusercontent.com/u/7353520?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7353520?s=400&v=4
og:image:altSummary Adds server-side dependency injection for @mcp.tool() functions. A tool parameter annotated Annotated[T, Resolve(fn)] is filled by running the resolver fn before the tool body, instead of b...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2969%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2969%2Ffiles
Sign up https://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/2969/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files
modelcontextprotocol https://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Fork 3.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Star 23.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 259 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 306 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
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
resolver-dependency-injectionhttps://github.com/modelcontextprotocol/python-sdk/tree/resolver-dependency-injection
Conversation 55 https://github.com/modelcontextprotocol/python-sdk/pull/2969
Commits 21 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits
Checks 36 https://github.com/modelcontextprotocol/python-sdk/pull/2969/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/2969/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files
Add resolver dependency injection for MCPServer tools https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#top
Show all changes 21 commits https://github.com/modelcontextprotocol/python-sdk/pull/2969/files
e58ff02 Add resolver dependency injection for MCPServer tools Kludex Jun 25, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/e58ff0288a67f9cf9ae4822f82fcd30e55c00863
e110093 Cover Context.headers and resolver schema-only paths Kludex Jun 25, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/e1100939bb04ce52adf5ad3254d43498d33b22ef
cafe8f3 Resolve type hints for callable-object tools in resolver detection Kludex Jun 25, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/cafe8f325def42bb88dc2fb804c09a9174611a45
3f59ea3 Merge remote-tracking branch 'origin/main' into worktree-synthetic-si… Kludex Jun 25, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/3f59ea35b4e6a0f16a7be597f732b5fe2b65e68d
9e9282a Pin elicitation resolver tests to legacy mode for 2026-07-28 default Kludex Jun 25, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/9e9282a126bc3567af0f9facbef66f6652062382
c3ea531 Address cubic review: by-name aliasing, return-annotation, callable-r… Kludex Jun 25, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/c3ea531bb76cf7fdbb4c688d74477316cf0fc409
aac86dc Fix resolver edge cases: non-BaseModel returns, optional Context, bou… Kludex Jun 25, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/aac86dc0c8847489fd6b622df2b1229446f3b9ab
37c038c Validate resolver tool args once; key resolvers by method identity Kludex Jun 25, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/37c038c6fcdef965450469b6617be66d78e67d19
58238b1 Memoize built-in bound-method resolvers; stop mutating pre_validated Kludex Jun 25, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/58238b137d785156d083f97ddf67bcccb1b4e373
b7b8967 Make ElicitationResult subscriptable so the documented Resolve union … Kludex Jun 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/b7b89678f3ef7bbd625c9705bbbe55c67e451d77
163721f Merge remote-tracking branch 'origin/main' into worktree-synthetic-si… Kludex Jun 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/163721fb581d9599aa8d0475d356544d553d447d
b0424da Update test_resolve imports to mcp_types after the mcp-types package … Kludex Jun 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/b0424daf83deb5b623d32da1c85d9268cf66041b
8f677c9 Switch resolver docs/example to a delete-folder confirmation flow Kludex Jun 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/8f677c922a37ed03f8cd8b35a1d9dc41fe87bf9b
d22ce97 Merge remote-tracking branch 'origin/main' into resolver-dependency-i… Kludex Jun 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/d22ce97a9fce5a2056f91e491d914e02cb5f4b25
800d253 Reject union-wrapped Resolve; honor the bare ElicitationResult alias Kludex Jun 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/800d253a778b775b675e20463262eb87304fb8e0
6b10702 Note the ElicitationResult isinstance behavior change in the migratio… Kludex Jun 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/6b1070222cfdc5801c024cfacd69d6374f070d4c
f2106f5 Document resolver dependency injection in the elicitation tutorial; c… Kludex Jun 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/f2106f54c873cc4e079670c91e0bfc4d60b2c964
2f8b657 Merge remote-tracking branch 'origin/main' into resolver-dependency-i… maxisbey Jun 29, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/2f8b6576164e5b05b46fc7d3dff284f8c1c4f16f
b671eaa Return None from Context.headers when the request object has no headers maxisbey Jun 29, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/b671eaa3027f04083160cd530afedb082d4f4f7a
b2e0ba3 Add a Dependencies tutorial page for resolver injection maxisbey Jun 29, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/b2e0ba336b616e4c937a456dd748e7e875c03884
1795a2d Add refund_desk story: resolver-injected parameters hidden from the s… maxisbey Jun 29, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2969/commits/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/2969/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files
migration.md https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
context.md https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-3ff31c491375add2f52dcd7f895d6ebc4ea9ef1979db93413a78f646931fb096
dependencies.md https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-301122785b17090d2e32557bb4ba696d2c76840bedf2579fb085ba86b2800ed1
elicitation.md https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-2068b11b69cd428a977a3c38fa01e668b0970900bf62f0bfa712c6011cc02fd3
__init__.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-32c8ecf7abf21f32fa943ddcdea9f1d6a949ae532871ea1302eb4428b906b92d
tutorial001.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-1684c33eb69650705cad75c5640ae6b87fe18b8abd087e9e77de2be91b63996c
tutorial002.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-bf267d021ccd75f650048a0baed5d47ce669ebcdd5fc9559686ee27bd298a233
tutorial003.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-dad2e3aca112bebaf7f1bdcfe95ab56b434db6e5e98304a1a6da142cc5a7ef81
tutorial004.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-4a5a5153818d8a98d54611660e7b06c83f60201a873da43f5d251d811aa0a04b
README.md https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-eb36043b2439f0ee2fad3fb0df9ad6d6530e25acf10bba9b1df83c1278d16e02
README.md https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-cc297376751f78195533b5c7dec5e723df7aabe013e5abb4f23519d4b3996d2f
manifest.toml https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-3465e861f1dadb6428365d1d397e322cf53ad60e35501e6aef36abb00106b189
README.md https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-acb1cb1a1806735db8eed206d3c486f4f5888117866367424632190dfdae21a4
README.md https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-462512547eb82613de1b8446bd86a21c9c84fd0c32c42d68ac83e15e83527e83
__init__.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-4e8500919a5ad5682e5b406fd25ec2819d71f1201970bca2565c847c00334e09
client.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-d0764b08d7fc92b0edcd7a6adbd5276365fbdc32c645987711b13f1d71bcc585
server.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-cb5fb5564ec069b2e0a8453b740d885b62fec6f5409986ef07ff25bcba230ba4
mkdocs.yml https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-98d0f806abc9af24e6a7c545d3d77e8f9ad57643e27211d7a7b896113e420ed2
elicitation.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-c4db625b035748b41b473c918e7d296aa97e84921be651e4a165beaf95b83b29
__init__.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-1212dd4293d9fb8b9118c5b2f2afed4b9d4f227de7717f269aa0d64a251ce6e0
context.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-b8a980ea2822cbd7a2f938f77b794ef9df6724acb5d637fdf87c0ad2bfe2db1a
resolve.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-11e7b9b5b92bd12c2445dad78f3182ee7846a987d98a01a15aa454910cee97f3
base.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-b53a543261a9bc27476087bcb5fcf6e0d7e9d1b5b3df09e312f22b22ccffe761
func_metadata.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
test_dependencies.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-2c2e3ed20772cc0d8f2fb27b65184295a972f8330af8bff0faa7a831d0ef8880
test_elicitation.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-e0859047f8d747d60945aeff827a19c0db579dec605268a411e776ca257de141
test_func_metadata.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-441229bc4427c8d5e50cc305a07b43d42f2a292682cf4b0161e59b4f4685e9b8
test_resolve.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-5cf4640d448facc1292697df946c57e708a468be27bbac6cc04fd44584a97a21
test_server.py https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34
docs/migration.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/docs/migration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
docs/tutorial/context.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-3ff31c491375add2f52dcd7f895d6ebc4ea9ef1979db93413a78f646931fb096
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/docs/tutorial/context.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-3ff31c491375add2f52dcd7f895d6ebc4ea9ef1979db93413a78f646931fb096
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-3ff31c491375add2f52dcd7f895d6ebc4ea9ef1979db93413a78f646931fb096
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-3ff31c491375add2f52dcd7f895d6ebc4ea9ef1979db93413a78f646931fb096
docs/tutorial/dependencies.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-301122785b17090d2e32557bb4ba696d2c76840bedf2579fb085ba86b2800ed1
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/docs/tutorial/dependencies.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
docs/tutorial/elicitation.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-2068b11b69cd428a977a3c38fa01e668b0970900bf62f0bfa712c6011cc02fd3
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/docs/tutorial/elicitation.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-2068b11b69cd428a977a3c38fa01e668b0970900bf62f0bfa712c6011cc02fd3
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-2068b11b69cd428a977a3c38fa01e668b0970900bf62f0bfa712c6011cc02fd3
docs_src/dependencies/__init__.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-32c8ecf7abf21f32fa943ddcdea9f1d6a949ae532871ea1302eb4428b906b92d
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/docs_src/dependencies/__init__.py
Open in desktop https://desktop.github.com
docs_src/dependencies/tutorial001.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-1684c33eb69650705cad75c5640ae6b87fe18b8abd087e9e77de2be91b63996c
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/docs_src/dependencies/tutorial001.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
docs_src/dependencies/tutorial002.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-bf267d021ccd75f650048a0baed5d47ce669ebcdd5fc9559686ee27bd298a233
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/docs_src/dependencies/tutorial002.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
docs_src/dependencies/tutorial003.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-dad2e3aca112bebaf7f1bdcfe95ab56b434db6e5e98304a1a6da142cc5a7ef81
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/docs_src/dependencies/tutorial003.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
docs_src/elicitation/tutorial004.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-4a5a5153818d8a98d54611660e7b06c83f60201a873da43f5d251d811aa0a04b
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/docs_src/elicitation/tutorial004.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
examples/stories/README.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-eb36043b2439f0ee2fad3fb0df9ad6d6530e25acf10bba9b1df83c1278d16e02
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/examples/stories/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-eb36043b2439f0ee2fad3fb0df9ad6d6530e25acf10bba9b1df83c1278d16e02
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-eb36043b2439f0ee2fad3fb0df9ad6d6530e25acf10bba9b1df83c1278d16e02
examples/stories/legacy_elicitation/README.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-cc297376751f78195533b5c7dec5e723df7aabe013e5abb4f23519d4b3996d2f
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/examples/stories/legacy_elicitation/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-cc297376751f78195533b5c7dec5e723df7aabe013e5abb4f23519d4b3996d2f
examples/stories/manifest.tomlhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-3465e861f1dadb6428365d1d397e322cf53ad60e35501e6aef36abb00106b189
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/examples/stories/manifest.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-3465e861f1dadb6428365d1d397e322cf53ad60e35501e6aef36abb00106b189
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-3465e861f1dadb6428365d1d397e322cf53ad60e35501e6aef36abb00106b189
examples/stories/mrtr/README.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-acb1cb1a1806735db8eed206d3c486f4f5888117866367424632190dfdae21a4
View file https://github.com/modelcontextprotocol/python-sdk/blob/1795a2da0dd5aa0aa0768cbb52a0da5b128bc2cf/examples/stories/mrtr/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2969/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2969/files#diff-acb1cb1a1806735db8eed206d3c486f4f5888117866367424632190dfdae21a4
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2969/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2969/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

Viewport: width=device-width


URLs of crawlers that visited me.