# MCP Server Resources Configuration Fragment

[[elements]]
border_bottom = false
border_top = true
name = "resources_section_header"
title = "📦 Resources Configuration"
type = "section_header"

[[elements]]
default = true
help = "Enable MCP resources capability"
name = "resources_enabled"
nickel_path = ["resources", "enabled"]
prompt = "Enable Resources"
type = "confirm"

[[elements]]
condition = "resources_enabled == true"
default = 104857600
help = "Maximum resource size in bytes (range: ${constraint.mcp_server.resources.max_size.min}-${constraint.mcp_server.resources.max_size.max})"
max = "${constraint.mcp_server.resources.max_size.max}"
min = "${constraint.mcp_server.resources.max_size.min}"
name = "resources_max_size"
nickel_path = ["resources", "max_size"]
prompt = "Max Resource Size (bytes)"
type = "number"

[[elements]]
condition = "resources_enabled == true"
default = true
help = "Enable resource caching"
name = "resources_cache_enabled"
nickel_path = ["resources", "cache", "enabled"]
prompt = "Enable Resource Caching"
type = "confirm"

[[elements]]
condition = "resources_enabled == true && resources_cache_enabled == true"
default = 512
help = "Maximum cache size in MB (range: 10-10240)"
max = 10240
min = 10
name = "resources_cache_max_size_mb"
nickel_path = ["resources", "cache", "max_size_mb"]
prompt = "Max Cache Size (MB)"
type = "number"

[[elements]]
condition = "resources_enabled == true && resources_cache_enabled == true"
default = 3600
help = "Resource cache TTL in seconds (range: ${constraint.mcp_server.resources.cache_ttl.min}-${constraint.mcp_server.resources.cache_ttl.max})"
max = "${constraint.mcp_server.resources.cache_ttl.max}"
min = "${constraint.mcp_server.resources.cache_ttl.min}"
name = "resources_cache_ttl"
nickel_path = ["resources", "cache", "ttl"]
prompt = "Cache TTL (seconds)"
type = "number"

[[elements]]
condition = "resources_enabled == true"
default = true
help = "Enable resource validation"
name = "resources_validation_enabled"
nickel_path = ["resources", "validation", "enabled"]
prompt = "Enable Resource Validation"
type = "confirm"

[[elements]]
condition = "resources_enabled == true && resources_validation_enabled == true"
default = 10
help = "Maximum nesting depth for resources (range: 1-100)"
max = 100
min = 1
name = "resources_validation_max_depth"
nickel_path = ["resources", "validation", "max_depth"]
prompt = "Max Nesting Depth"
type = "number"
