Title: Passing client context to tools · Issue #375 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Passing client context to tools · Issue #375 · modelcontextprotocol/python-sdk
X Title: Passing client context to tools · Issue #375 · modelcontextprotocol/python-sdk
Description: (This may be related to #373) I would like to be able to pass some "out of band" context to a tool in an MCP server. This would be separate from the arguments that are extracted by the LLM and provided to the tool function. How do I pass...
Open Graph Description: (This may be related to #373) I would like to be able to pass some "out of band" context to a tool in an MCP server. This would be separate from the arguments that are extracted by the LLM and prov...
X Description: (This may be related to #373) I would like to be able to pass some "out of band" context to a tool in an MCP server. This would be separate from the arguments that are extracted by the LL...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/375
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Passing client context to tools","articleBody":"(This may be related to https://github.com/modelcontextprotocol/python-sdk/issues/373)\n\nI would like to be able to pass some \"out of band\" context to a tool in an MCP server. This would be separate from the arguments that are extracted by the LLM and provided to the tool function.\n\nHow do I pass this \"extra\" data to the tool?\n\nThank you for any help.\n","author":{"url":"https://github.com/samirbajaj","@type":"Person","name":"samirbajaj"},"datePublished":"2025-03-26T14:59:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/375/python-sdk/issues/375"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ad9ba343-da3a-33a6-b380-9056416cdd01 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5F0:1F774:7D3A5:AB089:6A61418B |
| html-safe-nonce | fd6090866da4808d608099f4069d5d4ba6a1d52b781df34ec434ed4ca9fa74db |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUYwOjFGNzc0OjdEM0E1OkFCMDg5OjZBNjE0MThCIiwidmlzaXRvcl9pZCI6IjcyNjkzOTI5ODgyMDAwNTkyNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 39be68f612fdef44e36dee277490b4a0f6f272fcdcd029a55b422230c083d5d5 |
| hovercard-subject-tag | issue:2949932336 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/modelcontextprotocol/python-sdk/375/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6b19b3d3ad949550b5d7bf75a2934e2fabdfacbd5b9cb520fc9143ab77e8283f/modelcontextprotocol/python-sdk/issues/375 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6b19b3d3ad949550b5d7bf75a2934e2fabdfacbd5b9cb520fc9143ab77e8283f/modelcontextprotocol/python-sdk/issues/375 |
| og:image:alt | (This may be related to #373) I would like to be able to pass some "out of band" context to a tool in an MCP server. This would be separate from the arguments that are extracted by the LLM and prov... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | samirbajaj |
| hostname | github.com |
| expected-hostname | github.com |
| None | 358090e896abe1815bef70fcaae0a12d8ebf315874207428312daf7419e9c7c9 |
| turbo-cache-control | no-preview |
| 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 | 87be91c8b3c813d60ac5c8ece422529a03a7e332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width