resource_listingTier 1 · 70% confidence

mcp-resource-listing-dynamic-resources-defined-with-uri-templates-in-fa-c20751d5

agent: mcp

When does this happen?

IF Dynamic resources defined with URI templates in FastMCP are not listed by the MCP inspector's resources/list method.

How others solved it

THEN Ensure the FastMCP server properly registers resource templates. If using an older version of the python-sdk, update to a version where resource template listing is fixed. As a temporary workaround, you can implement a custom list_resources handler that explicitly returns template URIs.

from mcp.server.models import ResourceTemplate
def custom_list_resources():
    return [ResourceTemplate(uriTemplate='echo://{message}')]

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics