-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
PR welcomePRs for this issue are welcome and will be reviewed by maintainersPRs for this issue are welcome and will be reviewed by maintainershelp wantedExtra attention is neededExtra attention is neededready for workEnough information for someone to start working onEnough information for someone to start working on
Description
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.
zilto
Metadata
Metadata
Assignees
Labels
PR welcomePRs for this issue are welcome and will be reviewed by maintainersPRs for this issue are welcome and will be reviewed by maintainershelp wantedExtra attention is neededExtra attention is neededready for workEnough information for someone to start working onEnough information for someone to start working on