Skip to content

FastMCP should support all of RFC 6570 #378

Open
@ciccolo-anthropic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions