Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Dynamic resources are simply excluded from the resource list.
Steps to Reproduce
from pathlib import Path
from fastmcp import FastMCP
mcp = FastMCP("MCP server")
@mcp.resource("file:///{path}")
def read_file(path: str) -> str:
"""Read a file from the project.
Args:
path: Relative path to the file
"""
file_path = Path(path)
if not file_path.exists():
raise FileNotFoundError(f"File not found: {path}")
return file_path.read_text()
mcp.run(transport="http", port=8999)
In cursor: “No tools, prompts or resources”
Expected Behavior
The resource should appear and should also be usable.
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.7.17
VSCode Version: 1.99.3
Commit: 34881053400013f38e2354f1479c88c9067039a0
Date: 2025-09-29T03:10:26.099Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Linux x64 6.14.0-32-generic