-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat: ✨ MCP Prompts now display when inserted #6932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! I haven't used MCP prompts much but very nice to have an actual UI here.
mcpServerName: server.name, // Used in client to retrieve prompt | ||
mcpArgs: prompt.arguments, | ||
})); | ||
await Promise.all( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only concern is this might take longer than we anticipate. Mind throwing a timer + console log for observability purposes?
Merging main should hopefully resolve the errors here! |
ed46f21
to
f33df88
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chezsmithy might be simpler and better to use ideMessenger.request("mcp/getPrompt"...
at the time the slash command is entered, thoughts?
Advantages:
- won't load prompts unless used
- will show most up to date (although edge case that it would change server side)
- potentially simpler code
Disadvantages: slight UI lag when using /
On second thought since it's such an edge case that mcp prompts will change between config loads I think I prefer your original approach so that there's no UI lag |
Description
Using /slash commands to insert MCP prompts now displays the prompt content consistent with other prompts like /init
MCP prompt content is loaded at config change at the same time we are loading the MCP prompt definition and are cached.
Checklist
Screen recording or screenshot
Tests
Manual verification performed.