| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:1beb527e-892a-34fb-19e4-36f6e7b995e9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9E88:3F9CD1:2C8AA77:3A8E9FE:6B056B85 |
| html-safe-nonce | 1ef10210ffb25206286574e960495e7f105ecea5a6fd4d25f226f234c4b2d804 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTg4OjNGOUNEMToyQzhBQTc3OjNBOEU5RkU6NkIwNTZCODUiLCJ2aXNpdG9yX2lkIjoiMjYyMDI4NzU3NDAyMzE3MDk0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 95a87e7461c0b599f4f4d08f869a56d5d19d1f63626747f25048d4d854cc4f47 |
| hovercard-subject-tag | pull_request:3274895130 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/2042/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/9025f8cddecd02242b24fdc7f345181d8d3aa3b332b8e4240c52b31c757600a1/modelcontextprotocol/python-sdk/pull/2042 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9025f8cddecd02242b24fdc7f345181d8d3aa3b332b8e4240c52b31c757600a1/modelcontextprotocol/python-sdk/pull/2042 |
| og:image:alt | Summary
Fix find_context_parameter() to correctly detect Context parameters in callable class instances registered via FastMCP.add_tool().
Motivation and Context
When registering a callable class i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hashwnath |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b4256ac5f3e310e7945ef5b71c9cb9e264357b1eb20e91d369ed6502a4c486c |
| 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 | f089e689ad324655ac44bf6cdbc04d976105b374 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/2042#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2042 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2042 |
| 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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2042 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2042 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2042 |
| modelcontextprotocol | https://github.com/modelcontextprotocol |
| python-sdk | https://github.com/modelcontextprotocol/python-sdk |
| Code | https://github.com/modelcontextprotocol/python-sdk |
| Issues320 (320) | https://github.com/modelcontextprotocol/python-sdk/issues |
| Pull requests112 (112) | https://github.com/modelcontextprotocol/python-sdk/pulls |
| Actions | https://github.com/modelcontextprotocol/python-sdk/actions |
| Projects | https://github.com/modelcontextprotocol/python-sdk/projects |
| Security and quality12 (12) | https://github.com/modelcontextprotocol/python-sdk/security |
| Insights | https://github.com/modelcontextprotocol/python-sdk/insights |
| https://github.com/modelcontextprotocol/python-sdk |
| hashwnath | https://github.com/hashwnath |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| hashwnath:fix/context-parameter-callable-class | https://github.com/hashwnath/python-sdk/tree/fix/context-parameter-callable-class |
| Conversation | https://github.com/modelcontextprotocol/python-sdk/pull/2042 |
| Commits1 (1) | https://github.com/modelcontextprotocol/python-sdk/pull/2042/commits |
| Checks | https://github.com/modelcontextprotocol/python-sdk/pull/2042/checks |
| Files changed | https://github.com/modelcontextprotocol/python-sdk/pull/2042/files |
| fix: handle callable class instances in find_context_parameter() | https://github.com/modelcontextprotocol/python-sdk/pull/2042#top |
| hashwnath | https://github.com/hashwnath |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| hashwnath:fix/context-parameter-callable-class | https://github.com/hashwnath/python-sdk/tree/fix/context-parameter-callable-class |
|
| https://github.com/hashwnath |
| hashwnath | https://github.com/hashwnath |
| Feb 12, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2042#issue-3930327481 |
| _is_async_callable() | https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/server/mcpserver/tools/base.py#L119-L125 |
| #1974 | https://github.com/modelcontextprotocol/python-sdk/issues/1974 |
| MCP Documentation | https://modelcontextprotocol.io |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2042 |
|
| https://github.com/hashwnath |
| fix: handle callable class instances in find_context_parameter() | https://github.com/modelcontextprotocol/python-sdk/pull/2042/commits/2ed8c3ffc25ac93613cf74d247657f2d8b90c507 |
| 2ed8c3f | https://github.com/modelcontextprotocol/python-sdk/pull/2042/commits/2ed8c3ffc25ac93613cf74d247657f2d8b90c507 |
| modelcontextprotocol#1974 | https://github.com/modelcontextprotocol/python-sdk/issues/1974 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
|
bug
| https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Abug |
|
v2
| https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Av2 |
|
P3
| https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3AP3 |
| Mar 6, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2042#event-23329025440 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
| May 18, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2042#issuecomment-4480002865 |
| #2623 | https://github.com/modelcontextprotocol/python-sdk/pull/2623 |
| AI Disclaimer | https://gist.github.com/maxisbey/6123d132484e4c533eab519a2800693d |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2042 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
| May 18, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2042#event-25668501798 |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2042 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2042 |
|
bug
| https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Abug |
|
P3
| https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3AP3 |
|
v2
| https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Av2 |
|
find_context_parameter() fails to detect Context parameter in callable class instances
| https://github.com/modelcontextprotocol/python-sdk/issues/1974 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2042 |
|
| https://github.com/hashwnath |
|
| https://github.com/maxisbey |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |