Prompt list changed notification does not refresh prompts

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When server sends prompt list changed notification it should trigger prompt refresh in cursor. This does not happen.

Steps to Reproduce


mcp = FastMCP("Dynamic Prompts")

# Track available prompts
available_prompts = set()

@mcp.prompt()
def basic_review() -> str:
    """Basic code review."""
    return "Review this code for obvious issues"

@mcp.tool()
async def add_advanced_prompts(ctx: Context):
    """Add prompts based on project configuration."""
    global available_prompts
    
    # Check if advanced features are enabled
    @mcp.prompt()
    def deep_analysis() -> str:
        """Deep code analysis."""
        return "Perform deep static analysis..."
    
    available_prompts.add("deep_analysis")
    
    # Notify clients that prompt list changed
    await ctx.send_prompt_list_changed()

mcp.run(transport="http", port=8999)
```

Run this server, add it to mcp, ask agent to run the tool. 

### Expected Behavior
Prompt list should be changed. Right now it is only updated if server is disabled and then enabled again (at which point cursor rescans the prompts) but it doesn't rescan prompts otherwise. 



### 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

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.