Skip to content

FastMCP should support all of RFC 6570 #378

Closed

Description

@ciccolo-anthropic

Is your feature request related to a problem? Please describe.
The MCP protocol docs state that resource templates are specified according to RFC 6570. But the MCP code uses a regex that rejects some valid URI templates. In particular, it rejects templates with multiple optional params like search://emails{?query,start,end}, which would be useful to have.

Describe the solution you'd like
FastMCP accepts and correctly handles any valid RFC 6570 template.

Describe alternatives you've considered
Optional params can be made mandatory with the tool treating an empty string as if the param was not set. If the full spec is too hard to implement, incrementally supporting it might still be useful.

Activity

  1. dsp-ant commented on Mar 27, 2025

    @dsp-ant
    Member

    I think that's totally valid. I am not sure we have the time at the moment to work on it but feel free to send a PR.

  2. added theissue type on Mar 27, 2025
  3. codecracker007 commented on Mar 31, 2025

    @codecracker007

    hey @ciccolo-anthropic yes the full spec of 6570 will indeed be big do you have any priority or preference of the spec in mind on what can be added for now which can be used frequently Since some of the operators and expansions will be a bit annoying to work with when performing reverse matching on the URI template to variable names

    @dsp-ant do you guys plan on being full RFC 6570 spec complaint and support multiple levels of template expressions for now its just expansion with no operators right?

  4. ciccolo-anthropic commented on Mar 31, 2025

    @ciccolo-anthropic
    ContributorAuthor

    @codecracker007

    The specific inciting need I had was for multiple optional params; I honestly don't know 6570 well enough to prioritize beyond that.

  5. felixweinberger commented on Sep 30, 2025

    @felixweinberger
    Contributor

    #427 should be addressing this

  6. removed theissue type on Oct 7, 2025
  7. added
    enhancementRequest for a new feature that's not currently supported
    P1Significant bug affecting many users, highly requested feature
    and removed on Oct 7, 2025
  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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions