Skip to content

Conversation

@yasmewad
Copy link
Owner

Changes

  • Adding support for Prompts in the MCP server.
  • The prompts have a prompts/list that allows tools such as Q CLI to call /prompts and get a list of prompts.
  • The prompts/get allows getting and invoking the prompt with arguments. Q CLI uses @<promptName> [args] to define which prompt is invoked.

Also contains a few example prompts that can be moved to or read from a file for further integration.

Testing

./gradlew build and running the server locally.

Example from Q client:

prompts/list:

> /prompts

Prompt                                                                                           Arguments (* = required)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
local_mcp (MCP):
- multi-step-example
- static-example
- haiku                                                                                          topic*
- dynamic-example                                                                                logs
- pirate-talk                                                                                    text*
- git-commit                                                                                     changes*
- explain-code                                                                                   code, language
- zombie-plan  


prompts/get

> @haiku "celebration of success"
Joyful hearts gather
Laughter erupts like fireworks
Moments to treasure

yasmewad and others added 2 commits June 14, 2025 13:54
The prompts have a `prompts/list` that allows tools such as Q CLI to call /prompts and get a list of prompts. The `prompts/get` allows getting and invoking the prompt with arguments. Q CLI uses `@<promptName> [args]` to define which prompt is invoked.

Prompts can be provided via a configuration file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants