Title: Support for `path` convertor `{value:path}` in FastMCP · Issue #220 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Support for `path` convertor `{value:path}` in FastMCP · Issue #220 · modelcontextprotocol/python-sdk
X Title: Support for `path` convertor `{value:path}` in FastMCP · Issue #220 · modelcontextprotocol/python-sdk
Description: Currently we do not allow for matching paths in resource templates, meaning that @app.resource("test://{foo}") will not match test://foo/bar. This is intended. However at times people want to explicitly match paths. FastAPI offers in thi...
Open Graph Description: Currently we do not allow for matching paths in resource templates, meaning that @app.resource("test://{foo}") will not match test://foo/bar. This is intended. However at times people want to expli...
X Description: Currently we do not allow for matching paths in resource templates, meaning that @app.resource("test://{foo}") will not match test://foo/bar. This is intended. However at times people wan...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/220
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for `path` convertor `{value:path}` in FastMCP","articleBody":"Currently we do not allow for matching paths in resource templates, meaning that\n\n```\n@app.resource(\"test://{foo}\")\n```\n\nwill not match `test://foo/bar`. This is intended. However at times people want to explicitly match paths. FastAPI offers in this case a `path` convertor, such that\n\n```\n@app.resource(\"test://{foo:path}\")\n```\n\nwould match `test://foo/bar`.\n\nWe should consider adding a convertor approach or something similar to resource templates.","author":{"url":"https://github.com/dsp-ant","@type":"Person","name":"dsp-ant"},"datePublished":"2025-02-20T11:28:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/220/python-sdk/issues/220"}
| 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:dac27a7b-9b65-cb0e-cadb-ece25600b9fb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED7E:37DD1D:A2F566:E68FEA:697252D2 |
| html-safe-nonce | b7086d16a213407f74e84122656876b5f6848640d25b219f49840b9eb2fb77ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDdFOjM3REQxRDpBMkY1NjY6RTY4RkVBOjY5NzI1MkQyIiwidmlzaXRvcl9pZCI6IjYwODIzNDMzNDcwMjYwMjMxMjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8d19958ca3d8624ec2d7305f6b3edc373de7eacb1e05ace9a0384d1bea2ec19a |
| hovercard-subject-tag | issue:2865887824 |
| 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/220/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9cf285022439d9742c4b888f9b401b55b64d1a281cb3fb76cbd4c2170c1b6d97/modelcontextprotocol/python-sdk/issues/220 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9cf285022439d9742c4b888f9b401b55b64d1a281cb3fb76cbd4c2170c1b6d97/modelcontextprotocol/python-sdk/issues/220 |
| og:image:alt | Currently we do not allow for matching paths in resource templates, meaning that @app.resource("test://{foo}") will not match test://foo/bar. This is intended. However at times people want to expli... |
| 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 | f6d9b08324bb62b2cf170b9e435da2bdc7efa5aa93e7ca70ee3162552c05329b |
| 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 | 169d2b5c72bff9cc676084f0ac7f8ea888f15f54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width