Title: How to get session_id in tool · Issue #485 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: How to get session_id in tool · Issue #485 · modelcontextprotocol/python-sdk
X Title: How to get session_id in tool · Issue #485 · modelcontextprotocol/python-sdk
Description: in the function of @mcp.tool , i want to get session_id, how i can get it?
Open Graph Description: in the function of @mcp.tool , i want to get session_id, how i can get it?
X Description: in the function of @mcp.tool , i want to get session_id, how i can get it?
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/485
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to get session_id in tool","articleBody":"in the function of @mcp.tool , i want to get session_id, how i can get it?","author":{"url":"https://github.com/bhxiaoxinba","@type":"Person","name":"bhxiaoxinba"},"datePublished":"2025-04-11T06:22:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/485/python-sdk/issues/485"}
| 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:b4acb872-ef61-4bf9-c344-48ae1ec345fb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8734:1321B0:FD7E97:1551559:6A612738 |
| html-safe-nonce | aebe9713a34075105b8837ec12f4cc7196dd0cd22ce13bd853c9e2de44f57044 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzM0OjEzMjFCMDpGRDdFOTc6MTU1MTU1OTo2QTYxMjczOCIsInZpc2l0b3JfaWQiOiIyNDgxMjA2MzM2NzE1NTY0ODU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b26ca2fcb68951298c6cf7fffae20b7425f3370f767f6ffd62acc6b23a0241d0 |
| hovercard-subject-tag | issue:2987668515 |
| 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/485/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cb5da8bf07cc5417237ccbba2b182cb06ba236daa7e38b668522dad0a883a13e/modelcontextprotocol/python-sdk/issues/485 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cb5da8bf07cc5417237ccbba2b182cb06ba236daa7e38b668522dad0a883a13e/modelcontextprotocol/python-sdk/issues/485 |
| og:image:alt | in the function of @mcp.tool , i want to get session_id, how i can get it? |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bhxiaoxinba |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6896275b704df9b9258326d49c8695aecd98d736cd9eeda7bcbb1790ac97d3ad |
| 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 | af89f6cd55841b57fa09b6b0ed9e3f8f2e94b05d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width