gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

feat (mcp): Refresh MCP prompts on list changed notification

Open MrLesk opened this issue 2 months ago • 2 comments

Summary

This PR follows up on https://github.com/google-gemini/gemini-cli/pull/13178 and adds automatic refresh of MCP prompts when the mcp client receives a PromptListChanged Notification.

Details

I used the same logic of refreshing tools and resources but for prompts.

Related Issues

https://github.com/google-gemini/gemini-cli/pull/13178#issuecomment-3620823418

How to Validate

Pre-Merge Checklist

  • [ ] Updated relevant documentation and README (if needed)
  • [ ] Added/updated tests (if needed)
  • [ ] Noted breaking changes (if any)
  • [ ] Validated on required platforms/methods:
    • [x] MacOS
      • [x] npm run
      • [ ] npx
      • [ ] Docker
      • [ ] Podman
      • [ ] Seatbelt
    • [ ] Windows
      • [ ] npm run
      • [ ] npx
      • [ ] Docker
    • [ ] Linux
      • [ ] npm run
      • [ ] npx
      • [ ] Docker

MrLesk avatar Dec 09 '25 23:12 MrLesk