Title: Middleware Support in MCP · Issue #1233 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Middleware Support in MCP · Issue #1233 · modelcontextprotocol/python-sdk
X Title: Middleware Support in MCP · Issue #1233 · modelcontextprotocol/python-sdk
Description: Description We need a proper middleware mechanic in the server code. This must support adding custom Starlette middlware and have a pre-defined order of middleware when auth is enabled. See FastMCP 2.0 for inspiration. References No resp...
Open Graph Description: Description We need a proper middleware mechanic in the server code. This must support adding custom Starlette middlware and have a pre-defined order of middleware when auth is enabled. See FastMCP...
X Description: Description We need a proper middleware mechanic in the server code. This must support adding custom Starlette middlware and have a pre-defined order of middleware when auth is enabled. See FastMCP...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/1233
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Middleware Support in MCP","articleBody":"### Description\n\nWe need a proper middleware mechanic in the server code. This must support adding custom Starlette middlware and have a pre-defined order of middleware when auth is enabled. See FastMCP 2.0 for inspiration.\n\n### References\n\n_No response_","author":{"url":"https://github.com/dsp-ant","@type":"Person","name":"dsp-ant"},"datePublished":"2025-08-04T10:52:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1233/python-sdk/issues/1233"}
| 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:62532a02-9fb4-ab9f-2a56-9e98b8babf0b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E360:141347:155367C:1C8A4E9:6A5B9F71 |
| html-safe-nonce | 4970d97113ff908b65b99b8e87ef94e467f13ba3dc709aecefa909926dee9349 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzYwOjE0MTM0NzoxNTUzNjdDOjFDOEE0RTk6NkE1QjlGNzEiLCJ2aXNpdG9yX2lkIjoiOTA3MzQ3NTY5MTQzODkwNzI0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cee108d99297368c9a3f47cf4d0a67e7c8b9a5ad171e2e9f9412b1a7934393bc |
| hovercard-subject-tag | issue:3288946937 |
| 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/1233/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6de17ed5b40bf605c0e315b431c21058a3a888254ea7187f12398e318bfdd255/modelcontextprotocol/python-sdk/issues/1233 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6de17ed5b40bf605c0e315b431c21058a3a888254ea7187f12398e318bfdd255/modelcontextprotocol/python-sdk/issues/1233 |
| og:image:alt | Description We need a proper middleware mechanic in the server code. This must support adding custom Starlette middlware and have a pre-defined order of middleware when auth is enabled. See FastMCP... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dsp-ant |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width