🎉New in v4.3.0: Prompts! #57
Pinned
ravitemer
announced in
Announcements
Replies: 1 comment 2 replies
-
Can you 'reset' a prompt to say, the avant default one? (I accidentally set parrot and can't undo it) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone! 👋
Just like how MCP servers provide
tools
,resources
andresourceTemplates
they also provideprompts
as seen below.In addition to the server provided prompts, we can also create our own prompts using native server architecture
mcphub.add_prompt
api. There are two inbuilt prompts inneovim
server.A
prompt
in a MCP server when executed return amessages
array with each message withrole
andcontent
.role
can be of two typesuser
andassistant
(Note: Native server prompts can also havesystem
role).content
can be of many types: text, image, audio, blob, resourceThese prompts are intended to be used by the user either in slash_commands or in a menu. When the slash_command is run we should populate chat history with corresponding messages. That's exactly we are doing now.
As you can see, we can define our own conversations with these prefilled messages and on next user message the llm replicates the behaviour defined in these prefilled messages.
CodeCompanion Integration ⚡
With CodeCompanion integration, all your MCP server prompts automatically become
/slash_commands
just like how resources become#variables
. Just add this to your config:Now you can:
/mcp:prompt_name
Realtime Updates
Just like how resources automatically update as #variables, your slash commands stay in sync with your MCP servers prompts.
This creates a really smooth workflow where you can:
Resources as #variables (just in case anyone missed it)
Beta Was this translation helpful? Give feedback.
All reactions