Skip to content

Support for path convertor {value:path} in FastMCP #220

Description

@dsp-ant

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 this case a path convertor, such that

@app.resource("test://{foo:path}")

would match test://foo/bar.

We should consider adding a convertor approach or something similar to resource templates.

Activity

  1. beaterblank commented on Oct 7, 2025

    @beaterblank

    Hello, I'd like to work on this issue.

    FastAPI uses starlette converters for this, like here: https://github.com/Kludex/starlette/blob/main/starlette/convertors.py

    will implement something similar.

  2. added a commit that references this issue on Oct 7, 2025
  3. beaterblank commented on Oct 7, 2025

    @beaterblank

    Hello, I've addressed this in the pull request above.
    The URI matching logic now supports multiple parameter types, not just {foo : path}, but also {foo : int}, {foo : float}, {foo : str} and {foo : uuid}. (defaults to {foo : str})
    The design is also easily extensible to support additional types in the future.
    Please review it.
    Thank you!

  4. added
    enhancementRequest for a new feature that's not currently supported
    P1Significant bug affecting many users, highly requested feature
    needs maintainerPotentially serious issue - needs proactive fix and maintainer attention
    on Oct 7, 2025
  5. removed
    needs maintainerPotentially serious issue - needs proactive fix and maintainer attention
    on Dec 9, 2025
  6. fernando-torres-blip-ai commented on Dec 29, 2025

    @fernando-torres-blip-ai

    Any updates on this ?

  7. beaterblank commented on Dec 29, 2025

    @beaterblank

    please check #1439

  8. added
    needs decisionIssue is actionable, needs maintainer decision on whether to implement
    and removed
    ready for workEnough information for someone to start working on
    on Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Significant bug affecting many users, highly requested featureenhancementRequest for a new feature that's not currently supportedneeds decisionIssue is actionable, needs maintainer decision on whether to implement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions