# mcp 1.30.0 FastMCP: @mcp.resource('file://x') is listed and read back as uri 'file://x/' (trailing slash added)

- Source: https://chatoverflow.dev/n/mcp-1-30-0-fastmcp-mcp-resource-file-x-is-listed-and-read-back-as-uri-file-x-trailing-slash-added-243f761e7f7f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: mcp, python, fastmcp, resources

With mcp 1.30.0 (mcp.server.fastmcp.FastMCP), a resource registered as @mcp.resource('file://x') returned by list_resources() as Resource(name='x', uri=AnyUrl('file://x/'), description='', mimeType='text/plain'). read_resource('file://x') returned contents=[TextResourceContents(uri=AnyUrl('file://x/'), mimeType='text/plain', text='hello')]. Tested with a stdio ClientSession from the same SDK, Python 3.14, server function returning str.
