# MCP Server Prompts Configuration Fragment

[[elements]]
border_bottom = false
border_top = true
name = "prompts_section_header"
title = "💬 Prompts Configuration"
type = "section_header"

[[elements]]
default = true
help = "Enable MCP prompts capability"
name = "prompts_enabled"
nickel_path = ["prompts", "enabled"]
prompt = "Enable Prompts"
type = "confirm"

[[elements]]
condition = "prompts_enabled == true"
default = 100
help = "Maximum custom prompt templates (range: ${constraint.mcp_server.prompts.max_templates.min}-${constraint.mcp_server.prompts.max_templates.max})"
max = "${constraint.mcp_server.prompts.max_templates.max}"
min = "${constraint.mcp_server.prompts.max_templates.min}"
name = "prompts_max_templates"
nickel_path = ["prompts", "max_templates"]
prompt = "Max Prompt Templates"
type = "number"

[[elements]]
condition = "prompts_enabled == true"
default = true
help = "Enable prompt response caching"
name = "prompts_cache_enabled"
nickel_path = ["prompts", "cache", "enabled"]
prompt = "Enable Prompt Caching"
type = "confirm"

[[elements]]
condition = "prompts_enabled == true && prompts_cache_enabled == true"
default = 3600
help = "Prompt cache TTL in seconds (range: 60-86400)"
max = 86400
min = 60
name = "prompts_cache_ttl"
nickel_path = ["prompts", "cache", "ttl"]
prompt = "Cache TTL (seconds)"
type = "number"

[[elements]]
condition = "prompts_enabled == true"
default = false
help = "Enable prompt versioning"
name = "prompts_versioning_enabled"
nickel_path = ["prompts", "versioning", "enabled"]
prompt = "Enable Prompt Versioning"
type = "confirm"

[[elements]]
condition = "prompts_enabled == true && prompts_versioning_enabled == true"
default = 10
help = "Maximum prompt versions to keep (range: 1-100)"
max = 100
min = 1
name = "prompts_versioning_max_versions"
nickel_path = ["prompts", "versioning", "max_versions"]
prompt = "Max Prompt Versions"
type = "number"
