According to the Model Context Protocol Specification, the uriTemplate should support RFC 6570.
{
uriTemplate: string; // URI template following RFC 6570
name: string; // Human-readable name for this type
description?: string; // Optional description
mimeType?: string; // Optional MIME type for all matching resources
}
The currently load-baring regex is not able to support the spec, and also the params are not passed to the handler, which in some dynamic scenarios can be very useful.