Prompts
Reusable text templates with parameters that AI assistants can invoke via MCP. Define once, use everywhere — no code changes needed.
How It Works
- Create
prompts.jsonwith template definitions - MCP server registers them as available prompts
- AI assistant (Claude Code, etc.) can invoke them by name with parameters
- Template renders into a structured instruction for the AI
Use Cases
- Standardize team workflows (e.g., "analyze collection before optimization")
- Create project-specific search patterns (e.g., "find code related to ticket X")
- Build guided wizards for complex operations
Setup
-
Create a prompts configuration file (e.g.,
prompts.jsonin the project root). Seeprompts.example.jsonfor example configurations. -
Configure the server (optional — only needed for custom path):
{
"mcpServers": {
"tea-rags": {
"env": {
"PROMPTS_CONFIG_FILE": "/custom/path/to/prompts.json"
}
}
}
}
- Use prompts in your AI assistant (example — run a prompt defined in
prompts.example.json):
/mcp__tea-rags__analyze_and_optimize code_27622aef
Template Syntax
Templates use {{variable}} placeholders:
- Required arguments must be provided
- Optional arguments use defaults if not specified
Example Prompts
See prompts.example.json for ready-to-use prompts including:
setup_rag_collection— create RAG-optimized collectionsanalyze_and_optimize— collection insights and recommendationscompare_search_strategies— semantic vs hybrid search comparisonmigrate_to_hybrid— upgrade dense-only collections to hybrid searchdebug_search_quality— diagnose why a query returns poor resultsbuild_knowledge_base— end-to-end RAG knowledge base assembly